Is this markdown or what
?
This file contains hidden or 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
;; 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+ |
This file contains hidden or 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
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 |
This file contains hidden or 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
will this show up? |
This file contains hidden or 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
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.", | |
This file contains hidden or 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
RockQueue.push 'post-receive', { | |
:user => user, | |
:repo => repo, | |
:before => before, | |
:after => after, | |
:ref => ref | |
}, :priority => 50 |
This file contains hidden or 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
$ ./console | |
Loading production environment (Rails 2.0.2) | |
>> me = User / :defunkt | |
=> #<User id: 2, ... > | |
>> repo = User / :defunkt / :gist | |
=> #<Repository id: 61713, ... > |
This file contains hidden or 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
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 |
This file contains hidden or 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
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 |
This file contains hidden or 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
# my new favorite bashrc function | |
# quickly inspect source files in style | |
function pless { | |
pygmentize $1 | less -r | |
} | |