Skip to content

Instantly share code, notes, and snippets.

@tag
tag / d3-boilerplate.html
Last active September 1, 2022 14:59
D3.js Boilerplate
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#mySvg {
height: 500px;
width: 500px;
border: 1px solid gray;
}
</style>
{
"consumer_key": "abcYOURCONSUMERKEY",
"consumer_secret": "abcYOURCONSUMERSECRET",
"access_token": "abcYOURACCESSTOKEN",
"access_token_secret": "abcYOURACCESSTOKENSECRET"
}
@tag
tag / typeahead_example.html
Created January 17, 2017 17:26
Example using Twitter's Typeahead library
<!doctype html>
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="https://twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.js"></script>
<style type="text/css">
/* These class names can me specified in the Typeahead options hash. I use the defaults here. */
.tt-suggestion {
border: 1px dotted gray;
@tag
tag / dummy_actors.json
Last active January 17, 2017 16:31
Dummy data for Typeahead example
[
{
"ID": 1,
"StageName": "Cami Sweet",
"AKA1": "Cami Tu Sweet",
"AKA2": "Camille Sweet",
"LegalName": "Phyllus Dorsey",
"SoundEx": "E460"
},
{
@tag
tag / php.ini mail tweak
Created November 1, 2012 18:53
Getting PHP's mail() working on OS X 10.7 Lion
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = /usr/sbin/sendmail -t -i