Skip to content

Instantly share code, notes, and snippets.

View nautilebleu's full-sized avatar

Goulwen Reboux nautilebleu

View GitHub Profile
<?php
// in application/app/php/lib/app_manager/app_manager.class.php
class AppManager extends WebApplication
// ...
/**
* render the component
*/
public function render($template, $params)
{
$this->display_header($trail);
@nautilebleu
nautilebleu / Gordini
Created January 20, 2011 08:48
Customize your shell (copy this in .bashrc)
### CURSOR ###
if [ "`id -u`" -eq 0 ]; then
CURSOR='#'
else
CURSOR='$'
fi
#### COLORS ###
black="\[\033[0;30m\]"
red="\[\033[0;31m\]"
green="\[\033[0;32m\]"
@nautilebleu
nautilebleu / gist:722377
Created November 30, 2010 20:51
How to capture patterns in glob style with Python 2.7 argparse
#!/usr/local/bin/python2.7
# coding=utf-8
import argparse
import pprint
from glob import glob
def main():
parser = argparse.ArgumentParser(description='Get some files according to a pattern')
parser.add_argument('pattern', type=file, action='store', nargs='+')
args = parser.parse_args()
Client Twitter Kizlum
=====================
Features
--------
Must have
~~~~~~~~~
* Interface minimaliste (j'ai un MacBook, pas un iMac 27")