Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am iamsolarpowered on github.
  • I am iamsolarpowered (https://keybase.io/iamsolarpowered) on keybase.
  • I have a public key whose fingerprint is 621F 6C40 9D81 0574 7658 B7AA CA39 EBD3 AAF6 27C6

To claim this, I am signing this object:

#!/usr/bin/env ruby
require 'net/http'
require 'json'
http = Net::HTTP.new 'api.github.com', 443
http.use_ssl = true
path = '/repos/crankapps/whisper.me/statuses/dc34d819a3fc14361261b570b5c00c92cc59e4f8'
payload = { 'state' => 'error',
@iamsolarpowered
iamsolarpowered / it.md
Created July 19, 2012 00:15
Trying out gist.io

What up?

Can I do dumb stuff?

Can I put in elements? No. But, say, a is ok? No. What about a like this?

@iamsolarpowered
iamsolarpowered / 12_bar_blues.rb
Created March 25, 2012 07:59
12-Bar Blues in Ruby
module Play
def self.note note = nil
@note = note.to_s.upcase
self
end
def self.for bars = 1, length = 1
bars.times do
puts @note
sleep length
jQuery ->
$('.multi').change (e) ->
$.each this.files, (i, file) ->
$('#file_list').append "<p>#{file.name}</p>"
form_data = new FormData()
form_data.append "file", file
require 'creativity'
require 'know_how'
require 'insight'
class Pitch
include Tapioca
def success
style && elegance && something_else
end
require 'rubygems'
require 'sinatra'
require 'rack/test'
require 'spec'
require 'spec/interop/test'
set :environment, :test
set :run, false
set :raise_errors, true
set :logging, false
!background_color ||= #333
!text_color ||= #eee
!link_color ||= #d9a341
!fonts ||= "helvetica, arial, sans-serif"
body
background-color = !background_color
color = !text_color
font:
family = !fonts
# Also run:
# touch db/.gitignore log/.gitignore tmp/.gitignore
#
# Don't forget to edit/move session_store and email initializers as well as database.yml!
#
*.DS_Store
config/database.yml
config/initializers/session_store.rb
config/initializers/email.rb
db/*.sqlite3