This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/bin/sh | |
read OLDREV NEWREV REFNAME | |
BRANCHNAME=${REFNAME#refs/heads/} | |
export GIT_WORK_TREE=$HOME/deploy/genome/$BRANCHNAME | |
mkdir -p $GIT_WORK_TREE | |
echo "Deploying to $GIT_WORK_TREE..." | |
/usr/bin/git checkout -f $BRANCHNAME | |
echo "Deploy done." |
// Ported to JavaScript By John Resig - http://ejohn.org/ - 21 May 2008 | |
// Original by John Gruber - http://daringfireball.net/2008/05/title_case - 10 May 2008 | |
// License: http://www.opensource.org/licenses/mit-license.php | |
function toTitleCase(title){ | |
var small = "(a|an|and|as|at|but|by|en|for|if|in|of|on|or|the|to|v[.]?|via|vs[.]?)"; | |
var punct = "([!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]*)"; | |
var parts = [], split = /[:.;?!] |(?: |^)["Ò]/g, index = 0; | |
while (true) { |
for PATH in "$@"; do | |
FILE="$(basename "$path")" | |
SUBJECT="${FILE%.*}" | |
/usr/local/bin/mutt -a "$PATH" -s "$SUBJECT" -- $KINDLE_EMAIL < /dev/null | |
done |
set folder="~/Library/Application Support/mutt" | |
set record="+sent" | |
set mbox_type=Maildir |
#!/usr/bin/env perl | |
# 1) Drop in your path and make it executable. | |
# 2) Add a map in your vimrc like: | |
# vnoremap <leader>sub :! perl-extract-method<CR> | |
use warnings; | |
use strict; | |
use IO::File qw(); |
diff --git a/github-oauth/pom.xml b/github-oauth/pom.xml | |
index f3acf76..9310483 100644 | |
--- a/github-oauth/pom.xml | |
+++ b/github-oauth/pom.xml | |
@@ -65,7 +65,7 @@ limitations under the License. | |
<dependency> | |
<groupId>com.google.gerrit</groupId> | |
<artifactId>gerrit-plugin-api</artifactId> | |
- <version>${project.version}</version> | |
+ <version>2.8</version> |
$ mvn install -U | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for com.googlesource.gerrit.plugins.github:github-plugin:jar:2.8-SNAPSHOT | |
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:javax.servlet-api:jar -> duplicate declaration of version 3.0.1 @ line 147, column 17 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] |
$ git log --oneline -n 1 | |
f95fcd3 Uniform "Next" step action button with other screns. | |
$ git diff | |
diff --git a/github-oauth/pom.xml b/github-oauth/pom.xml | |
index f3acf76..9310483 100644 | |
--- a/github-oauth/pom.xml | |
+++ b/github-oauth/pom.xml | |
@@ -65,7 +65,7 @@ limitations under the License. | |
<dependency> |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project github-plugin: Compilation failure: Compilation failure: | |
[ERROR] /home/vagrant/github/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java:[217,8] error: no suitable constructor found for Change(Key,com.google.gerrit.reviewdb.client.Change.Id,com.google.gerrit.reviewdb.client.Account.Id,NameKey) | |
[ERROR] constructor Change.Change(Key,com.google.gerrit.reviewdb.client.Change.Id,com.google.gerrit.reviewdb.client.Account.Id,NameKey,Timestamp) is not applicable | |
[ERROR] (actual and formal argument lists differ in length) | |
[ERROR] constructor Change.Change() is not applicable | |
[ERROR] (actual and formal argument lists differ in length) | |
[ERROR] /home/vagrant/github/github-plugin/src/main/java/com/googlesrouce/gerrit/plugins/github/git/PullRequestCreateChange.java:[269,8] error: no suitable constructor found for ChangeMessage(Key,com.google.gerrit.reviewd |