Chris Wanstrath defunkt

View Cash_Register_1.rb
1 2 3 4 5 6 7 8 9 10
puts "What is the amount due?"
total = gets.chomp.to_f
 
puts "What is the amount tendered?"
paid = gets.chomp.to_f
 
if paid < total
puts "WARNING: Customer still owes $#{format("%.2f", total-paid)}"
puts Time.now
elsif paid > total
View namespace.coffee
1 2 3 4 5 6 7 8 9 10
Namespace = ( ->
merge = (target, source) ->
for key, val of source
target[key] = val
target
 
_assertValidFQN = (fqn) ->
unless ///^[a-z0-9_.]+///.test fqn then throw 'invalid namespace'
 
class Procedure
View binary.html
1 2 3 4 5 6 7 8 9 10
<!-- http://emilsblog.lerch.org/2009/07/javascript-hacks-using-xhr-to-load.html -->
 
<html5>
<head>
<script language="vbscript">
Function BinaryArrayToAscCSV( aBytes )
Dim j, sOutput
sOutput = "BinaryArrayToAscCSV"
For j = 1 to LenB(aBytes)
sOutput= sOutput & AscB( MidB(aBytes,j,1) )
View gitio
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard.
 
url = ARGV[0]
code = ARGV[1]
View grove.io.js
1 2 3 4 5 6
setInterval(function(){
$('.content a').each(function() {
if (/\.(gif|jpe?g|png)/i.test($(this).text()))
$(this).html('<img src="'+$(this).text()+'"/>"')
})
}, 1000)
View cloudapp.com.js
1
window.location = 'https://my.cl.ly'
View mustache_i18n.rb
1 2 3 4 5 6 7 8 9 10
class Stache18n
@@tags = {
'comment-and-close' => 'Comment and close',
'github' => 'GitHub',
'social-coding' => 'Social Coding'
}
 
def self.t
@@tags
end
Something went wrong with that request. Please try again.