Skip to content

Instantly share code, notes, and snippets.

View runemadsen's full-sized avatar

Rune Skjoldborg Madsen runemadsen

View GitHub Profile
var r = new Rune({
container: "#canvas",
width: 800,
height: 600
});
var rad;
var offset;
var angle;
var k;
#!/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
@runemadsen
runemadsen / gist:3624189
Created September 4, 2012 17:56 — forked from atduskgreg/gist:1258552
new_sinatra_app.rb
#!/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
@runemadsen
runemadsen / TemplateTest.html
Created November 16, 2011 14:56 — forked from anonymous/TemplateTest.html
Template Testing
<!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>
@runemadsen
runemadsen / High Five Ruby App
Created October 24, 2011 19:00 — forked from lilyszajn/High Five Ruby App
High Five Ruby app with jquery
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