Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Amos eltonjuan

View GitHub Profile
View sample-geojson.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View mapbox-timemap.js
mapboxgl.accessToken = 'pk.eyJ1IjoicGV0ZXJxbGl1IiwiYSI6ImpvZmV0UEEifQ._D4bRmVcGfJvo1wjuOpA1g';
var state = {
freePan: true,
sidebarMode: 'query',
startingPosition:[-122.337856, 47.607294],
mode:'walking',
locationString:'seattle',
timeViewZoom:13,
throttleDuration: 500,
@eltonjuan
eltonjuan / webpack.config.js
Created October 3, 2017 17:47
sample webpack config
View webpack.config.js
import path from 'path';
import webpack from 'webpack';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
const isDev = !(process.env.NODE_ENV === 'production');
const analyze = process.argv.includes('--analyze');
const useMocks = process.argv.includes('--mock');
const config = {
View stuff.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:9d46cb448c81d888a5f4f734ccc93065
This file has been truncated, but you can view the full file.
{
"mapGeoJson": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
View stuff.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View goodgood.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View good.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bundle.js
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
View wifHTML.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.