Skip to content

Instantly share code, notes, and snippets.

@erwaller
erwaller / index.html
Created August 16, 2019 17:36 — forked from ryanbaumann/index.html
Example of loading large geojson into Mapbox GL JS
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0-beta.1/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.54.0-beta.1/mapbox-gl.css' rel='stylesheet' />
<link href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />

Keybase proof

I hereby claim:

  • I am erwaller on github.
  • I am erwaller (https://keybase.io/erwaller) on keybase.
  • I have a public key ASBjpiE3fCZYdQRR54hglb8jF2mAaNYTXHFPv_Pz-FK0xQo

To claim this, I am signing this object:

@erwaller
erwaller / README.md
Last active August 29, 2015 14:19
SeatGeek Map with Leaflet 1.0
@erwaller
erwaller / README.md
Last active August 29, 2015 13:57
SeatGeek Map with Simple Vector Layer

Here's a pretty minimal example of layering vector data on a SeatGeek map using Leaflet. In the interest of not making the example overwhelming, I'm only rendering a few features.

@erwaller
erwaller / README.md
Last active December 22, 2015 18:18
No one uses older versions of Internet Explorer by choice

While doing my occasional SeatGeek google analytics review to see if we can drop IE 8 yet, I came across some pretty interesting data. Older versions of IE show a much stronger dropoff in usage over the weekend. This fits the narrative that these old versions tend to hang around for awhile in corporate deployments quite nicely, I just never expected the effect to be so stark.

Notes

  • IE 8 is the last version to support Windows XP. My guess is that's why we get more traffic from IE 8 than from IE 9.
  • The "Desirability Coefficient" is a ratio of the daily weekend usage to the daily weekday usage.
  • Safari's pattern looks a lot like IE 10: little visually perceptible weekend dropoff. Chrome and firefox both show a bit of weekend dropoff, but nowhere near as much as either IE 8 or IE 9.

Think this is interesting?

We're hiring a Frontend Developer at SeatGeek to work with awesome web technologies (ie. the kind f

@erwaller
erwaller / README.md
Last active December 21, 2015 15:19
The SeatGeek Office

Equirectangular panorama of the SeatGeek office, rendered with THREE.js.

@erwaller
erwaller / README.md
Last active December 20, 2015 11:29
3D Seating Charts
@erwaller
erwaller / index.html
Last active December 11, 2015 02:59
Fun with the SG Recommendations API
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Basic Test</title>
<style>
@import url("//bl.ocks.org/style.css?20120613");
</style>
</head>
<body>
@erwaller
erwaller / gist:956498
Created May 5, 2011 03:47
Example use case for redis scripting branch
require 'rubygems'
require 'redis'
require 'benchmark'
r = Redis.new
saddkey = <<LUA
redis('SADD', KEYS[1], KEYS[2])
return redis('SET', KEYS[2], ARGV[1])
LUA
#! /bin/bash
# sudo apt-get install make bison flex gcc patch autoconf subversion locate
# sudo apt-get install libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 libsyck0-dev
# sudo apt-get install libmysqlclient15-dev
BASEDIR=$PWD
# LIBEVENT