Skip to content

Instantly share code, notes, and snippets.

View jackdreilly's full-sized avatar

Jack Reilly jackdreilly

View GitHub Profile
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
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
(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)
# 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):
from twisted.internet import protocol, reactor
from twisted.protocols import basic
from messaging import Message, message, MessageProtocol
(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)
(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)
(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)
(: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