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
asdf |
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
project_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/" | |
csv_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/learning.csv" | |
import sys, os | |
sys.path.append(project_home) | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' | |
from pants.models import Item | |
import csv |
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
Enabled minor modes: Auto-Compression Auto-Encryption Diff-Auto-Refine | |
Egg File-Name-Shadow Font-Lock Global-Auto-Complete Global-Font-Lock | |
Line-Number Menu-Bar Transient-Mark Yas/Global Yas/Minor | |
(Information about these minor modes follows the major mode info.) | |
Coffee mode: | |
Major mode for editing CoffeeScript. | |
This mode runs the hook `coffee-mode-hook', as the final step |
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
(def punc-regex #"\p{P}") | |
(defn wordify [s] | |
(map #(clojure.contrib.string/replace-re punc-regex "" (clojure.contrib.string/lower-case %1)) (.split s " "))) | |
(defn collect [pairs] | |
(loop [remPairs pairs | |
dict {}] | |
(if (empty? remPairs) |
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
# Read username, output from non-empty factory, drop connections | |
from twisted.internet import protocol, reactor | |
from twisted.protocols import basic | |
from messaging import Message, message, MessageProtocol | |
class ContactGameProtocol(MessageProtocol): | |
@message('GIVE_CLUE') | |
def give_clue(self,clue): |
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 twisted.internet import protocol, reactor | |
from twisted.protocols import basic | |
from messaging import Message, message, MessageProtocol |
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
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") | |
(unless (require 'el-get nil t) | |
(url-retrieve | |
"https://raw.github.com/dimitri/el-get/master/el-get-install.el" | |
(lambda (s) | |
(end-of-buffer) | |
(eval-print-last-sexp)))) | |
(el-get 'sync) |
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
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") | |
(unless (require 'el-get nil t) | |
(url-retrieve | |
"https://raw.github.com/dimitri/el-get/master/el-get-install.el" | |
(lambda (s) | |
(end-of-buffer) | |
(eval-print-last-sexp)))) | |
(el-get 'sync) |
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
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") | |
(unless (require 'el-get nil t) | |
(url-retrieve | |
"https://raw.github.com/dimitri/el-get/master/el-get-install.el" | |
(lambda (s) | |
(end-of-buffer) | |
(eval-print-last-sexp)))) | |
(el-get 'sync) |
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
(:name yasnippet | |
:website "https://github.com/capitaomorte/yasnippet.git" | |
:description "YASnippet is a template system for Emacs." | |
:type git | |
:url "https://github.com/capitaomorte/yasnippet.git" | |
:features "yasnippet" | |
:prepare (lambda () | |
;; Set up the default snippets directory | |
;; | |
;; Principle: don't override any user settings |
OlderNewer