View gist.el
;; gist.el --- Emacs integration for gist.github.com | |
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Copyright (C) 2008 Chris Wanstrath <chris@ozmm.org> | |
;; Copyright (C) 2008 Will Farrington <wcfarrington@gmail.com> | |
;; Licensed under the same terms as Emacs. | |
;; Version: 0.3.1 | |
;; 26aug2008 +wfarr+ | |
;; 25aug2008 +defunkt+ | |
;; 21jul2008 +chris+ |
View gist.el
;; gist.el --- Emacs integration for gist.github.com | |
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Copyright (C) 2008 Chris Wanstrath <chris@ozmm.org> | |
;; Copyright (C) 2008 Will Farrington <wcfarrington@gmail.com> | |
;; Licensed under the same terms as Emacs. | |
;; Version: 0.3.1 | |
;; 26aug2008 +wfarr+ | |
;; 25aug2008 +defunkt+ | |
;; 21jul2008 +chris+ |
View moonunit.lua
-- Licensed to the Apache Software Foundation (ASF) under one or more | |
-- contributor license agreements. See the NOTICE file distributed with | |
-- this work for additional information regarding copyright ownership. | |
-- The ASF licenses this file to You under the Apache License, Version 2.0 | |
-- (the "License"); you may not use this file except in compliance with | |
-- the License. You may obtain a copy of the License at | |
-- | |
-- http://www.apache.org/licenses/LICENSE-2.0 | |
-- | |
-- Unless required by applicable law or agreed to in writing, software |
View gist:22400
apr_hash_t* dispatch = apr_hash_make(p); | |
apr_hash_set(dispatch, "puts", APR_HASH_KEY_STRING, makefun(&req_puts, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "write", APR_HASH_KEY_STRING, makefun(&req_write, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "document_root", APR_HASH_KEY_STRING, makefun(&req_document_root, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "parseargs", APR_HASH_KEY_STRING, makefun(&req_parseargs, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "parsebody", APR_HASH_KEY_STRING, makefun(&req_parsebody, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "debug", APR_HASH_KEY_STRING, makefun(&req_debug, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "info", APR_HASH_KEY_STRING, makefun(&req_info, APW_REQ_FUNTYPE_LUACFUN, p)); | |
apr_hash_set(dispatch, "notice", APR_HASH_KEY_STRING, makefun(&req_notice, APW_REQ_FUNTYPE_LUACFUN, p)); |
View gist:29564
Debugger entered--Lisp error: (wrong-type-argument arrayp nil) | |
define-key((keymap (3 keymap (1 . align) (20 . textmate-clear-cache)) (M-return . textmate-next-line)) nil indent-according-to-mode) | |
textmate-bind-keys() | |
textmate-mode() | |
eval((textmate-mode)) | |
eval-last-sexp-1(nil) | |
eval-last-sexp(nil) | |
call-interactively(eval-last-sexp) |
View *scratch*
hello world |
View gist:34408
SSH_COMPLETE=( $(cut -f1 -d' ' ~/.ssh/known_hosts |\ | |
tr ',' '\n' |\ | |
sort -u |\ | |
grep -e '[:alpha:]') ) | |
complete -o default -W "${SSH_COMPLETE[*]}" ssh |
View gist:42148
brianm@binky:~/src/ning-recommender$ svn log -vr 44982 | |
------------------------------------------------------------------------ | |
r44982 | brianm | 2008-12-31 14:48:38 -0800 (Wed, 31 Dec 2008) | 1 line | |
Changed paths: | |
M /recommender/branches/1.0/network-searcher/pom.xml | |
A /recommender/branches/1.0/network-searcher/src/main/java/ning/recommend/service/Recommender.java | |
M /recommender/branches/1.0/network-searcher/src/main/java/ning/recommend/service/RecommenderService.java | |
M /recommender/branches/1.0/network-searcher/src/main/java/ning/recommend/service/RecommenderServiceModule.java | |
M /recommender/branches/1.0/network-searcher/src/main/java/ning/recommend/service/Recommendlet.java | |
A /recommender/branches/1.0/network-searcher/src/main/java/ning/recommend/service/Search.java |
View gist:43162
brianm@ufo:~$ sudo port install py25-simplejson | |
---> Fetching py25-simplejson | |
---> Attempting to fetch simplejson-2.0.5.tar.gz from http://distfiles.macports.org/python | |
---> Verifying checksum(s) for py25-simplejson | |
---> Extracting py25-simplejson | |
---> Configuring py25-simplejson | |
---> Building py25-simplejson | |
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py25-simplejson/work/simplejson-2.0.5" && /opt/local/bin/python2.5 setup.py build " returned error 1 | |
Command output: Traceback (most recent call last): | |
File "setup.py", line 10, in <module> |
View gist:43473
#!/usr/bin/env python | |
import cgi | |
import cgitb; cgitb.enable() | |
import simplejson | |
import fcntl | |
import os | |
import re | |
import datetime | |
form = cgi.FieldStorage() |