This file contains 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
var outline_shader = { | |
uniforms: { | |
"linewidth": { type: "f", value: 0.3 }, | |
}, | |
vertex_shader: [ | |
"uniform float linewidth;", | |
"void main() {", | |
"vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );", | |
"vec4 displacement = vec4( normalize( normalMatrix * normal ) * linewidth, 0.0 ) + mvPosition;", | |
"gl_Position = projectionMatrix * displacement;", |
This file contains 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/plumbum/commands/modifiers.py b/plumbum/commands/modifiers.py | |
index 30f8dbf..1a5f8e6 100644 | |
--- a/plumbum/commands/modifiers.py | |
+++ b/plumbum/commands/modifiers.py | |
@@ -151,12 +151,26 @@ class TEE(ExecutionModifier): | |
with cmd.bgrun(retcode=self.retcode, stdin=None, stdout=PIPE, stderr=PIPE) as p: | |
outbuf = [] | |
errbuf = [] | |
+ buffers = {} | |
+ tee_to = {} |
This file contains 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
# Begin logging configuration | |
[loggers] | |
keys = root, veekun_pokedex, sqlalchemy | |
[handlers] | |
keys = console | |
[formatters] | |
keys = generic |
This file contains 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
this is an egregiously long line, meant only as a test of whether a gist will wrap long lines of plain text when it knows for sure that the language is plain english text |
This file contains 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
glaceon: !!python/object/apply:collections.OrderedDict | |
dictitems: | |
base-happiness: 70 | |
capture-rate: 45 | |
color: blue | |
hatch-counter: 0 | |
identifier: glaceon | |
is-dimorphic: false | |
types: [ice] |
This file contains 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
// ==UserScript== | |
// @name disable key events | |
// @namespace eev.ee | |
// @description Prevents JS on the page from receiving keyup, keydown, or keypress. Fixes, e.g., Twitter's disabling of shortcuts until the page has loaded. | |
// @include https://twitter.com/* | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains 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
class WeakProperty: | |
"""Descriptor that automatically holds onto whatever it contains as a weak | |
reference. Reading this attribute will never raise `AttributeError`; if | |
the reference is broken or missing, you'll just get `None`. | |
The actual weak reference is stored in the object's `__dict__` under the | |
given name, so this acts as sort of a transparent proxy that lets you | |
forget you're dealing with weakrefs at all. | |
Of course, if you try to assign a value that can't be weak referenced, |
This file contains 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 lib2to3.fixer_base import BaseFix | |
from lib2to3.fixer_util import Name | |
from lib2to3.main import StdoutRefactoringTool | |
from lib2to3.pytree import Node | |
import sys | |
class FixAssertEqual(BaseFix): | |
PATTERN = ''' | |
power< |
This file contains 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
<!-- define font family for some fonts fontconfig doesn't know about --> | |
<alias> | |
<family>Source Code Pro</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> | |
<family>Droid Sans Mono</family> | |
<default><family>monospace</family></default> | |
</alias> | |
<alias> |
This file contains 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/_mysql.c._mysql_ConnectionObject_get_character_set_info-refcount-errors.v2.html b/_mysql.c._mysql_ConnectionObject_get_character_set_info-refcount-errors.v2-new.html | |
index 27cd945..a4bc009 100644 | |
--- a/_mysql.c._mysql_ConnectionObject_get_character_set_info-refcount-errors.v2.html | |
+++ b/_mysql.c._mysql_ConnectionObject_get_character_set_info-refcount-errors.v2-new.html | |
@@ -99,8 +99,8 @@ body { | |
background: #EBEBEB; | |
height: 100%; | |
- display: box; | |
- box-orient: vertical; |