Skip to content

Instantly share code, notes, and snippets.

View Seandebasti's full-sized avatar
🎯
Focusing

Sean Seandebasti

🎯
Focusing
View GitHub Profile
@Seandebasti
Seandebasti / index.js
Created October 23, 2014 21:46
requirebin sketch
// example using the raf module from npm. try changing some values!
var requestAnimationFrame = require("raf")
var canvas = document.createElement("canvas")
canvas.width = 500
canvas.height = 500
document.body.appendChild(canvas)
var context = canvas.getContext("2d")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Seandebasti
Seandebasti / overpass.geojson
Last active August 29, 2015 14:08 — forked from anonymous/overpass.geojson
all viewpoints
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Seandebasti
Seandebasti / index.html
Created November 20, 2014 21:18
WebGL Earth API: Satellite // source http://jsbin.com/wugiv
<!DOCTYPE HTML>
<html>
<head>
<script src="http://www.webglearth.com/v2/api.js"></script>
<script>
function initialize() {
var options = {atmosphere: true, center: [0, 0], zoom: 0};
var earth = new WE.map('earth_div', options);
WE.tileLayer('https://a.tiles.mapbox.com/v3/duncangraham.552f58b0/{z}/{x}/{y}.png', {
subdomains: '1234'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Seandebasti
Seandebasti / index.html
Created December 9, 2014 13:06
Swipe between layers // source http://jsbin.com/qijatoguri
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Swipe between layers</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v2.1.4/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }