Skip to content

Instantly share code, notes, and snippets.

View radiodario's full-sized avatar

Darío Villanueva radiodario

View GitHub Profile
Backbone.sync = function(method, model, options) {
// we need to make sure we initialize a store, in this case
// we will just use a JS object.
var cache = {};
// The size will be primarily used to assign ids to newly
// created models. Each time a new model is created, the size
// will be incremented.
var size = 0;
@radiodario
radiodario / index.html
Last active December 10, 2015 22:18 — forked from huroh/index.html
Complex geoJson shape transformation
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@import url("http://polymaps.org/style.css");
html, body {
height: 100%;
@radiodario
radiodario / README.md
Last active December 8, 2016 08:04 — forked from dfm/LICENSE
Here's to a nice 2013

These are google searches for 'Old Lang Syne' since 2004. Seems to be popular around this time of the year.

@radiodario
radiodario / index.html
Created December 9, 2012 21:25 — forked from enjalot/index.html
d3 behavior.drag example
<!DOCTYPE html>
<html>
<head>
<title>Chernoff Smileys</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.5.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.5.0"></script>
<style type="text/css">
</style>
</head>
@radiodario
radiodario / index.html
Created November 10, 2012 16:05 — forked from zmaril/index.html
d3 bootstrap tooltips
<!doctype html>
<head>
<style>
body {
font: 10px sans-serif;
}
#main {
left: 25%;
position: absolute;
}
@radiodario
radiodario / index.html
Created October 29, 2012 23:12 — forked from enjalot/index.html
d3 behavior.drag example
<!DOCTYPE html>
<html>
<head>
<title>Chernoff Smileys</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.5.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.5.0"></script>
<style type="text/css">
</style>
</head>