- This is the first list item.
- This is the second list item.
Here's some example code:
return shell_exec("echo $input | $markdown_script");
#!/bin/bash | |
if [ `defaults read com.apple.finder AppleShowAllFiles` == 1 ] | |
then | |
echo "Hiding hidden files." | |
defaults write com.apple.finder AppleShowAllFiles -bool false | |
else | |
echo "Showing hidden files." | |
defaults write com.apple.finder AppleShowAllFiles -bool true | |
fi |
// 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: "[email protected]"}, | |
license: "MPL,GPL", | |
description: "Search on Github Code Search", |
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 |
/* | |
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!'); |
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 |
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 |
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 |
before do | |
response.header['X-Quote'] = 'Imagination, not intelligence, made us human.' | |
end |
helpers do | |
def site_name | |
'Super Happy Fun Site' | |
end | |
# Shows the page title, throw this in your <title> tags | |
def page_title | |
(@heading + ' — ' if @heading).to_s + site_name | |
end | |