This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git aliases | |
alias gb="git branch" | |
alias gba="git branch -a" | |
alias gc="git commit -v" | |
alias gd="git diff | mate" | |
alias gl="git pull" | |
alias gp="git push" | |
alias gst="git status" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script Language="JavaScript" type="text/javascript"> | |
<!-- | |
var curDateTime = new Date(); | |
var tzoffset = "-" + (curDateTime.getTimezoneOffset()/60); | |
var expiredate = new Date(); | |
expiredate.setTime(expiredate.getTime()+(120*24*60*60*1000)); // set expire date to 120 from now | |
if (-4 != tzoffset) { | |
document.cookie = "mlsfinder_tz="+tzoffset+";expires="+expiredate.toGMTString(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *boolString(BOOL yesNO) | |
{ | |
if(yesNo == NO) { | |
return (@"NO"); | |
} else { | |
return (@"YES"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
django-fowler | |
django-stream | |
django-flux | |
django-perpetua | |
django-breeze | |
django-fluid | |
django-current | |
django-tide | |
django-loop | |
django-circle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in yr model | |
def admin_edit_link(self): | |
return '<a href="/admin/%s/%s/%s/">%s</a>' % (self._meta.app_label, | |
self._meta.module_name, | |
self.id, | |
self.__unicode__()) | |
content_title.allow_tags = True | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def content_title(self): | |
return '<a href="/admin/%s/%s/%s/">%s</a>' % (self.content_object._meta.app_label, | |
self.content_object._meta.module_name, | |
self.content_object.id, | |
self.__unicode__()) | |
content_title.allow_tags = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fix dumb apple aslmanager memory leak | |
alias fixasl="sudo launchctl stop com.apple.syslogd; sudo launchctl stop com.apple.aslmanager; rm -rf ~/Desktop/temp/; mkdir ~/Desktop/temp; sudo mv /var/log/asl/* ~/Desktop/temp/; sudo launchctl start com.apple.syslogd; rm -rf ~/Desktop/temp/;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ui] | |
username = Josh Ourisman <josh@joshourisman.com> | |
[extensions] | |
fetch= | |
hgext.mq= | |
hgext.convert= | |
color= | |
rebase= | |
hgsubversion=~/.hg.d/hgsubversion/hgsubversion |
OlderNewer