Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
<iframe src="http://www.slideshare.net/slideshow/embed_code/11846374?rel=0" width="427" height="356" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px; max-width: 100%;" allowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="https://www.slideshare.net/noahsussman/software-entomology-or-where-do-bugs-come-from" title="Software Entomology or Where Do Bugs Come From?" target="_blank">Software Entomology or Where Do Bugs Come From?</a> </strong> from <strong><a href="http://www.slideshare.net/noahsussman" target="_blank">Noah Sussman</a></strong> </div>
@textarcana
textarcana / index.html
Last active August 29, 2015 14:21 — forked from biovisualize/index.html
d3 Game of Life / cellular automaton
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<script type='text/javascript' src="http://mbostock.github.com/d3/d3.js"></script>
<style type='text/css'>
.cell{
stroke: none;
}
namespace :rdoc do
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
task :generate do
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html`
puts "DONE!"
end
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
@textarcana
textarcana / gist:81210
Created March 18, 2009 15:49 — forked from oddlyzen/gist:81195
rake task to build documentation
namespace :rdoc do
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
task :generate do
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html`
puts "DONE!"
end
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
# for multiline ruby statements in haml...
= { :foo => :bar, |
:baz => :foo, |
:quux => :zz}.inspect |
# the magical 'pipe' strikes again.
// round corners (base)
= border-radius(!radius = 10px)
-moz-border-radius= !radius
-webkit-border-radius= !radius
border-radius= !radius
// top rounded corners
= border-top-radius(!radius = 10px)
+border-top-left-radius(!radius)
+border-top-left-radius(!radius)
@textarcana
textarcana / rlsp.rb
Created November 9, 2009 14:29 — forked from h0rs3r4dish/rlsp.rb
A Lisp Interpreter in Ruby (via Hacker News)
#!/usr/bin/ruby
RLSP_VERSION = "1.4.1"
class Lambda
attr_accessor :args, :body
def initialize(args=[],body="")
@args = (args.class == Array) ? args : [args]
@body = body
end
function cssColor() {
var i, limit, number;
if (nexttoken.identifier) {
switch (nexttoken.value) {
case 'rgb':
limit = 3;
break;
case 'rgba':
limit = 4;
break;
@textarcana
textarcana / .screenrc
Created May 11, 2010 11:42 — forked from sd/gist:396751
.screenrc
# rebind C-a to C-l
escape ^Ll
log on
autodetach on
defutf8 on
defscrollback 1000
var sys = require("sys");
var http = require("http");
var connections=[];
function update() {
if (connections.length) {
connections.forEach(function(c) {
sys.puts(JSON.stringify(c));
c.sendBody('oi\n');