Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Jannis Leidel jezdez

🏠
Working from home
View GitHub Profile
@jezdez
jezdez / gist:6222d1ba8b10d734d003492e58041687
Last active Nov 6, 2019
How PyPA (Python Packaging Authority) got its name
View gist:6222d1ba8b10d734d003492e58041687
Date: Mon, 28 Feb 2011 18:01:09 +0100
From: Jannis Leidel <jannis@spam.eggs>
To: Carl Meyer <carl@spam.eggs>,
Brian Rosner <brosner@spam.eggs>,
Ian Bicking <ianb@spam.eggs>
Subject: (github) account naming
Hi all,
So we should probably find a name for the new home of pip and virtualenv =
@jezdez
jezdez / pytest_lean.py
Created Sep 6, 2019
Pytest plugin to disable some plugins
View pytest_lean.py
def pytest_addoption(parser):
parser.addoption(
"--lean",
action="store_true",
default=False,
help="Set if this is running in a CI environment.",
)
View -
https://gist.github.com/d9d140f8caf9e740ac91b55365158aa8
View -
android-sdk
apache-spark
aria2
asio
aspell
autoconf
autoenv
automake
axel
bash
@jezdez
jezdez / app_group_patch.py
Created Apr 28, 2016
Patch Click to use a Flask 1.0 AppGroup by default to get automatic app context for commands
View app_group_patch.py
import click
try:
from flask.cli import AppGroup
except ImportError:
from flask_cli import AppGroup
def group(name=None, **attrs):
"""The same as ``click.grop`` but sets the default command class
@jezdez
jezdez / is_emoji.py
Created Dec 7, 2015
A Python script to check if a character is or a text contains emoji
View is_emoji.py
# -*- encoding: utf-8 -*-
# pip install emoji
import emoji
def char_is_emoji(character):
return character in emoji.UNICODE_EMOJI
View i18n.js
(function(win) {
'use strict';
(function (globals) {
var django = globals.django || (globals.django = {});
View .diff
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'))
View EuroPythonPodcast
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
@jezdez
jezdez / easter-at-midnight.eml
Created Apr 4, 2015
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
View easter-at-midnight.eml
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
You can’t perform that action at this time.