Skip to content

Instantly share code, notes, and snippets.

View mollietaylor's full-sized avatar

Shawn Mollie Taylor mollietaylor

View GitHub Profile
@mollietaylor
mollietaylor / index.html
Last active August 29, 2015 13:55
Append Layer to overlayMaps in Leaflet
<!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 / index.html
Created February 21, 2014 02:41
Center Map on Layer Change in Leaflet
<!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 February 21, 2014 03:39
Link to Another Slide in Leaflet Slidemapper
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 / data.js
Last active August 29, 2015 13:56
Changing Leaflet Slidemapper to a Side-by-Side View
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 17:46
Minimal Example in Shepherd
div {
text-align: center
}
#a {
border: 2px red solid;
height: 40px
}
#b {
@mollietaylor
mollietaylor / advance-polling-places.js
Created October 9, 2014 15:38
Advance Polling Places and Times for Fulton County, Georgia
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
@mollietaylor
mollietaylor / index.html
Created January 24, 2015 15:35
javascript header
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="nav">
</div>
<script type="text/javascript" src="nav.js"></script>
</body>
</html>
//
// 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"
func newGame(token: String) {
let joinOptions: [String:AnyObject] = [
"endpoint" : "games/id",
"method" : "POST",
"body" : [
@mollietaylor
mollietaylor / codeforatlanta-material.js
Created September 27, 2015 23:01
Code for Atlanta material palettes
$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');