Skip to content

Instantly share code, notes, and snippets.

View maleko's full-sized avatar

Marc Lee maleko

  • Adviso Technologies
  • Melbourne, Australia
View GitHub Profile
// Example:
JavaScript.load("/javascripts/something.js");
// With callback (that’s the good thing):
JavaScript.load("http://www.someawesomedomain.com/api.js", function() {
API.use(); // or whatever api.js provides ...
});
@maleko
maleko / setup.sh
Created December 12, 2012 12:12 — forked from krisf/setup.sh
#!/bin/bash
# install dependencies
apt-get update && apt-get upgrade
apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# install RVM
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
### as per RVM instructions (both files)
#!/usr/bin/env ruby
require 'rubygems'
require 'fsevents'
require 'json'
ignores = JSON.parse(File.read(".couchappignore")).map { |s| Regexp.new(s) }
ignores.push /(^.git|.DS_Store|\.swp$|\.couchappignore)/
appdir = File.expand_path(File.dirname(__FILE__))