Skip to content

Instantly share code, notes, and snippets.

@rach
rach / conftest.py
Last active August 29, 2015 14:13
Fixture to check if resolve
@pytest.fixture
def url_checker():
from pyramid.scripts.pviews import PViewsCommand
from pyramid.request import Request
from pyramid.paster import bootstrap
def view_match(url):
pviews = PViewsCommand([None, os.path.join(here, '../', 'development.ini'), url],
quiet=True)
config_uri = pviews.args[0]
@rach
rach / keybase.md
Last active August 29, 2015 13:57

Keybase proof

I hereby claim:

  • I am rach on github.
  • I am rach (https://keybase.io/rach) on keybase.
  • I have a public key whose fingerprint is E791 9E67 FBD5 00EA 8F68 DEDC 51F2 9143 BD13 3848

To claim this, I am signing this object:

CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french );
ALTER TEXT SEARCH CONFIGURATION fr ALTER MAPPING
FOR hword, hword_part, word WITH unaccent, french_stem;
CREATE TEXT SEARCH CONFIGURATION en ( COPY = english );
ALTER TEXT SEARCH CONFIGURATION en ALTER MAPPING
FOR hword, hword_part, word WITH unaccent, english_stem;
CREATE TEXT SEARCH CONFIGURATION de ( COPY = german );
ALTER TEXT SEARCH CONFIGURATION de ALTER MAPPING
@rach
rach / imax.py
Created April 21, 2012 19:49
Simple script to check when tickets go on sale at the IMAX. You can search for multiple films and notify different email addresses.
#!/usr/bin/env python
'''
Simple script to check when tickets go on sale at the London IMAX.
You can search for multiple films and notify different email addresses.
'''
__author__ = 'Sergio Garcez'
import sys, urllib, sched, time, smtplib, logging
@rach
rach / imax.py
Created April 21, 2012 15:27
Simple script to check when tickets go on sale at the IMAX. You can search for multiple films and notify different email addresses.
#!/usr/bin/env python
'''
Simple script to check when tickets go on sale at the IMAX.
You can search for multiple films and notify different email addresses.
'''
__author__ = 'Sergio Garcez'
import sys, urllib, re, sched, time, smtplib
@rach
rach / helloworld.py
Created February 18, 2012 16:09
Hello World
print "Hello World"