Skip to content

Instantly share code, notes, and snippets.

View azinazadi's full-sized avatar

Azin Azadi azinazadi

View GitHub Profile
@azinazadi
azinazadi / 0_selector_hacks.scss
Created February 22, 2012 10:22 — forked from chriseppstein/0_selector_hacks.scss
This gist demonstrates some uses of the new sass feature: Passing content blocks to mixins.
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}
@azinazadi
azinazadi / rails_cheatsheet.md
Created November 17, 2011 11:21 — forked from taktran/rails_cheatsheet.md
Rails cheatsheet

An incomplete cheatsheet for rails 3. Things are added as they are required.

Active Record validations

# http://guides.rubyonrails.org/active_record_validations_callbacks.html

class SomeClass < ActiveRecord::Base

  # length