Relies on the git_time_extractor gem, which can be installed with gem install git git_time_extractor.
Example usage...
$ git-hours --after 06/20/2014
Lawrence Jones: 38.8hrs
| # Configure default remote server for dredd tests | |
| REMOTE = 'http://localhost:55000' | |
| desc 'Runs dredd to verify API matches the apiary docs' | |
| task 'dredd', [], async: true, -> | |
| title "Running dredd on ./apiary.apib with #{REMOTE} remote" | |
| log 'Reading Imperial credentials from ~/.imp' | |
| try [user, pass] = | |
| fs.readFileSync("#{process.env.HOME}/.imp", 'utf8').split '\n' | |
| catch err |
| # /api/courses/year/cid | |
| num = /^\d+$/ | |
| nonWhitespace = /^[^\s\t\r\n]$/ | |
| nonEmpty = /[^\s\t\r\n]+/ | |
| any = /.*/ | |
| cateRes = | |
| /^https:\/\/cate\.doc\.ic\.ac\.uk\/showfile\.cgi\?key=(\d{4,4}):\d+:\d+::(NOTES|SPECS):\w+$/ | |
| discussion = |
| _ = require 'underscore' | |
| # Given an array of elements ELEM and a matching KEY value, | |
| # will build the apprpriate projection to generate sortable | |
| # weights for a mongo aggregator. | |
| # | |
| # ELEM: An array of values upon which to match against KEY | |
| # KEY: The document field key to match against | |
| # I: Default 0, index into array at which to begin | |
| # |
| #include <cstdarg.h> | |
| void writeValues(int count, ...) | |
| { | |
| /* Declare variadic args */ | |
| va_list ap; | |
| va_start(ap, count); | |
| Serial.print("#S|SAVEDATA|["); |
| #!/bin/sh | |
| cat $1 \ | |
| | grep -B 3 -E "Translation of Javascript" \ | |
| | grep "<dd>/" \ | |
| | sed "s/<dd>\(.*\)<\/dd>/\\1/g" \ | |
| | tr -s " " |
| { User } = require('sesquis/app/models/user') | |
| { StripeConnection } = require('sesquis/app/etc/stripe_connection') | |
| { CARDS } = require('sesquis/spec/seeds/stripe/stripe') | |
| describe 'Stripe', -> | |
| resetAndExposeUser = -> | |
| before resetDatabase |
| [ | |
| { | |
| "parents": [ | |
| { | |
| "id": "sjc113", | |
| "fname": "Samuel", | |
| "lname": "Coope", | |
| "year": 2 | |
| }, | |
| { |