April 2011
18 posts
1 tag
git submodules
A quick tip : use git submodule foreach git pull origin master to update all the submodules used in a project.
Apr 28th
1 note
2 tags
vim image tag
Having switched to VIM, I went searching for a way to replace the handy textmate behavior of dragging an image file into a html file to insert an image tag with the source, width and height pre-populated.  I found a great solution on stack overflow. Here is some information on how I implemented this solution while keeping NERDTree as a git submodule : Since I will need ImageMagick, I used...
Apr 26th
1 note
1 tag
links of the week #2
.htaccess Environments 5 Reasons Why Silex Is King Of All PHP Micro-Frameworks A First Silex Project cheat git command line cheat sheets Correcteur orthographique dans vim Daily Vim Devotional Embed files from a github repository like a gist git flow : command line arguments GitHub Pages Hex Color Picker Learn-CodeIgniter.com Make a Dotted or Dashed Line in Photoshop follow a...
Apr 24th
1 tag
Apr 22nd
1 tag
VIM cheat sheet
This post contains my cheat sheet with general VIM shortcuts and personal shortcuts defined by plugins and my vimrc file. ( my configuration ) ************* * GENERAL * ************* CURSOR MOVEMENT =============== h move left j move down k move up l move right w jump by start of words (punctuation...
Apr 20th
Apr 19th
1 tag
a few vim shortcuts
A few handy vim shortcuts concerning movement : gf : edit the file whose name is under or after the cursor gd : when the cursor is on a local variable or function, this command will jump to its declaration ’ ‘ (two single quotes) : return to the line where the cursor was before the latest jump gi : return to insert mode where you inserted text the last...
Apr 18th
24 notes
1 tag
links of the week #1
320 and up accessorizer Automated Optimization with HTML5 Boilerplate Build Designing for the Web – Contents Git + Bash + Magic variables gMap, Google Maps jQuery plugin Hadori: Symfony 1.4’s Brand New Admin Generator Hand-drawn Web Icon Set | 177ICONS Introducing Prompt. Nice SSH for iOS. lorempixum - placeholder images for every case MAC OS X : BASH Customize Your Terminal...
Apr 17th
Maui IT Applications →
A nice collection of reference apps for web developers.
Apr 16th
1 tag
Apr 15th
1 tag
Using MockSmtp with CodeIgniter
If you wish to use the MockSmtp application with CodeIgniter, use the following smtp settings in your code :  $config['protocol'] = 'smtp'; $config['smtp_host'] = '127.0.0.1'; $config['smtp_port'] = 1025; $this->email->initialize($config); $this->email->set_newline("\r\n");
Apr 14th
1 note
1 tag
Introducing Prompt. Nice SSH for iOS. →
Who wants a nice, clean SSH terminal client for the iPad and iPhone?
Apr 14th
1 tag
ggAsseticPlugin →
Including a small subset of the Assetic Library in symfony 1.4 This plugin uses as module for combining files and partials as one javascript or css asset. This plugin has a task allowing you to combine and minify (YUI) files and partials into one javascript or css file.
Apr 14th
6 notes
1 tag
Vim statusline
- filename - options - git branch - filetype - current directory - right aligned file nav info if has('statusline') set statusline=%<%f\ set statusline+=%w%h%m%r set statusline+=%{fugitive#statusline()} set statusline+=\ [%{&ff}/%Y] set statusline+=\ [%{getcwd()}] set statusline+=%=%-14.(Line:\ %l\ of\ %L\ [%p%%]\ -\ Col:\ %c%V%) endif
Apr 14th
5 notes
Apr 14th
1 tag
Vimrc →
my personal vim configuration
Apr 14th
1 tag
Pimp your bash prompt
If you want to enhance your bash prompt with some color and display the current git branch when you are in a repository add the following configuration to your bash configuraiton (.bashrc / .bash_profile) :  function parse_git_branch { ref=$(git symbolic-ref HEAD 2> /dev/null) || return echo "("${ref#refs/heads/}")...
Apr 14th
1 note
1 tag
Add html support to taglist in vim
To get an outline of your HTML document in the Taglist window in VIM, make the following changes :  In your .ctags file :  --langdef=html --langmap=html:.htm.html --regex-html=/]*>(.*)<\/h1>/\1/h,header/ --regex-html=/]*>(.*)<\/h2>/. \1/h,header/ --regex-html=/]*>(.*)<\/h3>/. \1/h,header/ --regex-html=/]*>(.*)<\/h4>/. ...
Apr 14th
2 notes