Skip to content

Instantly share code, notes, and snippets.

View kamal's full-sized avatar

Kamal Fariz Mahyuddin kamal

View GitHub Profile
@kamal
kamal / routes.rb
Created August 9, 2010 15:03 — forked from akomba/routes.rb
resources :channels do
shallow do
resources :posts do
member do
put :disable
put :toggle_stickiness
put :add_channel
end
resources :replies, :only => [:index, :new, :create, :show]
end
@kamal
kamal / gist:835811
Created February 20, 2011 07:53 — forked from siong1987/gist:835808
* Start Small, Stay Small: A Developer's Guide to Launching a Startup
* The Art of Game Design: A book of lenses
* Do More Faster: TechStars Lessons to Accelerate Your Startup
* The No Asshole Rule: Building a Civilized Workplace and Surviving One That Isn't
* Free: The Future of a Radical Price
* Founders at Work: Stories of Startups' Early Days
* Hackers and Painters: Big Ideas from the Computer Age
* The Pragmatic Programmer: From Journeyman to Master
@kamal
kamal / baby_talk.rb
Created April 29, 2011 14:02 — forked from stympy/subscription_plan.rb
Extending a model in a Rails 3 (pre-3.1) engine
module BabyTalk
class Engine < Rails::Engine
config.to_prepare do
User.class_eval do
has_many :participations, :foreign_key => "participant_id"
has_many :rooms, :through => :participations
end
end
end
end
{
"continents": {
"Africa": [
"Africa"
],
"Antarctica": [
"Antarctica"
],
"Asia": [
"Asia"