Skip to content

Instantly share code, notes, and snippets.

View Shadowfiend's full-sized avatar
💇
Studioin'.

Antonio Salazar Cardozo Shadowfiend

💇
Studioin'.
View GitHub Profile
@Shadowfiend
Shadowfiend / gist:1040867
Created June 22, 2011 19:11 — forked from nomothetis/gist:1040861
Fish script for committing to SVN via git-svn
# 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 June 20, 2011 05:23 — forked from mjtko/nativeTemplateEngine.js
knockout "native" template engine
ko.nativeTemplateEngine = function () {
function nodeListToArray(nodeList) {
var array = [];
for (var i = 0; i < nodeList.length; ++i)
array[i] = nodeList[i];
return array;
}