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
function(input) { | |
var i=0; return _.max(_.map(input, function() {return _.reduce(input.substring(i++,i+4), function(o,m) {return o*m;})})) | |
} |
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/bash | |
AUTHOR=$(git config user.name) | |
DATE=$(date +%F) | |
git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u -r | while read DATE ; do | |
if [ $NEXT != "" ] | |
then | |
echo | |
echo [$NEXT] | |
fi | |
GIT_PAGER=cat git log --no-merges --format=" %s" --since=$DATE --until=$NEXT --author="$AUTHOR" --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 bash | |
# Development environmet installation script for OS X | |
# This script will | |
# - Install Homebrew (http://mxcl.github.com/homebrew/) | |
# - Install GIT | |
# - Run GIT/GitHub setup script (https://github.com/help/setup) | |
# - Setups default global .gitignore file | |
# - Install Oh-My-ZSH (https://github.com/robbyrussell/oh-my-zsh) | |
# - Install Ruby Version Manager (http://beginrescueend.com/) |