Skip to content

Instantly share code, notes, and snippets.

View hectoregm's full-sized avatar

Hector E. Gomez Morales hectoregm

View GitHub Profile
@hectoregm
hectoregm / escape_c.txt
Created November 15, 2011 19:30
C Escape Sequences
Escape Sequence Name Meaning
\a Alert Produces an audible or visible alert.
\b Backspace Moves the cursor back one position (non-destructive).
\f Form Feed Moves the cursor to the first position of the next page.
\n New Line Moves the cursor to the first position of the next line.
\r Carriage Return Moves the cursor to the first position of the current line.
\t Horizontal Tab Moves the cursor to the next horizontal tabular position.
\v Vertical Tab Moves the cursor to the next vertical tabular position.
\' Produces a single quote.
\" Produces a double quote.
@hectoregm
hectoregm / require.rb
Created October 15, 2011 22:28
require
require File.expand_path(File.join(File.dirname(__FILE__), 'filename'))
# Or only for ruby 1.9
require_relative 'filename'
@hectoregm
hectoregm / rdoc_example.rb
Created October 10, 2011 18:11
Rdoc Template
#
#
# * *Args* :
# - ++ ->
# * *Returns* :
# -
# * *Raises* :
# - ++ ->
#
def method_name