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
https://drive.google.com/open?id=0ByuOG90-szqlNFFYaVlWMFIyVUE |
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="mr-space" data-space-id="espn/xgamescom" style="min-height: 500px;"></div> | |
<script src="//platform.massrelevance.com/js/massrel.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
{ | |
"mobile": false, | |
// simple status info | |
// in the case of a retweet, this will | |
// be based on the original status that was retweeted | |
// and not the status that contained the retweet | |
"status": { | |
"id_str": "231110606676176898", |
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> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> | |
<style type="text/css"> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.container { |
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
/*jslint eqeqeq: true, regexp: true */ | |
/*global document, window, setInterval, clearInterval, handler, jQuery */ | |
/* | |
* Scrollbar - a jQuery plugin for custom scrollbars | |
* | |
* @author Thomas Duerr, [email protected] | |
* @date 03.2010 | |
* @requires jquery v1.4.2 | |
* @version 0.3 |
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 type="text/javascript"> | |
tweetriver.widget.ready(function(widget) { | |
widget.use(function() { | |
var element = this.elem; | |
function update_icons() { | |
// put code in here...it will update when new data comes in | |
} |
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
var allPolygons = []; | |
function setPolys(geom) { | |
/* geom: a GeoJSON object. | |
Parse geom, and add it as a child to the global Raphael object, R. | |
*/ | |
//geom.type either Polygon or MultiPolygon | |
var translationFunction = function(coords) { | |
var projected = Projections.contiguous.forward(coords); | |
var x = 217+(projected[0]*190/2400000); |
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
/* | |
An Albers Equal Area Conic projection in javascript, for protovis. | |
For centering the contiguous states of the USA in a 800x400 div, I used: | |
var scale = pv.Geo.scale(albers(23, -96, 29.5, 45.5)) | |
.range({ x: -365, y: -375 }, { x: 1200, y: 1200 }); | |
http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.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
// if you are from Austin JavaScript meetup, | |
// you can download presentation at http://bit.ly/widget_specs | |
<script src="http://awsmsite.com/widget.js?acnt=2800000&poll=1"> | |
/* | |
NOTE: ^^^ putting script tag here to make it easier to visualize | |
that code is being executed inside of a script node | |
*/ | |
// create iframe |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "8000"; | |
} | |
# We go BACK to varnish to get it to generate an ESI template that | |
# generates a JSON-P response. | |
backend jsonp_template_backend { | |
.host = "127.0.0.1"; | |
.port = "8070"; |
NewerOlder