Skip to content

Instantly share code, notes, and snippets.

View neilsarkar's full-sized avatar
🌴
On vacation

Neil Sarkar neilsarkar

🌴
On vacation
View GitHub Profile
<!doctype html>
<head>
<meta charset="utf-8">
<title>Cookies</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>The Best Chocolate Chip Cookies</h1>
@neilsarkar
neilsarkar / gist:5092118
Last active December 14, 2015 13:18
Happy Path for Splits
# user.rb
class User < ActiveRecord::Base
# create a balanced account for each new user
before_create :create_balanced_account
# credit_card_uri and bank_account_uri are tokenized client side
# in webviews using balanced.js
attr_accessible :account_uri,
:credit_card_uri,
@neilsarkar
neilsarkar / Default (OSX).sublime-keymap
Created April 27, 2012 00:59
Sublime Plugin to run rspec tests
[
...
{
"keys": ["super+r"],
"command": "run_tests",
"args": {"single": false}
},
{
"keys": ["super+shift+r"],
@neilsarkar
neilsarkar / hosts
Created February 2, 2012 03:26
Firefox 10 Crossdomain isArray bug
# /etc/hosts
127.0.0.1 example.com
127.0.0.1 api.example.com
require 'bundler/capistrano'
set :application, 'app_name'
set :repository, '[email protected]:username/app_name.git'
set :deploy_to, "/var/www/#{application}"
set :scm, 'git'
set :user, 'username'
server 'example.com', :app, :web, :db, :primary => true