Skip to content

Instantly share code, notes, and snippets.

View whayler1's full-sized avatar
🎯
Focusing

Justin whayler1

🎯
Focusing
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>How to add markers to a CARTO map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
<!DOCTYPE html>
<html>
<head>
<title>How to add markers to a CARTO map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
@whayler1
whayler1 / gist:f2796d374b76b2668ae3
Created September 4, 2014 22:29
create deep values in an object with a string
var assert = require('assert')
var set = function(obj, key, val) {
var split = key.split('.'),
prop = obj,
prevIndex;
//single length key needs no depth traversal
@whayler1
whayler1 / scroll pane orientation fix
Last active April 18, 2018 13:15
Fixes a bug where elements with "-webkit-overflow-scrolling: touch" stop scrolling on orientation change.
/**
* Fixes a bug where elements with "-webkit-overflow-scrolling: touch" stop
* scrolling on orientation change. If you have a shim for requestAnimationFrame
* it would be good to replace setTimeout with that, but I wanted to write this
* dependancy free.
*
* @author Justin Worsdale
*/
(function(document, window) {