Instantly share code, notes, and snippets.

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');
View gist:556392c5a9e6517640e0
func newGame(token: String) {
let joinOptions: [String:AnyObject] = [
"endpoint" : "games/id",
"method" : "POST",
"body" : [
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 index.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="nav">
</div>
<script type="text/javascript" src="nav.js"></script>
</body>
</html>
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 tour.css
div {
text-align: center
}
#a {
border: 2px red solid;
height: 40px
}
#b {
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>' +
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>' +
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>
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>