emacs
2011-11-03 | #emacs
Mon fichier ~/.emacs (require 'color-theme) (load-file "~/.emacs.d/themes/color-theme-blackboard.el") (color-theme-blackboard) (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) (setq column-number-mode t) (setq line-number-mode t) (setq inhibit-startup-message t) ;; ==================== KEYS ==================== ;; already bind via simple.el ;; (global-set-key [home] 'beginning-of-line) ;; (global-set-key [end] 'end-of-line) ;; (global-set-key [backspace] 'backward-delete-char-untabify) ;; (global-set-key [(control space)] 'set-mark-command) ;; (global-set-key [(control insert)] 'kill-ring-save) ;; (global-set-key [(shift insert)] 'yank) ;; (global-set-key [(control home)] 'beginning-of-buffer) ;; (global-set-key [(control end)] 'end-of-buffer) ;; (global-set-key [(control left)] 'backward-word) ;; (global-set-key [(control right)] 'forward-word) ;; (global-set-key [(control o)] 'open-line) ;; already bind via paragraphs.
Mysql: afficher requête en ligne
2011-08-31 | #mysql
Lisez mieux les résultats d'une requête en ligne de commande !
JQuery
2011-06-17 | #javascript #jQuery
Whaouhh !!! Lib simple et efficace pour manipuler les pages html
Chemin absolu
2011-06-03 | #absolu #commande #readlink #relatif #shell
La commande readlink permet de retourner le chemin absolu d'un fichier/répertoire en suivant éventuellement les liens symboliques
tables de hachage en bash
2011-05-30 | #animals #declare #hachage #hash #iterate #key #value
Voici comment déclarer une table de hachage en bash et itérer sur ses clés pour récupérer les valeurs : declare -A animals animals=( ["moo"]="cow" ["miaou"]="cat" ) animals['dog']='wouaf' for i in "${!animals[@]}" do echo "key : $i" echo "value: ${animals[$i]}" done echo "There are ${#animals[@]} animals."