These rules are adopted from the AngularJS commit conventions.
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() { | |
// good opportunity to combine into a single statement | |
// qq w cw <esc> A, <esc> 0 j q | |
var a = 10; | |
var b = 20; | |
var c = 30; | |
var d = 40; | |
var e = 50; | |
// opportunity to simplify syntax |
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 python2 | |
import SimpleHTTPServer | |
import SocketServer | |
import logging | |
PORT = 8000 | |
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
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/Makefile.pre.in b/Makefile.pre.in | |
index bcd83bf..efbfd8d 100644 | |
--- a/Makefile.pre.in | |
+++ b/Makefile.pre.in | |
@@ -461,6 +461,7 @@ sharedmods: $(BUILDPYTHON) pybuilddir.txt | |
esac; \ | |
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ | |
_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \ | |
+ PYTHONXCPREFIX='$(DESTDIR)$(prefix)' \ | |
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build |
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 -ur Python-2.7.3.orig/configure Python-2.7.3-Source/configure | |
--- Python-2.7.3.orig/configure 2012-04-09 19:07:36.000000000 -0400 | |
+++ Python-2.7.3-Source/configure 2012-10-23 14:10:45.305220393 -0400 | |
@@ -13697,7 +13697,7 @@ | |
$as_echo_n "(cached) " >&6 | |
else | |
if test "$cross_compiling" = yes; then : | |
- ac_cv_have_long_long_format=no | |
+ ac_cv_have_long_long_format="cross -- assuming yes" | |
else |
NewerOlder