Skip to content

Instantly share code, notes, and snippets.

View jezdez's full-sized avatar
🚴
💨

Jannis Leidel jezdez

🚴
💨
View GitHub Profile
@jezdez
jezdez / Localizable.strings
Created May 1, 2009 19:27
German translation for ExpanDrive 2.X
/* Single words */
"Action" = "Aktion";
"All" = "Alles";
"Cancel" = "Abbrechen";
"Close" = "Schließen";
"Connect" = "Verbinden";
"Continue" = "Fortsetzen";
"Delete" = "Löschen";
"Edit" = "Bearbeiten";
"Eject" = "Auswerfen";
from mimetypes import guess_type
from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import Storage
from django.utils.encoding import iri_to_uri
import re
try:
import S3
except ImportError:
raise ImproperlyConfigured, "Could not load amazon's S3 bindings.\
For the Birds - http://nycbirdlist.org/
Code monkeys - http://djapp.org/
Freelancer - http://tnycnt.com/
Sword of Truth - http://leafychat.com/
Devcult - http://coda.fm/
wwswd - http://wwswd.com/
East meets West - http://whohasmy.net/
crunkd - http://getcrunkd.com:88/
Ra - http://www.ntrie.com/
arctangent - http://rudestword.com/
@jezdez
jezdez / MenuBar.py
Created June 14, 2009 12:23
This is a plugin for Colloquy (trunk/nightly) that creates a status menu bar item with some helpful entries.
# -*- coding: utf-8 -*-
import objc
from Foundation import *
from AppKit import *
from sys import *
# the NSStatusItem we'll create
statusItem = 0
inactiveIcon = 0
# Bash snippet to open new shells in most recently visited dir.
# Useful if you want to open a new terminal tab at the present
# tab's location.
#
# Put this in your .bashrc or whatever.
pathed_cd () {
if [ "$1" == "" ]; then
cd
else
#!/bin/sh
#
# Shell script to open files or folders with Murky.app
# Based on a script by Wout Mertens and suggestions from Laurent Bihanic.
# The original version is the fault of Benji Fisher, 16 May 2005 (with
# modifications by Nico Weber and Bjorn Winckler, Aug 13 2007). Originally
# released as the "mvim" shell script of MacVim.app.
# First, check "All the Usual Suspects" for the location of the Murky.app
#!/usr/bin/env python
import os
import os.path
for root, dirs, files in os.walk("."):
for filename in files:
path = os.path.join(root, filename)
if any(filename.endswith(ending) for ending in [".py", ".html", ".txt", ".css"]):
tabs = False
#!/usr/bin/env python
import os
import os.path
for root, dirs, files in os.walk("."):
for filename in files:
path = os.path.join(root, filename)
if any(filename.endswith(ending) for ending in [".py", ".html", ".txt", ".css"]):
marked = []
@jezdez
jezdez / gist:217442
Created October 24, 2009 08:43 — forked from steida/gist:216120
:⌉
=⌉
¦-) as opposed to |
⍥ om nom nom
# Simple way to see which version of django apps you have
# Author: Alexander Artemenko
import pkg_resources
from django.conf import settings
def get_version(app):
try:
d = pkg_resources.get_distribution(app)
return d.project_name, d.version