Skip to content

Instantly share code, notes, and snippets.

@magmoro
magmoro / builder.css
Created March 9, 2009 16:39
xml builder
h2, h3, h4{
font-weight:normal;
font-family:Georgia, serif;
padding-left:.5em;
}
h2{
background:#c3c3c3;
border-bottom:solid 1px #959595;
color:#6a6a6a;
@magmoro
magmoro / git_new_remote_branch.sh
Created March 15, 2009 09:22
new_remote_branch_git
git push origin master:refs/heads/test
#creates test branch
#or
git push origin local_branch:new_remote_branch
@magmoro
magmoro / splitter.py
Created April 12, 2009 18:55
splitter
splitter.py img.gif 10 10
splitter.py img.gif 10 15 20 12
@magmoro
magmoro / generic_8side_css.css
Created April 13, 2009 04:22
generate 8side css
v\:*{
behavior:url(#default#VML);
}
var Tabs=new Class({
Implements: [Events, Options],
options: {
},
initialize: function(options){
import os
def relpath(path, root=''):
if not root:
root=os.curdir
path=os.path.normpath(path)
root=os.path.normpath(root)
common=os.path.commonprefix((path, root))
tail=root[len(common):]