View cvc-env.sh
export PS1="[\u@\h \w]$ " | |
mkdir -p /home/test | |
export HOME=/home/test | |
mkdir -p ~/conary/builds | |
cat > ~/.conaryrc <<EOF | |
buildPath ~/conary/builds | |
EOF |
View gist:1231609
# | |
# This piece of code is in the public domain. | |
# <zh.jesse@gmail.com> | |
# | |
#### the filter #### | |
def insert_ellipse(lst, ellipse=0): | |
'''Insert ellipse where it's not sequential |
View gist:1231597
#### tag #### | |
from django import template | |
from django.core import urlresolvers | |
register = template.Library() | |
@register.simple_tag | |
def nav_active(request, views): | |
views = ["myapp.views." + view for view in views.split()] |
View relative_time.py
# | |
# This piece of code is in the public domain. | |
# <zh.jesse@gmail.com> | |
# | |
from datetime import datetime | |
def get_age(date): | |
'''Take a datetime and return its "age" as a string. | |
The age can be in second, minute, hour, day, month or year. Only the |
View another-window-layout.patch
diff --git a/upgrade.glade b/upgrade.glade | |
index 91d6bd5..de069b6 100644 | |
--- a/upgrade.glade | |
+++ b/upgrade.glade | |
@@ -6,65 +6,85 @@ | |
<property name="title" translatable="yes">Foresight upgrade Helper</property> | |
<property name="icon">/usr/share/pixmaps/foresight-icon.png</property> | |
<child> | |
- <widget class="GtkFixed" id="fixed1"> | |
+ <widget class="GtkHBox" id="hbox1"> |
NewerOlder