I hereby claim:
- I am brittbinler on github.
- I am brittbinler (https://keybase.io/brittbinler) on keybase.
- I have a public key ASAsQHC2M6zMbR3K3uau0dL4j9sUEJniL3XF2fwkLd1LGgo
To claim this, I am signing this object:
| #!/bin/bash | |
| CHANGED_FILES=`git diff origin/master...HEAD --name-only` | |
| node_modules/eslint/bin/eslint.js -f json $CHANGED_FILES --quiet | node_modules/eslines/index.js --quiet | |
| if [[ $? != 0 ]] ; then | |
| echo "Fix style violations" | |
| exit 1 | |
| fi | |
| echo "All changed files are good" |
| # Credit: https://stackoverflow.com/questions/1707709/list-all-the-modules-that-are-part-of-a-python-package/1707786 | |
| # this is the package we are inspecting -- for example 'email' from stdlib | |
| import my_package | |
| package = my_package | |
| for importer, modname, ispkg in pkgutil.iter_modules(package.__path__): | |
| print("Found submodule %s (is a package: %s)" % (modname, ispkg)) | |
| #!/usr/bin/env python | |
| ## Source: https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook | |
| import os | |
| import re | |
| import subprocess | |
| import sys | |
| modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)') |
I hereby claim:
To claim this, I am signing this object:
| docker ps | |
| docker exec -it <container name> /bin/bash |
| # Install pandoc before running | |
| find ./ -iname "*.docx" -type f -exec sh -c 'pandoc "${0}" -o "${0%.docx}.pdf"' {} \; |
| gcloud config set account [service account email] | |
| gcloud auth application-default print-access-token |
| # Credit: https://stackoverflow.com/questions/7171725/open-new-terminal-tab-from-command-line-mac-os-x | |
| # Alternative: https://www.npmjs.com/package/ttab | |
| # Opens a new tab in the current Terminal window and optionally executes a command. | |
| # When invoked via a function named 'newwin', opens a new Terminal *window* instead. | |
| function newtab { | |
| # If this function was invoked directly by a function named 'newwin', we open a new *window* instead | |
| # of a new tab in the existing window. | |
| local funcName=$FUNCNAME |
| var fs = require('fs'), | |
| PDFDocument = require('pdfkit'), | |
| async = require('async'), | |
| ColorThief = require('color-thief'), | |
| colorThief = new ColorThief(); | |
| var bookWidth = 430; | |
| var bookHeight = 343; |
| say -f script.txt -o script.aiff | |
| lame -m m script.aiff script.mp3 | |
| afplay test.mp3 |