Skip to content

Instantly share code, notes, and snippets.

@mvaz
mvaz / .htaccess
Created March 19, 2010 15:11 — forked from leebyron/.htaccess
Redirect links to dropbox
Options +FollowSymlinks
RewriteEngine on
# No intersticial for direct reference and self-reference
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://box.leebyron.com/.*$ [NC]
# Add a line item for every website you don't need an intersticial for
# I've added my own website, gmail and facebook
RewriteCond %{HTTP_REFERER} !^http(s)?://([^\.]*.)?leebyron.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://mail.google.com/.*$ [NC]
@mvaz
mvaz / x.js
Created March 19, 2010 14:47 — forked from anonymous/x.js
/*var noun_type_train_station_start = {
name: "Train station",
label: "station",
default: "Stuttgart Hbf",
};*/
var noun_type_train_station = {
name: "Train station",
label: "station",
default: "Stuttgart Hbf",
@mvaz
mvaz / .gitattributes
Created December 1, 2009 11:35 — forked from program247365/.gitattributes
git configuration files for xcode projects
*.pbxproj -crlf -diff -merge
"""ajaxgoogle.py - Simple bindings to the AJAX Google Search API
(Just the JSON-over-HTTP bit of it, nothing to do with AJAX per se)
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje
brendan o'connor - gist.github.com/28405 - anyall.org"""
try:
import json
except ImportError:
import simplejson as json
import urllib, urllib2