Skip to content

Instantly share code, notes, and snippets.

View arrc's full-sized avatar

Naveen Kumar arrc

View GitHub Profile
@arrc
arrc / index.md
Created July 20, 2016 16:03 — forked from rstacruz/index.md
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

/**
* Sockets
*
* @module :: Sockets
* @description :: Here all events for sockets
*
*/
require(['main', 'datas', 'queries', 'app/controllers/server_controller', 'app/controllers/player_controller'], function (Main, Datas, Queries, Server, Player) {
@arrc
arrc / dabblet.css
Created February 15, 2012 03:51 — forked from chriscoyier/dabblet.css
Based on email I got from andrea ricci
/* Based on email I got from andrea ricci */
a[href^="mailto:"]:before { content: "\2709"; }
.phone:before { content: "\2706"; }
.important:before { content: "\27BD"; }
blockquote:before { content: "\275D"; }
blockquote:after { content: "\275E"; }
.alert:before { content: "\26A0"; }
:before, :after {