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 'sinatra' | |
require 'open-uri' | |
get "/highFive.jsonp" do | |
content_type :jsonp | |
open("http://www.itpcakemix.com/project/HI5SON!!").read | |
end | |
get "/" do |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Untitled Document</title> | |
<link href="statusBoard.css" rel="stylesheet" type="text/css" /> | |
<script type="text/x-jquery-tmpl" id="testBuildTemplate"> | |
<tr><td data-bind="id: statusClass"></td><td data-bind="text: name"></td></tr> | |
</script> |
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 'fileutils' | |
install_root = File.expand_path(File.dirname(__FILE__)) | |
if !ARGV[0] | |
puts "ERROR: You must supply the name of the app you want to create. Like this:" | |
puts "./new_sinatra_app my_app" | |
exit 1 |
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
#!/bin/bash | |
if [ `whoami` != "root" ]; then | |
echo "$0 must be run as root." | |
exit 1 | |
fi | |
for i in $(locate webrick/config.rb); do | |
echo "Processing $i" | |
sed -e 's/^.*:DoNotReverseLookup => nil,$/:DoNotReverseLookup => true,/' $i > /tmp/config.rb |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 600 | |
}); | |
var rad; | |
var offset; | |
var angle; | |
var k; |