Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Justin whayler1

🎯
Focusing
Block or report user

Report or block whayler1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!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%;
View index.html
<!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 Sep 4, 2014
create deep values in an object with a string
View gist:f2796d374b76b2668ae3
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 Apr 18, 2018
Fixes a bug where elements with "-webkit-overflow-scrolling: touch" stop scrolling on orientation change.
View scroll pane orientation fix
/**
* 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) {
You can’t perform that action at this time.