Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am travisj on github.
  • I am travisj (https://keybase.io/travisj) on keybase.
  • I have a public key whose fingerprint is 131E CF8B EDAA 9AFC E40A 85C2 C4B6 C41A 3845 3B9B

To claim this, I am signing this object:

@travisj
travisj / # neovim - 2016-06-22_14-21-38.txt
Created June 22, 2016 19:43
neovim (neovim/neovim/neovim) on Mac OS X 10.11.5 - Homebrew build logs
Homebrew build logs for neovim/neovim/neovim on Mac OS X 10.11.5
Build date: 2016-06-22 14:21:38
@travisj
travisj / OnEnter.js
Last active December 14, 2015 18:48
myApp.directive('onEnter', function() {
return function($scope, element, attrs) {
element.bind('keydown keypress', function(e) {
if (e.which === 13) {
$scope.$apply(function() {
$scope.$eval(attrs.onEnter);
});
e.preventDefault();
}
});
@travisj
travisj / email_template.pl
Created May 19, 2011 22:15 — forked from pete0emerson/email_template.pl
Email regex template
#!/usr/bin/perl -w
use strict;
my @emails = qw/
petetheemersons.org
p
p@
p@t.
@
:autocmd FileType php noremap <C-L> :!/usr/bin/php -l %<CR>
:autocmd FileType phtml noremap <C-L> :!/usr/bin/php -l %<CR>
autocmd FileType phtml set ft=html.phtml " For SnipMate
autocmd FileType markdown set ft=html.markdown " For SnipMate
syntax on
filetype on
filetype plugin on
set autoindent
String.prototype.template = function (o) {
if (!o) {
return this.toString();
}
return this.replace(/{([^{}]*)}/g,
function (a, b) {
var r = o[b];
if (r === null) {
return '';
} else {