Skip to content

Instantly share code, notes, and snippets.

Erick Cardenas-Mendez travellingprog

  • Toronto, Canada
Block or report user

Report or block travellingprog

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
travellingprog / 00 When Static Prototypes Go
Last active Feb 23, 2016
When Static Prototypes Go Wrong - some of the lessons learned
View 00 When Static Prototypes Go

When Static Prototypes Go Wrong - Styling

For my part of the presentation, I will talk about some of the lessons learned around styling.

Short URL for this page:

There's a ton of links embedded in this gist. I invited you to click through them to help you follow along.

travellingprog / gist:012e5fdd3ddbf4aff5d3
Created Sep 21, 2014
dateString function (continued)
View gist:012e5fdd3ddbf4aff5d3
startMonth = startpieces[1];
startDay = startpieces[2];
endMonth = endpieces[1];
endDay = endpieces[2];
var dateString = startMonth + " " + startDay;
if (startMonth !== endMonth || startDay !== endDay) {
dateString += " - "
if (startMonth !== endMonth) {
View School Locations Sorter
var locationSorter = function(a, b) {
// this sorts letters before numbers on the 1st character, and also
// sorts something like "1C9" before "1C11"
var n = ( || "").toLowerCase();
var m = ( || "").toLowerCase();
var l = Math.min(n.length, m.length);
if (n.substr(0, l) === m.substr(0,l)) {
return (n.length - m.length);
  • Swig templates must be pre-compiled via command-line. The resulting *.js file must be given to the prepackaged app.

  • Inline scripting is not allowed.

  • The complete security restrictions are here:

  • You can get images with xhr.responseType='blob', and then assign them a BlobURL which stores the entire blob in a url that looks like this: blob:chrome-extension%3A//dabmgdknkbnloipddgldbcmngnacejkh/530e737b-63cf-4309-b526-74013259c4b2

  • You can store images in a sandboxed filesystem with the HTML5 FileSystem API, without needing to get any user permission. Have yet to try using this file as the image source.

travellingprog / data.js
Last active Dec 22, 2015
vortex drawing code
View data.js
self.updateLocations = function () {
venueURL: App.venueURL,
perspective: App.perspectives.main // add this line
}, function (response) {
App.locations = response;
View list-out-of-lambda.js
var empty_list = function(selector) {
return selector(undefined, undefined, true);
var prepend = function(el, list) {
return function(selector) {
return selector(el, list, false);
var head = function(list) {
You can’t perform that action at this time.