This example demonstrates plotting Oakland's crime data as a per-day heatmap.
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace kompiler | |
{ | |
class fda | |
{ | |
public enum state |
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
#!/usr/bin/python | |
import os | |
import smtplib | |
import mimetypes | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
def sendMail(subject, text): | |
gmailUser = '[email protected]' | |
gmailPassword = 'like I|d give you this that easily....' | |
recipient = '[email protected]' |
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
<head><style type="text/css"> .bg { color: #000000; background: black; } | |
</style></head> | |
<canvas id="canvas" tabindex="2"> | |
Out with the stone age ... Use Chrome! sry w3m </canvas> | |
<body class='bg' onKeyDown="return main.key_down(event)" onKeyUp="return | |
main.key_up(event)"> | |
<script type="text/javascript"> |
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
//POC to use a client's cookie to access their facebook | |
http=require('http') | |
http.createServer(function (request, response) { | |
response.writeHead(200, { | |
'Content-Type': 'text/html', | |
'Access-Control-Allow-Origin' : '*' | |
}); | |
response.end('<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script><script>$.get("http://facebook.com",function(data){console.log(data)})</script>'); | |
}).listen(8124); |
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
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script> | |
<script src='index.js'></script> |
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
function FileCtrl($scope) { | |
$scope.files = [ | |
{name: 'Elephant Dreams', date: 20070522, size: 2000, torrent: 'piratebay.com', tags: 'a, b, c'}, | |
{name: 'Sauerbraten', date: 20061109, size: 100, torrent: 'mega.co.nz', tags: 'c, d, e'} | |
]; | |
} |
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.format - format percentages
- d3.scale.ordinal - x-position encoding
- d3.scale.linear - y-position encoding
- d3.max - compute domains
- d3.svg.axis - display axes
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
window.Buffer = require('buffer'); | |
var inflate = require('inflate'); | |
var binary_xhr = require('binary-xhr'); | |
var Stream = require('stream').Stream; | |
var util = require('util'); | |
function FakeStream(){ | |
this.readable = true; | |
}; |
OlderNewer