http://ln.hixie.ch/?start=1037910467&count=1
http://ln.hixie.ch/?start=1137740632&count=1
/* Author : Narendra Sisodiya | |
* Date : Thu Jul 19 18:16:38 IST 2012 | |
* Licence : Public Code | |
* Purpose : Inheritance | |
* | |
*/ | |
Function.prototype.inheritFrom = function (Base){ | |
var F = function(){}; | |
F.prototype = Base.prototype; |
git remote prune origin |
git cherry -v <branch> |
git clean -xdf |
" Vim Pathogen | |
runtime bundle/vim-pathogen/autoload/pathogen.vim | |
call pathogen#infect() | |
call pathogen#helptags() | |
" ############################################## | |
" # General Settings # | |
" ############################################## | |
if has ('cmdline_info') |
command-t | |
cd ~/.vim/bundle/command-t/ruby/command-t | |
# requires ruby 1.9.* | |
ruby extconf.rb | |
make | |
syntastic |
# guardar comando de push para o origin depois de um 'git remote add' | |
git push -u origin master | |
# diferenças entre as alterações locais e o HEAD | |
git diff HEAD | |
# mostra apenas a diferença no staged | |
git diff --staged | |
# remove do staged |
Using the concept of templating in the browser is becoming more and more wide-spread. Probably the main reason to this is the move of application logic from the server to the client, in tandem with the increasing usage of the MVC pattern. Templates can be extremely useful in client-side development, especially to separate markup and logic in views.
There are plenty of definitions of the term "template", here is a good one from foldoc (http://foldoc.org/template):
A document that contains parameters, identified by some special syntax, that are replaced by actual arguments by the template processing system.
# put this in bashrc | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;33m\]$(__git_ps1 " [%s]")\[\033[0m\] \[\033[00m\]$ ' |