Skip to content

Instantly share code, notes, and snippets.

View wuz's full-sized avatar

Conlin Durbin wuz

View GitHub Profile
@wuz
wuz / main.js
Last active July 27, 2017 19:06
Adding Load Function
mapboxgl.accessToken = 'pk.eyJ1IjoiYnlmcm9zdC1hcnRpY2xlcyIsImEiOiJjajVsZ3NwZGczMWNtMnFyeTR2cHRnajZ4In0.HOjYrueiLWlhLfhsDCa7wQ'; // Replace with your token
var map = new mapboxgl.Map({
container: 'map', //this is the id of the container you want your map in
style: 'mapbox://styles/mapbox/light-v9', // this controls the style of the map. Want to see more? Try changing 'light' to 'simple'.
minZoom: 2 // We want our map to start out pretty zoomed in to start.
});
map.on('load', function() { //On map load, we want to do some stuff
map.addLayer({ //here we are adding a layer containing the tileset we just uploaded
@wuz
wuz / main.js
Created July 27, 2017 19:04
Adding Load Function
mapboxgl.accessToken = 'pk.eyJ1IjoiYnlmcm9zdC1hcnRpY2xlcyIsImEiOiJjajVsZ3NwZGczMWNtMnFyeTR2cHRnajZ4In0.HOjYrueiLWlhLfhsDCa7wQ';
var map = new mapboxgl.Map({
container: 'map', //this is the id of the container you want your map in
style: 'mapbox://styles/mapbox/light-v9', // this controls the style of the map. Want to see more? Try changing 'light' to 'simple'.
minZoom: 2 // We want our map to start out pretty zoomed in to start.
});
map.on('load', function() { //On map load, we want to do some stuff
map.addLayer({ //here we are adding a layer containing the tileset we just uploaded
@wuz
wuz / main.js
Last active July 27, 2017 19:06
Starting Out
mapboxgl.accessToken = 'pk.eyJ1IjoiYnlmcm9zdC1hcnRpY2xlcyIsImEiOiJjajVsZ3NwZGczMWNtMnFyeTR2cHRnajZ4In0.HOjYrueiLWlhLfhsDCa7wQ'; // Replace with your token
var map = new mapboxgl.Map({
container: 'map', //this is the id of the container you want your map in
style: 'mapbox://styles/mapbox/light-v9', // this controls the style of the map. Want to see more? Try changing 'light' to 'simple'.
minZoom: 2 // We want our map to start out pretty zoomed in to start.
});
@wuz
wuz / index.html
Last active July 27, 2017 19:05
Mapbox Access Code Snippet
<!DOCTYPE html>
<html>
<head>
<title>My Awesome Map</title>
<link rel='stylesheet' href='style.css' />
</head>
<body>
<div id='map'></div>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.38.0/mapbox-gl.js'></script>
<script src='main.js'></script>
@wuz
wuz / .vimrc
Created February 8, 2016 15:39
" ------------------------------------------------------------ VUNDLE
set nocompatible " be iMproved, required
filetype off " required
" Vundle setup
let path='$HOME/.vim/bundle'
call plug#begin('~/.vim/plugged')
Plug 'kien/ctrlp.vim'
Plug 'rking/ag.vim'
Plug 'lambdatoast/elm.vim'
@wuz
wuz / keybase.md
Last active January 29, 2016 14:49

Keybase proof

I hereby claim:

  • I am ohmfox on github.
  • I am cendaeg (https://keybase.io/cendaeg) on keybase.
  • I have a public key whose fingerprint is 8C9F DF30 0ECB A283 E381 E8B1 BF3A E0DA EA15 E07D

To claim this, I am signing this object: