Skip to content

Instantly share code, notes, and snippets.

View jezdez's full-sized avatar
🚴
💨

Jannis Leidel jezdez

🚴
💨
View GitHub Profile
@jezdez
jezdez / keybase.md
Created March 6, 2014 22:15
keybase.md

Keybase proof

I hereby claim:

  • I am jezdez on github.
  • I am jezdez (https://keybase.io/jezdez) on keybase.
  • I have a public key whose fingerprint is 02E6 89FD 06FF 9474 13E0 887F C795 956F B489 DCA9

To claim this, I am signing this object:

@jezdez
jezdez / gist:aff7081e24268f870b67
Created November 3, 2014 20:32
constance_lazy.py
from django.utils.functional import lazy
import constance.config
from constance.admin import FIELDS
compatible_types = list(FIELDS.keys())
def config(name, default=None):
"""
@jezdez
jezdez / gist:6038111069d7ad85735c
Created January 7, 2015 09:41
What's a good (read: speakable) name for a list of two-item-lists or a tuple of two-item-tuples? #python
@jezdez
jezdez / easter-at-midnight.eml
Created April 4, 2015 22:04
On the feasibility and long term maintainability of Open Source Software created in spare time and the effect on the everyday life of a programmer
Hi,
Thanks for your mail, since you're one of many people asking this
here are the facts about me not having released an update yet:
- I'm aware of the upstream release and the breakage of my software
- I'm working on software like the one you asked about in my spare time
- I have limited spare time since I'm just one person
- I've spent extensive time on the software (see master branch)
but my limited sparetime still ran out eventually
Django girls, Django gays
(E: entrevistador. A y B son los entrevistados, no consigo identificarlos por su voz al 100% con los que se presentan al principio del podcast)
- E: Tenéis pensada alguna actividad para fomentar una sociedad “más mejor”? Es una pregunta un poco rara.
- A: Je, ¿una sociedad más mejor? Hombre, pues mira, ahí va a haber como es la <no se entiende bien> Django Girls, los Django Gays, los Django... (se oyen risas) de todos los colores (más risas). Digo yo, por aquello de las cosas diferentes, no?
- B: Por ahora solo hay...
- A: (interrumpe) No, también a lo mejor hacemos los Django Macho <incomprensible> las mujeres
- B: Los Macho Ibéricos
- A: Hombre, a ver, básicamente, a ver. Lo que ocurre con Python y estas comunidades, ese movimiento de software libre compartido, eso es una revolución de tal calibre que ello per se ya es una transformación de la sociedad. No hay que andar buscándole muchas vueltas a la cosa. Yo he conocido la época en la que no había software, porque ya soy un poco
diff --git a/tidylib/sink.py b/tidylib/sink.py
index 25bc791..2bc7e73 100644
--- a/tidylib/sink.py
+++ b/tidylib/sink.py
@@ -76,7 +76,7 @@ class Sink(object):
def put_byte(sink_id, byte):
# We don't need sink_id because we have a separate put_byte
# function for each sink
- write_func(byte.decode('utf-8'))
+ write_func(byte.decode('utf-8', 'ignore'))
(function(win) {
'use strict';
(function (globals) {
var django = globals.django || (globals.django = {});
@jezdez
jezdez / coda.sh
Created August 27, 2008 13:47
coda shell script. Download that script by clicking on "raw" and save it somewhere on your $PATH as "coda". Then make it executable (chmod +x /path/to/coda).
#!/bin/sh
#
# Shell script to open files or folders with Coda.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 Coda.app
#!/bin/sh
# create by using git svn clone -s --prefix=svn/ <URL-TO-REPO>
for i in ~/public_html/*
do
( cd $i ; echo $i ; git svn rebase ; git gc --auto ; git-update-server-info )
done
This was retrieved from Google cache
Original: http://www.dcl.hpi.uni-potsdam.de/home/loewis/versions
.000001
.012
.020
.022
.1
.94
.98