Skip to content

Instantly share code, notes, and snippets.

View daaain's full-sized avatar

Daniel Demmel daaain

View GitHub Profile
daaain / gbfs_datasets.json
Created December 9, 2019 14:54
GBFS datasets
"info": {
"label": "Service areas bcp",
"id": "GBFS_Service_areas_1"
"data": {
"fields": [
"name": "_geojson",
daaain / index.js
Created May 12, 2017 10:37
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var createHmac = require('create-hmac')
var hmac = createHmac('sha224', new Buffer("secret key"))
hmac.update('synchronous write') //optional encoding parameter
hmac.digest() // synchronously get result with optional encoding parameter
daaain / output.txt
Created February 10, 2017 19:08
Phenomic build output
yarn build v0.19.1
$ phenomic build
ℹ Phenomic is starting +0.18s
ServiceWorker (for Offline access) only works with HTTPS protocol.You are currently using HTTP, so ServiceWorker will be ignored by browsers.
✔ Copying assets +0.7s
✔ Building client files +27.31s
✔ Warning: %s Critical dependencies:
44:17-28 the request of a dependency is an expression +8.45s
✔ Warning: %s Module build failed: Error: You are using phenomic loader without the corresponding plugin. This plugin should be added automatically by Phenomic, so if you are facing this issue, you are probably playing with the fire. To get more information, you can reach us on our community chat.
at Object.loader (/Users/dain/workspace/daily-journal/node_modules/phenomic/lib/loader/index.js:88:11)
daaain / prototype.html
Last active August 13, 2016 18:21
Quick prototyping boilerplate: React + Babel + Foundation + Sheetrock. See it running here:
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="">
<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
<script src=""></script>

Keybase proof

I hereby claim:

  • I am daaain on github.
  • I am daaain ( on keybase.
  • I have a public key whose fingerprint is BEB9 2040 59A2 1002 7E31 A76C FF48 404A E461 1308

To claim this, I am signing this object:

daaain / gist:3932602
Created October 22, 2012 17:06
Google App Script - Spreadsheet JSON export
* Adds a custom menu to the active spreadsheet, containing a single menu item
* for invoking the exportJSON() function specified above.
* The onOpen() function, when defined, is automatically invoked whenever the
* spreadsheet is opened.
* For more information on using the Spreadsheet API, see
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
daaain /
Created September 12, 2012 21:53
Minimum file to serve up the folder with Pow
require 'rack'
daaain / gist:3497095
Created August 28, 2012 10:43
.jshintrc setting
// based on:
// documentation at:
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"jquery" : true, // jQuert globals