Skip to content

Instantly share code, notes, and snippets.

Shawn Mollie Taylor mollietaylor

Block or report user

Report or block mollietaylor

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
@mollietaylor
mollietaylor / index.html
Last active Aug 29, 2015
Append Layer to overlayMaps in Leaflet
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
@mollietaylor
mollietaylor / data.js
Last active Aug 29, 2015
Changing Leaflet Slidemapper to a Side-by-Side View
View data.js
EXAMPLEDATA = [
// intro marker
{
icon: 'other.png',
marker: [42.516846, -70.898499],
center: [40.423, -98.7372],
html: '<table style="margin:0 40px; padding:10px"><tr>' +
'<td><img src="http://placehold.it/300x180&text=Map+Stuff"/></td>' +
'<td style="padding-left:10px">' +
'<h1>SlideMapper FTW!</h1>' +
@mollietaylor
mollietaylor / index.html
Created Feb 21, 2014
Center Map on Layer Change in Leaflet
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
@mollietaylor
mollietaylor / data.js
Created Feb 21, 2014
Link to Another Slide in Leaflet Slidemapper
View data.js
EXAMPLEDATA = [
// intro marker
{
icon: 'other.png',
marker: [42.516846, -70.898499],
center: [40.423, -98.7372],
html: '<table style="margin:0 40px; padding:10px"><tr>' +
'<td><img src="http://placehold.it/300x180&text=Map+Stuff"/></td>' +
'<td style="padding-left:10px">' +
'<h1>SlideMapper FTW!</h1>' +
@mollietaylor
mollietaylor / tour.css
Created May 12, 2014
Minimal Example in Shepherd
View tour.css
div {
text-align: center
}
#a {
border: 2px red solid;
height: 40px
}
#b {
@mollietaylor
mollietaylor / advance-polling-places.js
Created Oct 9, 2014
Advance Polling Places and Times for Fulton County, Georgia
View advance-polling-places.js
var polling = {"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.492061,33.754541]},"properties":{"Location":"Adamsville Recreation Center","Address1":"3201 MLK Jr. Drive, SW","Address2":"","City":"Atlanta, GA 30311","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordinates":[-84.391737,33.8753238]},"properties":{"Location":"Chastian Park Gymnasium","Address1":"140 West Wieuca Road, NW","Address2":"","City":"Atlanta, GA 30342","WeekdayDates":"10/13/2014 - 10/31/2014","WeekdayTimes":"7:00 AM - 7:00 PM, M,Tu,W,Th,F","SaturdayDates":"10/18/2014, 10/25/2014","SaturdayTimes":"8:00 AM - 5:00 PM","SundayDates":"10/19/2014, 10/26/2014","SundayTimes":"12:00 PM - 5:00 PM"}},{"type":"Feature","geometry":{"type":"Point","coordina
View index.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="nav">
</div>
<script type="text/javascript" src="nav.js"></script>
</body>
</html>
View Mapbox Marker Image-Bridging-Header.h
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import <UIKit/UIKit.h>
#import "Mapbox.h"
View gist:556392c5a9e6517640e0
func newGame(token: String) {
let joinOptions: [String:AnyObject] = [
"endpoint" : "games/id",
"method" : "POST",
"body" : [
@mollietaylor
mollietaylor / codeforatlanta-material.js
Created Sep 27, 2015
Code for Atlanta material palettes
View codeforatlanta-material.js
$mdThemingProvider.definePalette('codeForATLPrimary', {"50":"#e6eef2","100":"#b3ccd9","200":"#80aac0","300":"#558daa","400":"#2a7095","500":"#005480","600":"#004a70","700":"#003f60","800":"#003550","900":"#002a40","A100":"#b3ccd9","A200":"#80aac0","A400":"#2a7095","A700":"#003f60"});
$mdThemingProvider.definePalette('codeForATLAccent', {"50":"#fae8ec","100":"#f1bbc6","200":"#e78da0","300":"#df6780","400":"#d74161","500":"#cf1b41","600":"#b51839","700":"#9b1431","800":"#811129","900":"#680e21","A100":"#f1bbc6","A200":"#e78da0","A400":"#d74161","A700":"#9b1431"});
$mdThemingProvider.theme('default').primaryPalette('codeForATLPrimary').accentPalette('codeForATLAccent');
You can’t perform that action at this time.