Skip to content

Instantly share code, notes, and snippets.

##JavaScript specific Questions

  • Which JavaScript libraries have you used?
  • How is JavaScript different from Java?
  • What are undefined and undeclared variables?
  • What is an expression?
  • What is a statement?
  • Give an example of a function declaration
  • Give an example of a function expression
  • Explain what the DOM is and some best practices for interacting with it.
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true
@judearasu
judearasu / mixi_graph.rb
Created May 22, 2012 17:27 — forked from nov/mixi_graph.rb
mixi OAuth & Graph API sample
require 'rubygems'
require 'active_support/all'
require 'oauth2'
config = {
:mode => :token,
:client_id => SET_YOUR_OWN,
:client_secret => SET_YOUR_OWN,
:redirect_uri => SET_YOUR_OWN,
:authorization_code => SET_YOUR_OWN,
@judearasu
judearasu / gist:1800201
Created February 11, 2012 14:46 — forked from fxn/gist:1798985
require 'active_support/inflector'
require 'benchmark'
# QUICK HACK
class RuleSet
def initialize
@rules = []
@regexp = nil
end