Skip to content

Instantly share code, notes, and snippets.

View jfirebaugh's full-sized avatar

John Firebaugh jfirebaugh

View GitHub Profile
@jfirebaugh
jfirebaugh / index.html
Created May 14, 2013 22:21
Poor performance when transforming SVG element on Firefox
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<div id="container">
</div>
<script>
var width = 1000,
height = 1000;
<!DOCTYPE html>
<meta charset="utf-8">
<style>
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
var width = 897,
height = 956;
@jfirebaugh
jfirebaugh / index.html
Last active December 16, 2015 16:19 — forked from tmcw/index.html
<!DOCTYPE html>
<html>
<head>
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.0.1/mapbox.js'></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.1/mapbox.css' rel='stylesheet' />
<!--[if lte IE 8]>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.1/mapbox.ie.css' rel='stylesheet' >
<![endif]-->
<style>
body { margin:0; padding:0; }
~/Development/id $ node data/maki_sprite
./node_modules/maki/renders.json not found
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:977:11)
at Process.ChildProcess._handle.onexit (child_process.js:768:34)
@jfirebaugh
jfirebaugh / child.html
Created April 22, 2013 23:16
Why does the first link cause iframe-in-iframe, but not the second link?
<h2>Child</h2>
<script>
parent.document.getElementById("link1").onclick = function() {
location.replace("#foo");
return false;
};
parent.document.getElementById("link2").onclick = function() {
setTimeout(function() {
location.replace("#foo");
<!DOCTYPE html>
<html>
<head>
<title>New York City Neighborhoods</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<html>
<head>
This file has been truncated, but you can view the full file.
STATION,DATE,PRCP,SNOW,SNWD,ACMH,ACSH,PSUN,TSUN,TMAX,TMIN,FRGT,WESD,AWND,FMTM,PGTM,WDF1,WDF2,WDF5,WDFG,WDFM,WSF1,WSF2,WSF5,WSFG,WSFM,WT01,WT02,WT03,WT04,WT05,WT06,WT07,WT08,WT09,WT10,WT11,WT12,WT13,WT14,WT15,WT16,WT17,WT18,WT19,WT21,WT22,WV20
GHCND:USW00013743,19450701,86,0,0,9999,9999,9999,9999,372,244,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,1,9999,9999,9999,9999,1,9999,9999,9999,9999,9999,9999,9999,1,9999,9999,9999,9999,9999,9999
GHCND:USW00013743,19450702,236,0,0,9999,9999,9999,9999,339,211,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,1,9999,9999,9999,9999,1,9999,9999,9999,9999,9999,9999,9999,1,9999,9999,9999,9999,9999,9999
GHCND:USW00013743,19450703,0,0,0,9999,9999,9999,9999,278,183,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,1,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999,9999
GHCND:USW00013743,19450704,0,0,0,9999,9999,9999,9999,283,183,
pick d1b4d0a update latvian locale for modified and added strings
pick 048c365 fix indentation
pick df7faa2 use "node" where we refer to objects in lines or areas
pick b957184 use "node" where we refer to objects in lines or areas
# Rebase f3caa77..43881a0 onto f3caa77
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
~/Development/openstreetmap-website bundle
Your Gemfile.lock contains merge conflicts.
Run `git checkout HEAD -- Gemfile.lock` first to get a clean lock.
Loading development environment (Rails 3.2.13)
>> {"\u270e"=>"a"}.to_json.encoding
=> #<Encoding:UTF-8>
>> {"\u270e"=>"a"}.to_json
=> "{\"✎\":\"a\"}"
>> "\u270e".to_json.encoding
=> #<Encoding:UTF-8>
>> ^D
~/Development/openstreetmap-website ➈❸ rails c
Loading development environment (Rails 3.2.12)