Skip to content

Instantly share code, notes, and snippets.

@rach
rach / conftest.py
Last active Aug 29, 2015
Fixture to check if resolve
View conftest.py
@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]
View keybase.md

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:

View seach_conf_unaccented.sql
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 Apr 21, 2012
Simple script to check when tickets go on sale at the IMAX. You can search for multiple films and notify different email addresses.
View imax.py
#!/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 Apr 21, 2012
Simple script to check when tickets go on sale at the IMAX. You can search for multiple films and notify different email addresses.
View imax.py
#!/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
View helloworld.py
print "Hello World"