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 sayHello(): | |
print("hello") | |
def sayBye(): | |
sayBye() | |
sayHello, sayBye = sayBye, sayHello |
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
description "My service" | |
author "Antoine d'Otreppe <[email protected]>" | |
start on runlevel [35] | |
stop on runlevel [0126] | |
exec /path/to/script.sh | |
respawn |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle | |
call vundle#rc() | |
syntax on | |
set hidden | |
set backspace=indent,eol,start | |
set nu |
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
rvmsudo rvm 1.9.3 do rake install prefix=/usr/local |
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
cd `dirname $BASH_SOURCE` |
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
c = compile("print('hello')", "noFile", "exec") | |
f = FunctionType(c, globals()) | |
f() |
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
^ | |
(?# street - required)([^/\n]+?) | |
(?# separator)[\s,]+ | |
(?# number - required)(\d[\w-]*) | |
(?# box - optional)(?:\s*(?:bte|bus|boite|box|/)\s*(.+?))? | |
(?# trailing whitespaces)\s* | |
$ | |
(?# | |
FIXME: how to make a difference between a ‘/‘ and ‘/b’, | |
when the ‘b’ could be part of the box? |
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
# http://swtch.com/~rsc/regexp/regexp1.html | |
$_ = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; | |
if ( m/a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?a?aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ ) { | |
print "hello"; | |
} |
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
FLICKR="$HOME/Flickr" | |
for image in "$@" | |
do | |
basename=$(basename $image) | |
imagename=${basename%.*} | |
extension=${basename##*.} | |
counter=1 | |
filename=$basename |
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
using Facebook.CoreKit; | |
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) | |
{ | |
// Override point for customization after application launch. | |
// If not required for your application you can safely delete this method | |
return ApplicationDelegate.SharedInstance.FinishedLaunching (application, launchOptions); | |
} |