Skip to content

Instantly share code, notes, and snippets.

View RichMorin's full-sized avatar

Rich Morin RichMorin

  • Canta Forda Computer Laboratory
  • Marysville, WA, USA
View GitHub Profile
/**
* CoffeeScript Compiler v1.2.0
* http://coffeescript.org
*
* Copyright 2011, Jeremy Ashkenas
* Released under the MIT License
*/
(function(root){var CoffeeScript=function(){function require(a){return require[a]}require["./helpers"]=new function(){var a=this;(function(){var b,c;a.starts=function(a,b,c){return b===a.substr(c,b.length)},a.ends=function(a,b,c){var d;d=b.length;return b===a.substr(a.length-d-(c||0),d)},a.compact=function(a){var b,c,d,e;e=[];for(c=0,d=a.length;c<d;c++)b=a[c],b&&e.push(b);return e},a.count=function(a,b){var c,d;c=d=0;if(!b.length)return 1/0;while(d=1+a.indexOf(b,d))c++;return c},a.merge=function(a,c){return b(b({},a),c)},b=a.extend=function(a,b){var c,d;for(c in b)d=b[c],a[c]=d;return a},a.flatten=c=function(a){var b,d,e,f;d=[];for(e=0,f=a.length;e<f;e++)b=a[e],b instanceof Array?d=d.concat(c(b)):d.push(b);return d},a.del=function(a,b){var c;c=a[b],delete a[b];return c},a.last=function(a,b){return a[a.length-(b||0)-1]}}).call(this)},require["./rewriter"]=new function(){var
@RichMorin
RichMorin / demo.css
Created March 10, 2012 03:53
Selectable Projection Demo
/* demo.css */
body {
margin: 5px auto;
}
#chart svg {
border: solid 1px #ccc;
}
@RichMorin
RichMorin / index.html
Created March 9, 2012 19:04 — forked from syntagmatic/index.html
Selectable Projection Demo
<!DOCTYPE html>
<html>
<head>
<title>Selectable Projection Demo</title>
<script type='text/javascript' src='http://mbostock.github.com/d3/d3.v2.js'></script>
<style type='text/css'>
body {
margin: 5px auto;
}
h1 {
As discussed on http://cfcl.com/twiki/bin/view/Projects/SketchUp/LibraryUse, I
added some RVM directories to SketchUp Ruby's $: array:
base = ENV['HOME'] + '/.rvm/rubies/ruby-1.8.5-p231/lib/ruby/'
list = %w[ site_ruby/1.8 site_ruby/1.8/i686-darwin10.4.0 site_ruby
1.8 1.8/i686-darwin10.4.0 ]
$:.concat( list.map{|i| base + i } )
I then tried a simple test: