brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/usr/bin/perl | |
| # This script parses Git blame's "porcelain" output format and | |
| # ascertains the oldest lines of code seen. | |
| # | |
| # If you want to perform a custom report, just define your own callback | |
| # function and invoke parse_porcelain() with it. | |
| # | |
| # The expected input format is slightly modified from raw `git blame | |
| # -p`. Here is an example script for producing input: |
| #!/bin/bash | |
| # git-cleanup-repo | |
| # | |
| # Author: Rob Miller <[email protected]> | |
| # Adapted from the original by Yorick Sijsling | |
| git checkout master &> /dev/null | |
| # Make sure we're working with the most up-to-date version of master. | |
| git fetch |
| var Promise = require('bluebird'); | |
| var promiseWhile = function(condition, action) { | |
| var resolver = Promise.defer(); | |
| var loop = function() { | |
| if (!condition()) return resolver.resolve(); | |
| return Promise.cast(action()) | |
| .then(loop) | |
| .catch(resolver.reject); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>SVG Lines</title> | |
| <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
| <script src="belay.js"></script> | |
| <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> | |
| <style> | |
| body{ |
| @ECHO OFF | |
| SETLOCAL | |
| GOTO:MAIN | |
| REM | |
| REM Info functions start | |
| REM | |
| REM Display version and copyright information | |
| :VERSION |
| let animal = { | |
| animalType: 'animal', | |
| describe () { | |
| return `An ${this.animalType} with ${this.furColor} fur, | |
| ${this.legs} legs, and a ${this.tail} tail.`; | |
| } | |
| }; | |
| let mouseFactory = function mouseFactory () { |
| #!/usr/bin/env node | |
| var exec = require('child_process').exec, | |
| util = require('util'), | |
| fs = require('fs'), | |
| contents = null, | |
| branch, desc; | |
| // expect .git/COMMIT_EDITMSG | |
| if(/COMMIT_EDITMSG/g.test(process.argv[2])){ | |
| // look for current branch name |
| /** | |
| * Returns the global object. | |
| * Works even inside ES6 modules. | |
| */ | |
| function getGlobalObject() { | |
| // Workers don’t have `window`, only `self` | |
| if (typeof self !== 'undefined') { | |
| return self; | |
| } | |
| if (typeof global !== 'undefined') { |