This file contains hidden or 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
> [email protected] install /Users/brendanb/src/github.com/polymer/tattoo/node_modules/nodegit | |
> node lifecycleScripts/install | |
[nodegit] Fetching binary from S3. | |
[nodegit] Failed to install prebuilt binary: | |
{ Error: Command failed: "/Users/brendanb/src/github.com/polymer/tattoo/node_modules/nodegit/node_modules/.bin/node-pre-gyp" install --fallback-to-build=false | |
node-pre-gyp ERR! install error | |
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://nodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.12.2-node-v48-darwin-x64.tar.gz | |
node-pre-gyp ERR! stack at Request.<anonymous> (/Users/brendanb/src/github.com/polymer/tattoo/node_modules/nodegit/node_modules/node-pre-gyp/lib/install.js:101:37) | |
node-pre-gyp ERR! stack at emitOne (events.js:101:20) |
This file contains hidden or 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
<link rel="import" href="../bower_components/polymer/polymer.html"> | |
<dom-module id="def-tag"> | |
<script> | |
class DefTag extends Polymer.Element { | |
static get is() { return 'def-tag'; } | |
static get config() { | |
return { properties: { name: { type: String } } }; | |
} | |
connectedCallback() { |
This file contains hidden or 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
npm install -g polymer-cli | |
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. | |
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. | |
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade | |
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead. | |
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue | |
/Users/brendanb/.nvm/versions/node/v6.3.0/bin/polymer -> /Users/brendanb/.nvm/versions/node/v6.3.0/lib/node_modules/polymer-cli/b |
This file contains hidden or 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
# modified from old Mike Grouchy blog post: | |
# http://mikegrouchy.com/blog/2012/05/compile-vim-with-python-support-on-osx-with-homebrew.html | |
require 'formula' | |
class Vim < Formula | |
homepage 'http://www.vim.org/' | |
url 'https://vim.googlecode.com/hg/'#, :revision => '6c318419e331' | |
version '7.4.373' #version '7.3.515' | |
def features; %w(tiny small normal big huge) end |
This file contains hidden or 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
func qs(arr []string) []string { | |
if len(arr) < 2 { | |
return arr | |
} | |
lte := []string{} | |
gt := []string{} | |
pivot := arr[len(arr)-1] | |
for index, elem := range arr { | |
if index == len(arr)-1 { | |
break |
This file contains hidden or 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/bash | |
# helper functions for immediate+persistent shell vars | |
# be sure to source ~/.vars in your ~/.bashrc etc. | |
# | |
# usage: | |
# $ var+ pdir /long/annoying/path/to/type/to/project/v1.0 | |
# $ cd $pdir | |
# (start a new terminal tomorrow...) | |
# $ cd $pdir |
This file contains hidden or 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/bash | |
rootdir=$1 | |
if [ -z $rootdir ]; then | |
rootdir=. | |
fi | |
for gitdir in `find $rootdir -name .git`; do | |
workdir=${gitdir%/*} |
This file contains hidden or 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
.--. | |
,' | | |
' | | |
,' \ | |
__ __ .' | | |
\ \ / /__ _ _ ' | | |
\ V / _ \ || | | | -. | |
|_|\___/\_,_| ___' | / |-- | |
_,,-' '--'''--._ | || |.-'\ | |
/ ..._______ `:. | ,' |
This file contains hidden or 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
;; STANDARD SCHEME. LOOK AT THOSE CLASSIC | |
;; END-OF-LINE PAREN SETS! I SEE 8 ON THE LAST LINE! | |
(define (quicksort ls . opt) | |
(let ((precedes? (if (null? opt) < (car opt)))) | |
(define (partition ls pivot) | |
(let loop ((rest ls) | |
(smalls '()) | |
(larges '())) |