Category: programming

0

Generate background pattern in Ruby

We will see how to generate a SVG background with triangle patterns in ruby to have something that look likes this: At first, install the TrianglePattern gem: 1$ gem install triangle_pattern Then we

0

Ruby cheat sheet with examples

Take it easy Ruby! Basic concepts# Hello World# 1puts "Hello World!" Comments# 123456# single line comment=begin Multi-lines comment=end Variables# 12my_var = 42My_constant_var = 31337 Sho

0

Variables type size and formaters in C

Variables# Type Size Min Max signed char 8 bits -128 +127 unsigned char 8 bits 0 +255 short 16 bits -32,768 +32,767 unsigned short 16 bits 0 +65,535 int 16 bits -32,768 +32,767 unsign