Skip to content

Instantly share code, notes, and snippets.

@trentm
trentm / Makefile.py
Created July 21, 2010 21:31
play boilerplate
#!python
#...
# Makefile
#...
print "hi there, tester"
@trentm
trentm / Makefile.py
Created July 27, 2010 06:22
Makefile.py: mk makefile boilerplate
# This is a Makefile for the `mk` tool. (Limited) details for that here:
# <http://github.com/activestate/mk>
import sys
import os
from os.path import join
import re
import mklib
from mklib.common import MkError
@trentm
trentm / {{module}}.py
Created July 28, 2010 03:54
python-module: Python module boilerplate
"""{{ docstring }}"""
import logging
{{ imports }}
#---- globals
log = logging.getLogger("{{ loggername }}")
From 1813d0ffb6f90f360513077e545c52d7a62ede28 Mon Sep 17 00:00:00 2001
From: Trent Mick <trentm@gmail.com>
Date: Fri, 6 Aug 2010 11:17:45 -0700
Subject: [PATCH] spelling correction
---
ChangeLog | 2 +-
doc/api.markdown | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
From 47331252e0174a04ae9eab44c948e04fb85a6cf5 Mon Sep 17 00:00:00 2001
From: Trent Mick <trentm@gmail.com>
Date: Fri, 6 Aug 2010 15:28:08 -0700
Subject: [PATCH] markdown fix
---
doc/api.markdown | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/doc/api.markdown b/doc/api.markdown
From e9c3a7813a017983423c0f8b0813fb45fa2b4440 Mon Sep 17 00:00:00 2001
From: Trent Mick <trentm@gmail.com>
Date: Mon, 9 Aug 2010 02:18:32 -0700
Subject: [PATCH 4/4] working first pass at tab-completion in the repl (see inline TODOs)
---
lib/readline.js | 73 +++++++++++++++++++++-----
lib/repl.js | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 211 insertions(+), 15 deletions(-)
From 8f8131916f5d34424415049a8dc2723387602348 Mon Sep 17 00:00:00 2001
From: Trent Mick <trentm@gmail.com>
Date: Wed, 11 Aug 2010 23:14:12 -0700
Subject: [PATCH] repl completion: multi-column display of completions
---
lib/readline.js | 56 ++++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 47 insertions(+), 9 deletions(-)
diff --git a/lib/readline.js b/lib/readline.js
Index: /Users/trentm/as/komodo/src/modules/fastopen/components/koFastOpen.py
===================================================================
--- koFastOpen.py (revision 56871)
+++ koFastOpen.py (working copy)
@@ -355,6 +355,7 @@
g.append(kovg)
cwds = list(kovg.cwds)
if self.pref_enable_project_gatherer and self.project:
+ g.append(fastopen.DirGatherer("projbasedir", [self.project.base_dir], ...))
g.append(fastopen.CachingKomodoProjectGatherer(