Skip to content

Instantly share code, notes, and snippets.

View patrick-higgins's full-sized avatar

Patrick Higgins patrick-higgins

View GitHub Profile
;;; go-template-mode.el --- Major mode for Go template language
;;; Commentary:
;; 1) Copy this file somewhere in your Emacs `load-path'. To see what
;; your `load-path' is, run inside emacs: C-h v load-path<RET>
;;
;; 2) Add the following to your .emacs file:
;;
;; (require 'go-template-mode)
#!/bin/bash
SUBDIRECTORY_OK=Yes
OPTIONS_KEEPDASHDASH=
OPTIONS_SPEC="\
release2 --old <old> --new <new> --base <base> <project1> <project2>...
release2 --continue
release2 recreates an integration branch, making it easy to remove branches
which proved unstable. Merge conflict resolutions are learned from the
@patrick-higgins
patrick-higgins / sskm.cgi
Last active December 27, 2015 05:29
Self-service key management CGI form for gitolite
#!/usr/bin/perl
use strict;
use warnings;
use CGI;
use File::Spec;
use lib $ENV{GL_LIBDIR};
use Gitolite::Rc;
@patrick-higgins
patrick-higgins / GitImporter.java
Created May 7, 2013 19:38
Finds a rename event
// Returns the item between startTime and endTime when oldPath was renamed to file in view.
// Searches file and it's folders for a rename event between those two times.
// Returns null if a rename event is not found.
private Item findRenameEventItem(View view, String oldPath, File file, long startTime, long endTime) {
String path = pathname(file);
String oldFolderName = FileUtils.getParent(oldPath, "/");
String folderName = FileUtils.getParent(path, "/");
String oldFileName = FileUtils.getName(oldPath, "/");
// file was probably renamed during the time period