Skip to content

Instantly share code, notes, and snippets.

View evidens's full-sized avatar

F. Gabriel Gosselin evidens

View GitHub Profile
//Conditionally load jQuery
//inspired by http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/
window.onload = function () {
if (typeof jQuery == 'undefined') {
var jQ = document.createElement('script');
jQ.type = 'text/javascript';
jQ.onload = jQ.onreadystatechange = myOnLoadEvent;
jQ.src = ( "https:" == location.protocol ? "https://" : "http://" ) + 'ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.body.appendChild(jQ);
@evidens
evidens / vim.rb
Created April 16, 2012 22:45
Vim formula for Homebrew
require 'formula'
class VimHg < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => '2cfb68fa26cd'
version '7.3.487'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end