This file contains hidden or 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
<html></html> |
This file contains hidden or 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/env python | |
""" | |
# A simple IRC Bot, that logs conversation in an IRC Channel | |
# | |
# (C) 2008, Pranav Prakash | |
# Email: [email protected] | |
# | |
# | |
# |
This file contains hidden or 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> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<style type="text/css"> | |
body { | |
background: #333; | |
} |
This file contains hidden or 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> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> | |
<title>Safari Select bug</title> | |
<style type="text/css"> | |
</style> | |
</head> | |
<body> | |
<button id="select">Select</button> |
This file contains hidden or 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
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script> | |
</head> | |
<body> | |
<svg> | |
<defs> | |
<mask id="rekt"> | |
<g id="rrr"> |
This file contains hidden or 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
//Simple d3.js barchart example to illustrate d3 selections | |
//other good related tutorials | |
//http://www.recursion.org/d3-for-mere-mortals/ | |
//http://mbostock.github.com/d3/tutorial/bar-1.html | |
var w = 850 | |
var h = 400 | |
var bars = function(data) |
This file contains hidden or 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
// Boid flocking based on http://harry.me/2011/02/17/neat-algorithms---flocking | |
var boid = (function() { | |
function boid() { | |
var position = [0, 0], | |
velocity = [0, 0], | |
gravityCenter = null, | |
gravityMultiplier = 1, | |
neighborRadius = 50, | |
mouseRadius = 50, | |
maxForce = .1, |
This file contains hidden or 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
<html> | |
<meta charset='utf-8' /> | |
<head> | |
</head> | |
<body> | |
<svg> | |
<text id="text_node" y="1em"> | |
<tspan>You</tspan> | |
<tspan dx='.25em'>shall</tspan> | |
<tspan dx='.25em'>not</tspan> |
This file contains hidden or 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
<html> | |
<meta charset='utf-8' /> | |
<head> | |
</head> | |
<body> | |
<svg> | |
<text id='text_node' y="20px" text-anchor="start" opacity="1"> | |
<tspan>You</tspan> | |
<tspan dx='.5em'>shall</tspan> | |
<tspan dx='.5em' dy='.9em'>not</tspan> |
This file contains hidden or 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
var w = 600 | |
, h = 467 | |
var data1 = [ | |
5, | |
20, | |
55, | |
60, | |
89 | |
]; |