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 = 's'; | |
def s.foo; 'foo'; end | |
eigen = (class << s; self; end) | |
def eigen.foo; 'bar'; end # This is unused | |
def String.foo; 'baz'; end | |
module Frob | |
def foo |
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 | |
# | |
# 1304046900 CONVERTS SVG TO RAPHAËL | |
require "nokogiri" | |
file = "world.svg" | |
tree = Nokogiri::XML(File.open(file)) | |
str = |
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
<html> | |
<head> | |
<script src="https://github.com/DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="container" style="position:absolute;left:25%;right:25%;top:25%;bottom:25%;background-color:#DDD"> | |
</div> | |
<script type='text/javascript'> | |
var container = $('#container'); |
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 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
site = "http://www.tomwaits.com" | |
download_to = "/Users/gus/tmp/" | |
index = open(site + "/songs/") { |f| Hpricot(f) } |
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
grammar PivotalStories | |
rule stories | |
story* | |
end | |
rule story | |
story_label:one_line "\n" feature* | |
end | |
rule feature |