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
jluker@adsx:~> 12:32:49 5001 $ free -g | |
total used free shared buffers cached | |
Mem: 141 1 140 0 0 0 | |
-/+ buffers/cache: 0 141 | |
Swap: 195 0 195 |
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
import sys | |
import urllib2 | |
from invenio import intbitset | |
from optparse import OptionParser | |
import simplejson | |
import mimetools | |
if __name__ == '__main__': | |
op = OptionParser() |
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
157.23412 = (MATCH) boost(+body_syn:anagular +body_syn:diamater +body_syn:deredshifted,sum(product(float(cite_read_boost),const(5.0)),const(1.0))), product of: | |
45.160004 = (MATCH) sum of: | |
4.0087123 = (MATCH) weight(body_syn:anagular in 392299), product of: | |
0.4573753 = queryWeight(body_syn:anagular), product of: | |
2.3424382 = idf(docFreq=163755, maxDocs=626918) | |
0.19525607 = queryNorm | |
8.764602 = (MATCH) fieldWeight(body_syn:anagular in 392299), product of: | |
3.7416575 = tf(termFreq(body_syn:anagular)=14) | |
2.3424382 = idf(docFreq=163755, maxDocs=626918) | |
1.0 = fieldNorm(field=body_syn, doc=392299) |
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
\documentclass[% | |
reprint, | |
%superscriptaddress, | |
%groupedaddress, | |
%unsortedaddress, | |
%runinaddress, | |
%frontmatterverbose, | |
%preprint, | |
showpacs,preprintnumbers, | |
nofootinbib, |
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 group(iterator, count): | |
itr = iter(iterator) | |
while True: | |
yield tuple([itr.next() for i in range(count)]) | |
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
Have you wished you could see your branches listed by how recently you | |
worked on them? I often do. I get lazy and end up with a lot of things | |
called 'test1...N' or sometimes when I'm working with other people, I | |
lose track of which branch is their version of a thing and which is my | |
version. | |
This handy shell alias (stick it in your ~/.bashrc) can help. Thanks Jan! | |
{{{ | |
alias gitd='git for-each-ref --format="%(committerdate:short): |
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
# installing zipimport hook | |
import zipimport # builtin | |
# installed zipimport hook | |
# /usr/lib64/python2.4/site.pyc matches /usr/lib64/python2.4/site.py | |
import site # precompiled from /usr/lib64/python2.4/site.pyc | |
# /usr/lib64/python2.4/os.pyc matches /usr/lib64/python2.4/os.py | |
import os # precompiled from /usr/lib64/python2.4/os.pyc | |
import posix # builtin | |
# /usr/lib64/python2.4/posixpath.pyc matches /usr/lib64/python2.4/posixpath.py | |
import posixpath # precompiled from /usr/lib64/python2.4/posixpath.pyc |
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
INFO 2011-10-27T12:53:03 supybot horatio called by "anarchivist!~anarchivi@unaffiliated/anarchivist". | |
ERROR 2011-10-27T12:53:03 supybot Uncaught exception in ['horatio']. | |
Traceback (most recent call last): | |
File "/usr/lib/pymodules/python2.6/supybot/callbacks.py", line 1180, in _callCommand | |
self.callCommand(command, irc, msg, *args, **kwargs) | |
File "/usr/lib/pymodules/python2.6/supybot/utils/python.py", line 86, in g | |
f(self, *args, **kwargs) | |
File "/usr/lib/pymodules/python2.6/supybot/callbacks.py", line 1166, in callCommand | |
method(irc, msg, *args, **kwargs) | |
File "/home/zoia/supybot/supybot-plugins/plugins/Translators/plugin.py", line 312, in horatio |
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
import junit.framework.TestCase; | |
public class TestSanity extends TestCase { | |
public void testMatch() { | |
assertTrue("FOOBAR".matches("FOO")); | |
} | |
} |
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
import urllib2 | |
from invenio import intbitset | |
import simplejson | |
import mimetools | |
def get_facets(bitset, solr_url): | |
facet_query_url = "%s/invenio_facets" % solr_url | |
# now use the bitset to fetch the facet data |