Skip to content

Instantly share code, notes, and snippets.

View tgdev's full-sized avatar

Tom Gillard tgdev

View GitHub Profile
@tgdev
tgdev / .gitconfig-aliases
Last active August 20, 2021 00:35
Git aliases
# Some taken from https://gist.github.com/mwhite/6887990
# How to add to global gitconfig using vscode:
1. Set VS Code as git config editor: git config --global core.editor "code --wait"
2. Edit git config with VS Code: git config --global -e
# ========================================================================================
[alias]
s = status
@necolas
necolas / snippet.js
Created June 14, 2011 20:36
Optimised async loading of cross-domain scripts
/*
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/
* Better handling of scripts without supplied ids.
*
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function.
*/
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],