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
require 'bundler/capistrano'
set :application, 'app_name'
set :repository, 'git@github.com:username/app_name.git'
set :deploy_to, "/var/www/#{application}"
set :scm, 'git'
set :user, 'username'
server 'example.com', :app, :web, :db, :primary => true
@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
@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 / 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,
<!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>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Wendy G. Bite</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Wendy G. Bite</h1>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Wendy G. Bite | Résumé</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Wendy G. Bite</h1>
body {
font-family: sans-serif;
font-size: 18px;
line-height: 1.5;
margin: 30px;
border: 5px solid #777777;
padding: 50px;
background: #444444;
color: #EEEEEE;
}

Keybase proof

I hereby claim:

  • I am neilsarkar on github.
  • I am neilsarkar (https://keybase.io/neilsarkar) on keybase.
  • I have a public key whose fingerprint is AE1F D2C0 DD5D 0BA6 BBEB 9659 6A89 03A3 7E47 EA82

To claim this, I am signing this object:

@neilsarkar
neilsarkar / AppText.js
Created January 10, 2017 01:48
React Native Text Wrapper for default font
'use strict';
import React, {Component} from 'react';
import {
Text,
} from 'react-native';
export default class AppText extends Component {
constructor(props) {
super(props)