- a git remote can have its default fetches customized, which can quietly lead to really weird behavior if you don't realize that happened (or if you have an empty
fetch
configured, say...) git fetch
andgit remote update
look very similar
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
=================================================== test session starts =================================================== | |
platform linux2 -- Python 2.7.5 -- pytest-2.3.4 | |
plugins: cov | |
collected 1 items | |
whatever.py F | |
======================================================== FAILURES ========================================================= | |
________________________________________________________ test_foo _________________________________________________________ |
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
function dispatch_submission_notifications($from_uid, $submission_id, $skip_notification_if_user_banned=FALSE) | |
{ | |
global $sql; | |
// Fetch the information for the submission. | |
// Do not rely on session information. | |
// | |
$query = 'SELECT adultsubmission '. | |
'FROM submissions '. | |
'WHERE rowid='.$sql->qstr($submission_id); |
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 DeferredAttribute(object): | |
"""Minor hackery used with `deferred_attr_factory`.""" | |
# Hopefully, more or less, self-explanatory. The __call__ is triggered at | |
# class creation time by declared_attr, which passes in the class itself, | |
# and then we do the "post" setup by listening for mapper_configured. | |
def __init__(self, generator): | |
self.generator = generator | |
self.done = False | |
def __call__(self, mapped_class): |
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
<alias> | |
<family>cursive</family> | |
<prefer> | |
<family>Comic Neue</family> | |
</prefer> | |
</alias> | |
<!-- comic neue is missing a few glyphs and fontconfig thinkgs it's --> | |
<!-- unsuitable for english text, oops! fix this forcibly. --> | |
<!-- once the font is fixed, the above rule is good enough --> | |
<match> |
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; |
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
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
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
// ==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== |