d3js Multiline chart with brushing and mouseover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"n":"Albania","d":[-1,-1,-1,-1,-1,-1,-1,84.604,75.713,72.67,69.634,65.86,65.464,60.708,57.721,58.228,56.682,53.846,55.099,59.76,58.223,59.363],"e":2010},{"n":"Algeria","d":[0.0,79.506,62.926,74.028,98.376,116.195,98.148,85.095,84.508,89.357,69.823,63.459,53.756,43.921,36.565,27.283,23.61,12.517,8.225,10.356,10.393,10.655],"e":2009},{"n":"Angola","d":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,104.542,102.053,70.948,63.967,51.302,42.493,20.627,20.816,31.5,36.285,35.022,29.909],"e":2009},{"n":"Antigua and Barbuda","d":[-1,-1,-1,-1,-1,-1,-1,41.614,93.082,88.983,108.256,118.919,124.946,114.567,112.482,87.255,85.158,63.738,62.138,81.139,69.581,68.629],"e":2010},{"n":"Argentina","d":[-1,-1,-1,-1,-1,-1,-1,34.508,37.569,42.963,45.001,53.69,164.974,139.455,127.027,87.125,76.457,67.098,58.52,58.704,49.102,43.346],"e":2010},{"n":"Armenia","d":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,48.907,46.364,47.019,40.896,32.555,24.404,18.725,16.102,16.144,40.159,39.181,41.475],"e":2010},{"n":"Australia","d":[16.256,21.375,27.382,30.379,31.485,30.933,2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Test</title> | |
</head> | |
<body> | |
<h1>Backbone TEST</h1> | |
<div id="main"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011 | |
* http://benalman.com/ | |
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */ | |
(function($) { | |
var o = $({}); | |
$.subscribe = function() { | |
o.on.apply(o, arguments); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TODO | |
Improved year labels (mouseover -> shows full name in tooltip) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ir(){ | |
display: block; | |
border: 0; | |
text-indent: 100%; | |
overflow: hidden; | |
background-color: transparent; | |
background-repeat: no-repeat; | |
text-align: left; | |
direction: ltr; | |
white-space: nowrap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global module:false*/ | |
module.exports = function(grunt) { | |
var SRC_CSS = 'src/css/', | |
SRC_JS = 'src/js/', | |
BUILD_CSS = 'css/', | |
BUILD_JS = 'js/'; | |
// Project configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic XMPP bot example for HipChat using node.js | |
// To use: | |
// 1. Set config variables | |
// 2. Run `node hipchat_bot.js` | |
// 3. Send a message like "!weather 94085" in the room with the bot | |
var request = require('request'); // github.com/mikeal/request | |
var sys = require('sys'); | |
var util = require('util'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# USAGE: | |
# ./svn-export revision-from revision-to repository target-directory | |
# ./svn-export 20 25 svn://localhost/myrepository . | |
if [ ! $1 ] || [ ! $2 ] || [ ! $3 ] || [ ! $4 ]; then | |
echo "Please enter a revision from, revision to, SVN repository, and target directory" | |
exit | |
fi |
NewerOlder