Skip to content

Instantly share code, notes, and snippets.

View davidism's full-sized avatar

David Lord davidism

View GitHub Profile
@samuelcolvin
samuelcolvin / python-people.md
Last active June 23, 2024 19:06
An incomplete list of people in the Python community to follow on Twitter and Mastodon.

Python People

(Updated 2022-11-16 with suggestions from comments below, Twitter and Mastodon)

An incomplete list of people in the Python community to follow on Twitter and Mastodon.

With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.

I would love you to comment below with links to people I've missed.

@phire
phire / pixel_ubershader.glsl
Created July 30, 2017 08:48
Dolphin Ubershaders
#version 430
#define FORCE_EARLY_Z layout(early_fragment_tests) in
#extension GL_ARB_shading_language_420pack : enable
#define ATTRIBUTE_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION(x)
#define FRAGMENT_OUTPUT_LOCATION_INDEXED(x, y)
#define UBO_BINDING(packing, x) layout(packing, binding = x)
@kms70847
kms70847 / animation.py
Last active August 29, 2015 14:24
KD Tree visualization
#animation.py
#prerequisites: ImageMagick (http://www.imagemagick.org/script/index.php)
import itertools
import os
import os.path
import subprocess
import shutil
import math
def generate_unused_folder_name():
@eevee
eevee / fonts.conf.xml
Last active September 5, 2022 03:42
my fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<dir>~/.fonts</dir>
<alias>
<family>serif</family>
<prefer>
<family>Source Serif Pro</family>
<family>IPAMincho</family>
</prefer>
@MadaraUchiha
MadaraUchiha / conclusions.md
Last active August 29, 2015 14:12
JavaScript room meeting

Meeting is adjourned. Following are the conclusions to the meeting:

  1. Help vampire treatment status.
  2. Users with low reputation or QA ratio should get a more targetted message
  3. Users who are being obvious help vampires are to be kicked
  4. If another regular is helping a help vampire, please inform them via a separate room
  5. Kicking policy
  6. Announcing kicks is no longer mandatory and should probably be discouraged - opening a room with the user is not obligatory but is nice, a meta post was opened about prompting other room owners but not general users about kicks.
  7. Lemon's 12 days of Christmas
  8. Was awesome

wsgi.input_terminated Proposal

Problem Description

Currently WSGI servers or WSGI middlewares cannot accept chunked requests or perform request filtering because a WSGI application needs to depend on the content length as this is the only thing that the specification currently guarantees will work.

wsgi.input_terminated Proposal

A two step proposal to fix the situation with different behaviors of input streams in WSGI.

WSGI servers have two options to providing the input stream:

  1. Provide wsgi.input as socket file unchanged. This means that wsgi.input_terminated is set to False or not added to the
@duncansmart
duncansmart / progressive-ace.htm
Created March 28, 2013 23:29
Integrating ACE Editor in a progressive way
<textarea name="my-xml-editor" data-editor="xml" rows="15"></textarea>
...
<textarea name="my-markdown-editor" data-editor="markdown" rows="15"></textarea>
...
<script src="//d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js"></script>
<script>
// Hook up ACE editor to all textareas with data-editor attribute
$(function () {
import socket
import struct
import json
def unpack_varint(s):
d = 0
for i in range(5):
b = ord(s.recv(1))
d |= (b & 0x7F) << 7*i
if not b & 0x80: