Skip to content

Instantly share code, notes, and snippets.

;; gist.el --- Emacs integration for gist.github.com
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen>
;; Copyright (C) 2008 Chris Wanstrath <[email protected]>
;; Copyright (C) 2008 Will Farrington <[email protected]>
;; Licensed under the same terms as Emacs.
;; Version: 0.3.1
;; 26aug2008 +wfarr+
;; 25aug2008 +defunkt+
;; 21jul2008 +chris+
@defunkt
defunkt / x
Created October 23, 2008 03:45
CmdUtils.CreateCommand({
name: "page-width",
author: { name: "Jacky See"},
license: "GPL",
description: "Limit the page width by a given parameter, align it to center",
help: "e.g. page-width 400",
takes: {"input": noun_arb_text},
preview: function( pblock, input ) {
var template = "Setting page to width ${w} (default is 500)";
var width = 500; //default width
will this show up?
CmdUtils.CreateCommand({
name: "plasmodb",
takes: {"plasmodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "[email protected]"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a PlasmoDB Gene page in a new window",
preview: "Go to a PlasmoDB Gene page in a new window.",

Hello Markdown

Is this markdown or what ?

RockQueue.push 'post-receive', {
:user => user,
:repo => repo,
:before => before,
:after => after,
:ref => ref
}, :priority => 50
$ ./console
Loading production environment (Rails 2.0.2)
>> me = User / :defunkt
=> #<User id: 2, ... >
>> repo = User / :defunkt / :gist
=> #<Repository id: 61713, ... >
User.instance_eval do
def /(name)
find_by_login(name.to_s)
end
end
Repository.class_eval do
def /(name)
find_by_name(name.to_s)
end
@defunkt
defunkt / bashrc
Created November 11, 2008 06:09
super basic bashrc
alias gemi='sudo gem install --no-rdoc --no-ri'
alias svnst='svn st | grep -v status | grep \s'
alias dns='dscacheutil -flushcache'
alias ls='ls -G'
alias grep='grep --color'
alias less='less -r'
alias m='mate'
# prompt
# my new favorite bashrc function
# quickly inspect source files in style
function pless {
pygmentize $1 | less -r
}