Skip to content

Instantly share code, notes, and snippets.

View NigelThorne's full-sized avatar

Nigel Thorne NigelThorne

View GitHub Profile
@0livare
0livare / .gitconfig
Last active January 27, 2024 14:36
My git alias list. Running 'git alias' will pretty-print these commands to the terminal.
# Some options that may or may not be applicable to you
[user]
name = Zach Olivare
email = zach@olivare.net
[push]
default = upstream
[core]
autocrlf = input # Force replacing CRLF line endings with LF
ignorecase = false
# editor = code --wait
require "parslet"
require "pry"
class Parslet::Atoms::Str
def to_hash
{
"atom" => "str",
"str" => str
}
end
@NigelThorne
NigelThorne / load_jquery.js
Created May 8, 2012 22:51
Load JQuery & JQueryUI programatically
//Taken from http://www.jquery4u.com/javascript/dynamically-load-jquery-library-javascript/
//Load jQuery library using plain JavaScript
(function(){
var newscript = document.createElement('script');
newscript.type = 'text/javascript';
newscript.async = true;
newscript.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
})();