a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
a list of slides from nodeconf
you may want to take a look at the jsconf-gist too!
#!/bin/bash | |
if [ $# -ne 2 ] | |
then | |
echo "Error in $0 - Invalid Argument Count" | |
echo "Syntax: $0 project_name gondor_app_id" | |
exit | |
fi | |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# add these aliases to your BASH profile ~/.profile | |
alias mongodb-start="mongod run --config /usr/local/etc/mongod.conf" | |
alias redis-start="redis-server /usr/local/etc/redis.conf" | |
# TODO add stop commands |
# more info and usage here: | |
# http://sandropaganotti.com/2012/10/28/migrating-a-single-site-of-a-wordpress-multisite-instance/ | |
require 'yaml' | |
require 'ostruct' | |
require 'mysql2' | |
require 'php_serialize' | |
namespace :util do | |
brew install imagemagick |
@categories = Categories.page params[:page] | |
@categories = @categories.order(params[:order_field] => params[:order_direction) unless params[:order_field].blank? || params[:order_direction].blank? | |
@categories = @categories.where(:attr1 => params[:p1]) unless params[:p1].blank? # (n times) |
describe('fizz buzz',function(){ | |
var self = this; | |
beforeEach(function(){ | |
var threeChecker = new Checker(3, "Fizz"); | |
var fiveChecker = new Checker(5, "Buzz"); | |
var sevenChecker = new Checker(7, "Bang"); | |
self.fizzBuzzer = new FizzBuzzer([threeChecker, fiveChecker, sevenChecker]); | |
}); | |
it('Default is say the number',function(){ |
AsyncProcess = require('./async-process').AsyncProcess | |
describe('AsyncProcess', function() { | |
var asyncProcess; | |
beforeEach(function() { | |
asyncProcess = new AsyncProcess(); | |
}); | |
it('should process 42', function() { |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |