puts "Plain puts"
warn "Plain warn"
$stdout.puts "Explicit stdout puts"
$stderr.puts "Explicit stderr puts"
# Rails log level is set to INFO (although future versions of Rails will default to DEBUG in production)
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
Africa - Abidjan | |
Africa - Accra | |
Africa - Addis Ababa | |
Africa - Algiers | |
Africa - Asmara | |
Africa - Asmera | |
Africa - Bamako | |
Africa - Bangui | |
Africa - Banjul | |
Africa - Bissau |
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
// Based on apidock.org Ubiquity Search: http://gist.github.com/8132 | |
CmdUtils.CreateCommand( | |
{ | |
name: "github", | |
takes: {"function": noun_arb_text}, | |
icon: "http://github.com/fluidicon.png", | |
homepage: "http://tiago.zusee.com", | |
author: {name: "Tiago Bastos", email: "comechao@gmail.com"}, | |
license: "MPL,GPL", | |
description: "Search on Github Code Search", |
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
curl -o ~/.git-completion.bash http://github.com/git/git/raw/master/contrib/completion/git-completion.bash | |
echo "source ~/.git-completion.bash" >> ~/.profile | |
echo "export PS1='\u:\W\$(__git_ps1 \"\[\e[32m\][%s]\[\e[0m\]\")$ '" >> ~/.profile | |
source ~/.profile |
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
/* | |
Paste the code into the timeline. Set up your library so each clip has a class, and: | |
switchClip(Menu); | |
switchClip(Film); | |
It also returns the new clip, so you can chain methods like this: | |
switchClip(Film).addEventListener(Event.ENTER_FRAME, function(event:Event) { | |
trace('The film is playing!'); |
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
history | awk '{print $2}' | awk 'BEGIN {FS="|"}{print $1}' | sort | uniq -c | sort -n | tail | sort -nr | |
83 nano | |
55 git | |
47 ssh | |
47 ghproxy | |
47 cd | |
36 ls | |
24 ping | |
19 sudo |
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
GistBot joined the chat room. | |
[3:52pm] Aupajo: !gist anyone wanna see a cool gist trick? | |
[3:52pm] GistBot: http://gist.github.com/61788 | |
[3:53pm] Aupajo: https://github.com/Aupajo/gistbot/tree/master | |
[3:53pm] rjbs: Bah. I want to push /all/ my branches to a remote. | |
[3:53pm] rjbs: Is there no trivial way? | |
[3:54pm] BonzoESC: Aupajo: that's nothing | |
[3:54pm] BonzoESC: http://gist.github.com/4280 | |
[...] | |
[3:58pm] Aupajo: anything you private message to gistbot gets turned into a private gist too |
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
require 'sinatra' | |
require 'dm-core' | |
class Post do | |
include 'DataMapper' | |
property :title, String, :length => 255 | |
property :content, Text | |
end | |
get '/' do | |
@posts = Post.all | |
erb :posts |
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
before do | |
response.header['X-Quote'] = 'Imagination, not intelligence, made us human.' | |
end |