Skip to content

Instantly share code, notes, and snippets.

@imownbey
imownbey / gist:128
Created July 21, 2008 20:31 — forked from maddox/gist:119
def what_is_gist
"A bad ass version-able pastebin"
This is sorta cool I guess?
end
I dont like this I dont think.
def get_object_or_404(klass, *args, **kwargs):
queryset = _get_queryset(klass)
try:
return queryset.get(*args, **kwargs)
except queryset.model.DoesNotExist:
raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
def get_object_or_404(klass, *args, **kwargs):
try:
return queryset.get(*args, **kwargs)
except queryset.model.DoesNotExist:
raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
We couldn’t find that file to show.
Dir.glob("**/{rakefile,Rakefile,rakefile.rb,Rakefile.rb,*.rake}").each do |f|
rake.add_import f
p f
end
rake.load_imports
p rake.top_level
ian-ownbeys-macbook:~ imownbey$ ping irc.freenode.net
PING chat.freenode.net (140.211.166.4): 56 data bytes
36 bytes from corv-car1-gw.nero.net (207.98.64.177): Communication prohibited by filter
ian-ownbeys-macbook:~ imownbey$ traceroute 216.155.130.130
traceroute to 216.155.130.130 (216.155.130.130), 64 hops max, 40 byte packets
1 172.16.228.1 (172.16.228.1) 1.790 ms 1.652 ms 2.621 ms
2 lm-core-vlan3228.usfca.edu (172.16.126.133) 1.168 ms 1.417 ms 1.344 ms
3 inet-msfc2-vlan3132.usfca.edu (172.16.126.158) 1.178 ms 1.106 ms 2.227 ms
4 138.202.128.202 (138.202.128.202) 9.107 ms 8.558 ms 8.536 ms
5 usf-1--usf-lan-interconnect.cenic.net (137.164.38.80) 3.083 ms 3.136 ms 1.736 ms
6 dc-sfo-dc1--usf-opteman.cenic.net (137.164.24.2) 9.863 ms 14.752 ms *
7 dc-oak-dc2--sfo-dc1-pos.cenic.net (137.164.22.33) 12.258 ms 10.301 ms 12.172 ms
8 dc-oak-core1--oak-agg2-ge-2.cenic.net (137.164.46.65) 10.971 ms 11.520 ms 10.205 ms
>>> $.getJSON("http://github.com/api/v1/json/iownbey/docbox/commits/master")
[Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "file:///Users/imownbey/Sites/docbox_html/jquery.js Line: 28"]