-
The code will get better. Linus' Law: "given enough eyeballs, all bugs are shallow": we'll be able to get community contributions and bug reports, and thus the code will grow better faster than we can grow it ourselves. Also, Joy's Law - "No matter who you are, most of the smartest people work for someone else": we'll get better code from people who don't work for us than from people who do.
-
We'll write better code. Wall's 3rd great virtual of a programmer, Hubris: we'll write better code people we don't want other people to say bad things about us. We'll do better with the world watching than with just us.
-
Increased ability to hire. We're a 19k circ newspaper in a town most people have never heard of. Open source will help put us on the map, make us a place people actually might be interested in working.
-
When we do hire, we'll be able to hire pe
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true" | |
| if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi | |
| if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi | |
| pyenv virtualenvwrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.utils.functional import lazy | |
| import constance.config | |
| from constance.admin import FIELDS | |
| compatible_types = list(FIELDS.keys()) | |
| def config(name, default=None): | |
| """ |
https://twitter.com/jezdez/status/552581711754981376
Status: 2015-01-07
- A sequence of pairs
- dublist
- a list or tuple pairs
- twople (2x)
- Poor-man's ordereddict
- List of alists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function(win) { | |
| 'use strict'; | |
| (function (globals) { | |
| var django = globals.django || (globals.django = {}); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- encoding: utf-8 -*- | |
| # pip install emoji | |
| import emoji | |
| def char_is_emoji(character): | |
| return character in emoji.UNICODE_EMOJI | |