Skip to content

Instantly share code, notes, and snippets.

View syamilmj's full-sized avatar

Syamil MJ syamilmj

View GitHub Profile
@syamilmj
syamilmj / rails_cheatsheet.md
Created March 23, 2016 10:18 — forked from azinazadi/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
@syamilmj
syamilmj / 0_reuse_code.js
Created February 18, 2016 04:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console