This file contains hidden or 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
// This tells the awesome rule to execute on start | |
startshape awesome | |
rule awesome{ | |
// Call the shape1 rule | |
shape1 { hue 220 b .6 sat .8} | |
// When telling itself to run again, | |
// the awesome rule rotates itself 13 degrees, |
This file contains hidden or 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 | |
require 'yaml' | |
# Prints out the string "Hello World!" in | |
# an extremely convoluted way involving | |
# method_missing magic, dynamic method calls, | |
# some metaprogramming, completely useless comments, | |
# the DATA block, yaml, and Sesame Street. | |
# | |
# This hello world brought to you by the letter Q. |
This file contains hidden or 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 | |
# After two hours of reading the Daily WTF, I | |
# thought it was time to write some code. | |
# | |
# Can you guess what it does? | |
class Bool | |
attr_accessor :attr4 | |
def self.true |
This file contains hidden or 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 | |
from pyechonest import config | |
config.ECHO_NEST_API_KEY="" | |
import echonest.audio as audio | |
from echonest.selection import fall_on_the | |
from echonest.sorting import duration |
This file contains hidden or 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 | |
# dont change anything below, unless you know what are you doing | |
require 'fileutils' | |
require 'cgi' | |
require 'base64' | |
class DropboxThingy | |
DROPBOX_URL="http://review.orangesparkleball.com/" |
This file contains hidden or 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
#-s thin -p 5432 | |
require "rubygems" | |
require 'orange-sparkles' | |
app = Orange::SparklesApp.app | |
app.orange.options["main_user"] = "[email protected]" | |
run app |
This file contains hidden or 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
DROP TABLE IF EXISTS `pages`; | |
CREATE TABLE `pages` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`title` varchar(255) DEFAULT NULL, | |
`content` text, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `titleu` (`title`) | |
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; |
This file contains hidden or 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
require 'rubygems' | |
require 'flickraw-cached' | |
FlickRaw.api_key="... API KEY HERE ..." | |
FlickRaw.shared_secret="... Shared Secret ..." | |
frob = flickr.auth.getFrob | |
auth_url = FlickRaw.auth_url :frob => frob, :perms => 'read' | |
puts "Open this url in your process to complete the authication process : #{auth_url}" |
This file contains hidden or 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
# Gemfile | |
source "http://rubygems.org" | |
gem "openid_dm_store", :git => "git://github.com/therabidbanana/openid_dm_store.git" | |
gem "orange-more", :git => "git://github.com/therabidbanana/orange-more.git" | |
gem "orange-core", :git => "git://github.com/therabidbanana/orange-core.git" | |
gem "orange-sparkles", :git => "git://github.com/orange-project/orange-sparkles.git" | |
gem "dm-postgres-adapter" |
This file contains hidden or 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
startshape banana; | |
rule banana{ | |
apple{ s 1.5 hue 67 b .9 sat .7} | |
} | |
rule apple { | |
SQUARE { skew 1.2 .9 } | |
tree { } | |
apple { s .989 r 10 hue 12 } |
OlderNewer