Skip to content

Instantly share code, notes, and snippets.

View daaain's full-sized avatar
😸

Daniel Demmel daaain

😸
View GitHub Profile
@daaain
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
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
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. https://phenomic.io/
at Object.loader (/Users/dain/workspace/daily-journal/node_modules/phenomic/lib/loader/index.js:88:11)
@daaain
daaain / prototype.html
Last active August 13, 2016 18:21
Quick prototyping boilerplate: React + Babel + Foundation + Sheetrock. See it running here: http://www.danieldemmel.me/in-browser-prototype-boilerplate/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Prototype</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.3/foundation-flex.css">
<script src="https://fb.me/react-with-addons-15.3.0.js" type="text/javascript"></script>
<script src="https://fb.me/react-dom-15.3.0.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js" type="text/javascript"></script>
<script src="https://cdn.rawgit.com/chriszarate/sheetrock/master/dist/sheetrock.min.js"></script>

Keybase proof

I hereby claim:

  • I am daaain on github.
  • I am daaain (https://keybase.io/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
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
* https://developers.google.com/apps-script/service_spreadsheet
*/
function onOpen() {
var sheet = SpreadsheetApp.getActiveSpreadsheet();
@daaain
daaain / config.ru
Created September 12, 2012 21:53
Minimum config.ru file to serve up the folder with Pow
require 'rack'
root=Dir.pwd
run Rack::Directory.new("#{root}")
@daaain
daaain / gist:3497095
Created August 28, 2012 10:43
.jshintrc setting
// based on: https://github.com/jshint/node-jshint/blob/master/.jshintrc
// documentation at: http://www.jshint.com/docs/
{
// 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