This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# jot X Y: Generate X numbers starting with Y | |
for i in $(jot 11 2000); do touch ${i}.html; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).bind('cbox_complete', function () { | |
if ($('#cboxTitle').height() > 20) { | |
$('#cboxLoadedContent').append($('#cboxTitle')); | |
$.fn.colorbox.resize(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MX | |
@testvar = 'abc' | |
def ModTest | |
'This is ModTest.' | |
end | |
def self.ModVarTest | |
"This is ModVarTest. #{@testvar}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
class Greetings(object): | |
def greet(self, recipient='World'): | |
return "Hello, %s!" % (recipient) | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import cherrypy | |
class Greetings(object): | |
@cherrypy.expose | |
def greet(self, recipient='World'): | |
return "Hello, %s!" % (recipient) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
class Greetings | |
def greet(recipient = "World") | |
puts "Hello, #{recipient}" | |
end | |
end | |
g = Greetings.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'rubygems' | |
require 'sinatra/base' | |
class Greetings < Sinatra::Base | |
get '/greet' do | |
if params[:recipient] == nil | |
"Hello, World" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"created_at":"Tue Aug 14 01:49:07 +0000 2012", | |
"id":235191289455448064, | |
"id_str":"235191289455448064", | |
"text":"The Twitter Political Index details the rise (and the end) of the #veepstakes over the past few days: http:\/\/t.co\/Uh8rbtqq via @gov", | |
"source":"web", | |
"truncated":false, | |
"in_reply_to_status_id":null, | |
"in_reply_to_status_id_str":null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$('.greekkeys').greekkeys2utf8('convert'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$('.greekkeys').greekkeys2utf8('convert', {combine: false}); | |
}); |
OlderNewer