Skip to content

Instantly share code, notes, and snippets.

Daniel Demmel daaain

Block or report user

Report or block daaain

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
View gbfs_datasets.json
[
{
"info": {
"label": "Service areas bcp",
"id": "GBFS_Service_areas_1"
},
"data": {
"fields": [
{
"name": "_geojson",
@daaain
daaain / index.js
Created May 12, 2017
requirebin sketch
View index.js
// 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 Feb 10, 2017
Phenomic build output
View output.txt
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 Aug 13, 2016
Quick prototyping boilerplate: React + Babel + Foundation + Sheetrock. See it running here: http://www.danieldemmel.me/in-browser-prototype-boilerplate/
View prototype.html
<!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>
View keybase.md

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 Oct 22, 2012
Google App Script - Spreadsheet JSON export
View gist:3932602
/**
* 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 Sep 12, 2012
Minimum config.ru file to serve up the folder with Pow
View config.ru
require 'rack'
root=Dir.pwd
run Rack::Directory.new("#{root}")
@daaain
daaain / gist:3497095
Created Aug 28, 2012
.jshintrc setting
View gist:3497095
// 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
You can’t perform that action at this time.