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
Step1-Identify LCD: | |
Open Terminal and copy-paste | |
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6 | |
LP154WT1-SJA2 (=LG 2nd revision) | |
LP154WT1-SJA1 (=LG 1st revision) | |
LSN154YL01001 (=Samsung) | |
Step2-Test for IR: | |
http://www.mitchmalone.name/retina-test/ |
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
AppBase | |
AppPortrait | |
AppSketch | |
AppPassport | |
AppPlan | |
AppDetails | |
AppSpec | |
AppThing | |
AppTraits | |
AppFrame |
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
""" | |
module mydjangolib.bigint_patch | |
A fix for the rather well-known ticket #399 in the django project. | |
Create and link to auto-incrementing primary keys of type bigint without | |
having to reload the model instance after saving it to get the ID set in | |
the instance. | |
Logs: |
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
# apkg/__init__.py | |
# Empty. Nothing to see here. |
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 functools import wraps | |
from mock import patch | |
def environ(**variables): | |
def decorator(func): | |
@wraps(func) | |
def wrapped(*args, **kwargs): | |
with patch.dict('os.environ', variables): | |
return func(*args, **kwargs) |
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/docs/ref/class-based-views/fundamentals.txt b/docs/ref/class-based-views/fundamentals.txt | |
index 2591869..95ae352 100644 | |
--- a/docs/ref/class-based-views/fundamentals.txt | |
+++ b/docs/ref/class-based-views/fundamentals.txt | |
@@ -16,9 +16,8 @@ views. | |
**Method Flowchart** | |
- 1. dispatch() | |
- 2. http_method_not_allowed() |
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
before: | |
Running all benchmarks | |
Control: Django 1.4 pre-alpha (in git branch master) | |
Experiment: Django 1.4 pre-alpha (in git branch soc2011/form-rendering) | |
Running 'simple_form' benchmark ... | |
Min: 0.000264 -> 0.000267: 1.0117x slower | |
Avg: 0.000309 -> 0.000448: 1.4518x slower | |
Significant (t=-76.577531) |
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
1769 git | |
1258 cd | |
596 python | |
562 mate | |
525 brew | |
386 ./manage.py | |
288 pip | |
249 sudo | |
227 ssh | |
202 workon |
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
#!/usr/bin/env python | |
""" | |
Obviously this is only useful if you have to deal with Django's | |
Trac a lot. | |
Mostly stolen from Jacob Kaplan-Moss, but improved by Jannis Leidel | |
and Aymeric Augustin. | |
Reads a config file at ~/.djpatchrc, e.g.: |
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
import copy | |
class gloss(dict): | |
""" | |
A dictionary like object that supports attribute access, too. | |
>>> import pickle | |
>>> s = gloss(a=123) | |
>>> c = s.copy() |