Skip to content

Instantly share code, notes, and snippets.

@thadk
thadk / _.md
Created February 28, 2013 00:48
Tributary inlet
@thadk
thadk / _.md
Created March 1, 2013 14:39
Tributary inlet
@thadk
thadk / _.md
Created April 22, 2013 00:08
reaction-maker
@thadk
thadk / README.md
Created May 2, 2013 01:00
Tributary inlet

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

@thadk
thadk / README.md
Created May 2, 2013 01:07
Tributary inlet

This examples demonstrates how to use D3's brush component to implement focus + context zooming. Click and drag in the small chart below to pan or zoom.

@thadk
thadk / gist:6244053
Created August 15, 2013 19:37
Pinboard with Referrer Bookmarklet -This bookmarklet for pinboard.in adds the referring site (or twit-url) to the description when you bookmark
javascript:q=location.href;if(document.getSelection)%7Bd=document.getSelection()+" refrr:"+document.referrer;%7Delse%7Bd='';%7D;p=document.title;void(open('https://pinboard.in/add?showtags=yes&url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard','toolbar=no,scrollbars=yes,width=750,height=700'));
@thadk
thadk / .slate
Created September 11, 2013 22:03
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
#bind right:alt resize +10% +0
#bind left:alt resize -10% +0
@thadk
thadk / app-my-app-mod.js
Last active December 30, 2015 10:39
Backbone Marionette module starting from [this fork]( https://github.com/elycruz/generator-marionette ) and [this repo]( https://github.com/mrichard/generator-marionette ) and [for this comment]( https://github.com/mrichard/generator-marionette/issues/37 ) .
define([
'backbone',
'application',
'apps/my-app-mod/layout/my-app-mod-layout',
'apps/my-app-mod/my-app-mod-list',
'apps/my-app-mod/item/message-view',
'apps/my-app-mod/my-app-mod'
], function(Backbone, app, MyAppModLayout, MyAppModListController, MessageView, AppRouter) {
'use strict';
<html><head><title>@thadk/notifs</title>
</head>
<body>
<a class="twitter-timeline" href="https://twitter.com/thadk/lists/notifs?ref_src=twsrc%5Etfw">A Twitter List by thadk</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<!--a class="twitter-timeline" href="https://twitter.com/thadk/notifs" data-widget-id="443799148785958913">Tweets from https://twitter.com/thadk/notifs</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script-->
@thadk
thadk / 0_reuse_code.js
Created April 7, 2014 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console