Skip to content

Instantly share code, notes, and snippets.

View chrislkeller's full-sized avatar

Chris Keller chrislkeller

View GitHub Profile
@chrislkeller
chrislkeller / README.md
Last active February 20, 2021 13:57
Example of Calibre news download recipe

Recipe for Calibre news download

An example of creating a "news recipe" for Calibre to download news stories and covert to mobi or epub.

@chrislkeller
chrislkeller / README.md
Last active February 3, 2022 08:02
Displaying data from a flat JSON file on a Handlebars.js template file rendered with AJAX.

Demo: ajax-handlebars

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Last active January 27, 2023 16:26
Convert string Lat/Long to number for Google Maps API.

Convert string Lat/Long to number for Google Maps API

When sending Lat/Long values to the Google Maps API for something like setCenter(), it wants an number value. But the value we pull from an option menu like the one below is a string.

<select id="searchString" onchange="zoomToAddress(this.value);">
<option value="">--Select All--</option>
<option value="43.138092,-89.747988">Luckenbooth Cafe</option>
<option value="43.017218,-89.831479">Aunt Mary's Hooterville Inn</option>
</select>
@chrislkeller
chrislkeller / README.md
Last active October 11, 2015 14:58
This quick lookup uses Google Civic Data API to locate your polling place based on your address and then give you driving directions.

Demo: Google civic API polling place lookup

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Last active October 11, 2015 15:37
Quick and simple Fusion Tables Map

Demo: Fusion Tables Map starter

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Last active December 16, 2022 15:25
Sync data across Google Spreadsheets

Snippets: Sync data across Google Spreadsheets

Added to a Google spreadsheet, this script will take data from a master spreadsheet and sync it to a working spreadsheet.

Variables to change are:

// source doc
var sss = SpreadsheetApp.openById('0An8....');

// source sheet

@chrislkeller
chrislkeller / README.md
Last active October 13, 2015 14:08
Combines tabletop.js and handlebars.js to display data from a Google spreadsheet using handlebars templates.

Snippets: tabletop-handlebars

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Last active December 9, 2015 16:39
Demo: increment-slider-map

Demo: increment-slider-map

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Created December 19, 2012 20:48
json-from-ft

Demo: Pull json from Fusion Tables

This repo's location has changed.

@chrislkeller
chrislkeller / README.md
Last active December 10, 2015 02:48
Plots a marker on a map after a user inputs their address.

Demo: search-address-map-marker

This repo's location has changed.