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
#!/bin/bash | |
# | |
# llamize | |
# Stub a llama-standard ooc library/binding. | |
# | |
# Check if a name is given. | |
if [[ -z $1 ]]; then | |
echo "Usage: llamize <name>" |
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
#include <cstdio> | |
#include <cstdlib> | |
#include <string> | |
#include <map> | |
#include <vector> | |
//===----------------------------------------------------------------------===// | |
// Lexer | |
//===----------------------------------------------------------------------===// |
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
# | |
# anews.sh | |
# Read the Arch Linux news feed on the console | |
# | |
# Put (or source) this in your .zsh_profile or whatever. | |
# | |
# Usage: | |
# $ anews | |
# | |
# Bugs: |
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
# | |
# cheat.sh | |
# Read cheat sheets from cheat.errtheblog.com without Ruby. | |
# | |
# Put (or source) this in your .zsh_profile or whatever. | |
# | |
# Usage: | |
# $ cheat sheets | |
# $ cheat recent | |
# $ cheat zsh |
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
Process: httpd [19368] | |
Path: /usr/sbin/httpd | |
Identifier: httpd | |
Version: ??? (???) | |
Code Type: X86-64 (Native) | |
Parent Process: httpd [1599] | |
Date/Time: 2011-05-26 18:13:08.560 +0200 | |
OS Version: Mac OS X 10.6.6 (10J567) | |
Report Version: 6 |
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
#!/usr/bin/python | |
""" | |
Copyright (c) 2011 Wander Nauta http://wandernauta.nl | |
This is a based on the Abbrev module that ships with Ruby, by Akinori Mushi. | |
Thanks, Akinori! | |
This snippet is distributed in the hope that it will be useful, but WITHOUT | |
WARRANTIES OR CONDITIONS OF ANY KIND. Have fun. |
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
bottles := 99 | |
while (bottles >= 0) { | |
if (bottles >= 2) { "%d bottles of beer on the wall, %d bottles of beer." printfln(bottles, bottles) } | |
if (bottles == 1) { "1 bottle of beer on the wall, 1 bottle of beer." println() } | |
if (bottles == 0) {"No more bottles of beer on the wall, no more bottles of beer." println() } | |
if (bottles >= 2) { "Take one down and pass it around, %d bottles of beer on the wall.\n" printfln(bottles-1) } | |
if (bottles == 1) { "Take one down and pass it around, no more bottles of beer on the wall.\n" println() } | |
if (bottles == 0) { "Go to the store and buy some more, 99 bottles of beer on the wall.\n" println() } |
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
{"pages":[ | |
{"title": "Foo Bar", "content": "Foos are the best bar"}, | |
{"title": "Foo Bar", "content": "Foos are the best bar"} | |
]} |
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
import bacon | |
root = BaconRoot new() | |
root add("body") add("div#someid") add("strong.someclass") text("Cóól story bro") | |
root out() println() | |
/* | |
would print something like... |
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
def fib(): | |
seq = [] | |
num1 = 1 | |
num2 = 1 | |
num3 = 0 | |
seq.append(num1) | |
seq.append(num2) | |
seq.append(num3) |