Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am steadicat on github.
  • I am stefano (https://keybase.io/stefano) on keybase.
  • I have a public key whose fingerprint is C7CE 657D 3842 6D58 39E1 8B48 FD7D 1068 E982 C634

To claim this, I am signing this object:

.state.button {
border: none !important;
height: 22px !important;
}
.state.button::after, a.state.button::after {
border: none !important;
}
.preview {
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
#tracker {
font-family: 'Open Sans', sans-serif !important;
background: #eee !important;
}
button {
font-family: inherit !important;
}
.preview {
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
#tracker {
font-family: 'Open Sans', sans-serif !important;
background: #eee !important;
}
button {
font-family: inherit !important;
}
.preview {
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
#tracker {
font-family: 'Open Sans', sans-serif !important;
background: #eee !important;
}
button {
font-family: inherit !important;
}
.preview {
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700);
#tracker {
font-family: 'Open Sans', sans-serif !important;
}
button {
font-family: inherit !important;
}
.preview {
font-size: 14px !important;
function debounce(f, delay) {
var timeout;
return function() {
if (f.active) return WARNING('Refresh throttled: operation already started less than 5 seconds ago.');
f.active = true;
f.call(this, function() {
if (delay) {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(function() { f.active = false }, delay);
} else {
@steadicat
steadicat / d3-update.js
Created April 25, 2011 17:11
D3 data update not working
var chart = d3.select('body')
.append('svg:svg').attr('width', 800).attr('height', 200)
chart.selectAll('rect')
.data([13,8,2,0,23,29,100])
.enter()
.append('svg:rect').attr('fill', 'steelblue')
.attr('width', 20)
.attr('height', function(d) { return d })
.attr('x', function(d,i) { return 20*i })
@steadicat
steadicat / proxy.js
Created March 29, 2011 18:46
A reverse-proxy for CouchDB written in Node.js
#!/usr/local/bin/node
var sys = require('sys');
var http = require('http');
var url = require('url');
var PREFIX = '/db/';
var TARGET = 'http://example.cloudant.com';
var PORT = 8001;
RestClient.put("https://USER:PASSWORD@APP.heroku.cloudant.com/DATABASENAME", "")