[ Launch: test ] 5698905 by jraines
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sierpinski triangle</title> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
//Width and height |
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
saveQueue: => | |
for draft_item in @items.models | |
attrs = _.clone draft_item.attributes | |
delete attrs.id | |
item = new StyliticsBackbone.Models.Item(attrs) | |
notifyFunction = @_afterSaveFunc(draft_item) | |
item.save().success(notifyFunction).error(@_notifyError) | |
_afterSaveFunc: (draft_item) => | |
=> |
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> | |
<title>D3Play</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/app.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<link href="/assets/swimmers.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/jquery.js?body=1" type="text/javascript"></script> | |
<script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script> |
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
# An attempt to do object oriented d3 graphing | |
# | |
# This graphs a swimmer's progress through a challenge set. | |
# | |
# x is the swim (1 of 5, 2 of 5, etc) | |
# y is their time in seconds | |
# | |
# radius of orange circles is the swimmers heart rate after 1 swim | |
# |
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
#!/bin/bash | |
echo 'Clean up branches containing: ' | |
read prefix | |
while read line; do | |
branch=$(echo $line | sed 's/origin\///') | |
echo "Delete this $line? [y/n]" | |
#can't just read from stdin while inside loop | |
read answer </dev/tty | |
if [ "$answer" == "y" ]; then |
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
# Hash for each brand. | |
# Each key is an item of that brand, in a format like 'id:type:name'. | |
# Each value is a json string representing an array of user ids. | |
# For this query we would: | |
# iterate over each brand | |
# pull the the keys that match our type ('*jeans*') and | |
# get the user ids array for each brand of jeans. |
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
LoadModule proxy_module | |
LoadModule proxy_balancer_module | |
<Proxy balancer://mycluster> | |
BalancerMember http://www.lessonplanet.com/ loadfactor=10 | |
BalancerMember http://beta.lessonplanet.com/ loadfactor=1 | |
ProxySet stickysession=_session_id | |
</Proxy> | |
ProxyPass / balancer://mycluster |
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
win = Ti.UI.createWindow() | |
wrapNorth = (y) -> | |
if y is 0 | |
36 | |
else | |
y - 1 | |
wrapSouth = (y) -> | |
if y is 36 |