Skip to content

Instantly share code, notes, and snippets.

Avatar
🦮
Trottin'.

Antonio Salazar Cardozo Shadowfiend

🦮
Trottin'.
View GitHub Profile
@Shadowfiend
Shadowfiend / gist:1040867
Created Jun 22, 2011 — forked from nomothetis/gist:1040861
Fish script for committing to SVN via git-svn
View gist:1040867
# This script requires fish-nuggets, available at:
# http://github.com/nirvdrum/fish-nuggets
function svnc --description "Commit from git master to SVN."
if not is-git
echo "svnc can only be run from a git repository."
return
end
set -l branch (env git symbolic-ref -q HEAD)
@Shadowfiend
Shadowfiend / nativeTemplateEngine.js
Created Jun 20, 2011 — forked from mjtko/nativeTemplateEngine.js
knockout "native" template engine
View nativeTemplateEngine.js
ko.nativeTemplateEngine = function () {
function nodeListToArray(nodeList) {
var array = [];
for (var i = 0; i < nodeList.length; ++i)
array[i] = nodeList[i];
return array;
}