Skip to content

Instantly share code, notes, and snippets.

[server]
character_set_server=utf8
collation_server=utf8_unicode_ci
skip_character_set_client_handshake
default_table_type=innodb
transaction-isolation=READ-COMMITTED
innodb_file_per_table
local_infile=0
#!/usr/bin/env ruby
## configure these
gh_pass = '*github_api_token*'
gh_user = '*github_username*'
ssh_key = ARGV.shift
require "rubygems"
require "yaml"
File.open( php_session_file_name, File::WRONLY|File::CREAT ) do |io|
io.flock File::LOCK_EX
io.truncate(0)
io.print prepared_session.to_wddx
end
huntMen : function(buffy) {
var soulmates = [];
while (soulmates.length < 10) {
// Get 10 candidates for Buffy
getMatches( buffy, 10, function(userids) {
for (var i = 0; i < userids.length; i++) {
get '/': ->
render 'index.jade', layout: 'layout.coffee'
view layout: ->
html ->
head ->
...etc...
view 'index.jade': """
p Blah
green = #80B280
matrixgreen = #C6DABF
matrixyellow = #E6E680
borderdiff = 30
@import "mixins/border-radius"
body
####################################################################################################################################################################################### st (183)
######################################################################################################### l (105)
#################################################################### ci (68)
####################################################### add (55)
###################################################### co (54)
################################################## push (50)
######################################## down (40)
##################################### la (37)
################################### show (35)
################################# d (33)
--- Portfile.orig 2011-05-04 12:40:45.000000000 -0700
+++ Portfile 2011-05-04 12:40:53.000000000 -0700
@@ -84,6 +84,7 @@
--with-mhash=${prefix} \
--with-pcre-regex=${prefix} \
--with-readline=${prefix} \
+ --with-libexpat-dir=${prefix} \
--with-libxml-dir=${prefix} \
--with-zlib=${prefix} \
--without-pear \
function! Make_vimsession()
execute("mksession! " . g:vimsession)
endfunction
command! SS call Make_vimsession()
function! Set_vimsession()
let cwd = getcwd()
while ! ( isdirectory( cwd . "/.git" ) || cwd == "/" )
let cwd = simplify( cwd . "/.." )
require('zappa') ->
@enable 'serve jquery'
@get '/:foo/:bar?': ->
"Foobar"