Skip to content

Instantly share code, notes, and snippets.

@lucashungaro
lucashungaro / links.textile
Created August 14, 2010 16:36
Links de referência utilizados em minha palestra
@jamesarosen
jamesarosen / 04_jshint.rake
Created May 2, 2011 23:41
Javascript Loves CI: Jenkins + Jasmine + PhantomJS + JSHint
namespace :jshint do
task :require do
sh "which jshint" do |ok, res|
fail 'Cannot find jshint on $PATH' unless ok
end
end
task :check => 'jshint:require' do
project_root = File.expand_path('../../', File.dirname(__FILE__))
config_file = File.join(project_root, 'config', 'jshint.json')
@jbrechtel
jbrechtel / gist:1755597
Created February 6, 2012 22:42
Android hack night setup instructions

brew install android-sdk

brew install scala sbt #scala only

curl https://raw.github.com/n8han/conscript/master/setup.sh | sh #scala only

~/bin/cs n8han/giter8 #scala only

export ANDROID_HOME=/usr/local/Cellar/android-sdk/r16 #ideally add this to your .zshrc or .bash_profile

@micralon
micralon / campirc.rb
Created March 16, 2012 13:38 — forked from rkh/campirc.rb
IRC/Campfire bridge
# coding: binary
# IRC <-> Campfire bridge, set IRC password to SUBDOMAIN:TOKEN and connect to localhost:6667
# Remove special chars/spaces from channel names (ie "Foo Bar" becomes #FooBar). Only tested with LimeChat.
# gem install excon && gem install yajl-ruby -v "< 2.0"
%w[socket thread uri excon yajl yajl/http_stream].each { |lib| require lib }
Thread.abort_on_exception = true
[:INT, :TERM].each { |sig| trap(sig) { exit } }
server = TCPServer.new('127.0.0.1', 6667)
loop do