This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE activities ( | |
"date" date, | |
"activity" varchar, | |
"group" varchar, | |
"start" timestamp, | |
"end" timestamp, | |
"duration" integer, | |
"distance" real, | |
"steps" integer, | |
"calories" integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -k -d1 node_modules | sort -n | |
12 node_modules/file-loader | |
16 node_modules/z-index | |
20 node_modules/react-addons-css-transition-group | |
20 node_modules/screenfull | |
24 node_modules/redux-thunk | |
28 node_modules/.bin | |
28 node_modules/angular-cookies | |
32 node_modules/angular-http-auth | |
36 node_modules/karma-jasmine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 left-pad | |
30 relative-date | |
27 expand-home-dir | |
25 dom-event | |
22 read-json | |
21 is-node | |
20 play-audio | |
17 shuffle-array | |
17 concat | |
16 style-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var fs = require('fs'); | |
function clean(module) { | |
// remove module.from | |
delete module.from; | |
// remove module.resolved unless it points to a git repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* using css syntax highlighting for giggles */ | |
#todos { | |
value <- #this.value; | |
} | |
#todos:iteration { | |
#done.value <- value.done; | |
#label.value <- value.label; | |
#item.classList.has('active') <- value.active; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tag="$(echo "$*" | sed 's/ /+/')" | |
random_api_url="http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC&tag=$tag" | |
gif_url="$(curl "$random_api_url" 2> /dev/null | jq '.data.image_url' -r)" | |
curl "$gif_url" 2> /dev/null | imgcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2012–2013 Daniel Foreman-Mackey | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* eslint-disable */ | |
var fs = require("fs"); | |
var glob = require("glob"); | |
var linter = require("eslint").linter; | |
var SOURCES = glob.sync("frontend/src/**/*.js*"); | |
var ESLINT_RULES = Object.keys(require('eslint/conf/eslint.json').rules); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh | |
set -e | |
# Must be a valid filename | |
NAME=fastcat | |
PIDFILE=/var/run/$NAME.pid | |
#This is the command to be run, give the full pathname | |
DAEMON=/home/root/fastcat.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metabase/ on master $ npm run build-hot | |
> [email protected] build-hot /Users/tlrobinson/Sync/Work/Metabase/metabase | |
> NODE_ENV=hot ./node_modules/webpack/bin/webpack.js && NODE_ENV=hot node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --inline --content-base frontend | |
module.js:339 | |
throw err; | |
^ | |
Error: Cannot find module 'optimist' |