Skip to content

Instantly share code, notes, and snippets.

View ppong's full-sized avatar
🎯
Focusing

Peter ppong

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ppong on github.
  • I am ppong (https://keybase.io/ppong) on keybase.
  • I have a public key ASAtMhUVKBeZ9Cho9XMvRJ57FQDx0wdsG7mzYz1ITXXKQwo

To claim this, I am signing this object:

@ppong
ppong / d3-zoom-pan-extent.js
Created February 26, 2018 17:33 — forked from mhsmith/d3-zoom-pan-extent.js
Pan+Zoom within limits
d3 = function() {
var d3 = {
version: "3.1.10-xsystem"
};
if (!Date.now) Date.now = function() {
return +new Date();
};
var d3_document = document, d3_window = window;
try {
d3_document.createElement("div").style.setProperty("opacity", 0, "");
@ppong
ppong / gist:4417198
Created December 31, 2012 03:32 — forked from tomdale/gist:3981133

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>
  <img src="masthead">
</header>

<footer>
@ppong
ppong / geodesic.js
Created August 19, 2012 23:22 — forked from mbostock/.block
Geodesic Grid
(function() {
var φ = 1.618033988749895,
ρ = 180 / Math.PI;
var vertices = [
[1,φ,0], [-1,φ,0], [1,-φ,0], [-1,-φ,0],
[0,1,φ], [0,-1,φ], [0,1,-φ], [0,-1,-φ],
[φ,0,1], [-φ,0,1], [φ,0,-1], [-φ,0,-1]
];
@ppong
ppong / index.html
Created August 3, 2012 19:31 — forked from mbostock/.block
d3.nest
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js?2.9.6"></script>
</head>
<body>
<table id="countries">
</table>
<script type="text/javascript">