Skip to content

Instantly share code, notes, and snippets.

Juan: Hey Ana, como estás?
Ana: Bien, y vos? Está lindo el día no?
Juan: Sí, pero... a mi en realidad me gusta la lluvia.
Ana: Ah, entonces ya no te quiero.
La bicicleta de mi hermana
==========================
Anoche soñé que le robaban la bicicleta a mi hermana.
Ella me llama al teléfono fijo de la casa de mi abuela y me dice: "Ren, me
acaban de robar la bici, fijate si no ves pasar al chorro por la vereda". Fui
hasta el garage, me descalcé y esperé tranquilo detrás de la puerta con mi bate
de baseball -no sabía que tenía uno-.
diff -ruN nvidia-bl/nvidia_bl.c nvidia-bl-new/nvidia_bl.c
--- nvidia-bl/nvidia_bl.c 1970-01-01 06:13:08.000000000 -0300
+++ nvidia-bl-new/nvidia_bl.c 2010-06-22 23:12:13.163776338 -0300
@@ -30,8 +30,10 @@
* but there's no guarantee that the chip's smartdimmer signals
* are actually connected to the display logic. Right now, these
* are the supported (read connected) vendors according to NvClock.
+ *
+ * TODO: Remove this stuff. Shouldn't be necessary.
*/
import re
import sys
_RE_NUM = re.compile(r'\d+')
def get_triangle_path(stream, key=lambda x: x):
col = 0 #the column number in which the last step of the path was found
#!/bin/sh
# This scripts installs into the current active Python virtualenv:
# - pygobject-2.12.1
# - pygtk-2.10.1
# - pushd pycairo-1.2.0
DATADIR=/tmp/py24gtk-data
WORKDIR=`mktemp -d`
make_option('--boys-dont-cry', dest='silent_fail', action='store_true', default=False,
help=u"Don't exit on item update errors; try other items.")
class WidgetHtml(models.Model):
POSITION_CHOICES = (
('content', 'Content'),
('sidebar', 'Sidebar')
)
content_type = models.ForeignKey('contenttypes.ContentType')
position = models.CharField(choices=POSITION_CHOICES, default='content')
html = models.TextField()
k@hirako ~/q/rvh % python uruguay.py
[{'date': datetime.date(2010, 3, 4),
'height': 328,
'port': 'Montecaseros',
'river': u'uruguay'},
{'date': datetime.date(2010, 3, 4),
'height': 298,
'port': 'Bella Union',
'river': u'uruguay'},
{'date': datetime.date(2010, 3, 4),
#include <stdio.h>
int main(int argc, char **argv)
{
if (rand() % 534263 == 0) {
printf("You are extremely unlucky and this program is way too cool for you. Good bye\n");
return 1;
}
do_something_cool();
Traceback (most recent call last):
File "/home/popego/envs/twitpie/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/wsgiserver/__init__.py", line 1174, in communicate
req.respond()
File "/home/popego/envs/twitpie/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/wsgiserver/__init__.py", line 544, in respond
self._respond()
File "/home/popego/envs/twitpie/lib/python2.5/site-packages/CherryPy-3.1.2-py2.5.egg/cherrypy/wsgiserver/__init__.py", line 556, in _respond
response = self.wsgi_app(self.environ, self.start_response)
File "/home/popego/deploy/branches/twitpie/categorizer/categorizer/apps/twitpie/web/server.py", line 56, in __call__
answer = self.twitterScoringService.categorize(user)
File "/home/popego/deploy/branches/twitpie/categorizer/categorizer/apps/twitpie/service/twitter.py", line 137, in categorize