Yesterday I found some people on my [favorite reddit][lolphp] wonder about the output of the following code:
<?php
$a = 1;
$c = $a + $a++;
du -cks * | sort -rn | head -11 | |
# Usually set this up in my bash profile as an alias: | |
# alias ducks='du -cks * | sort -rn | head -11' | |
# Because it is fun to type ducks on the command line. :) |
Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
# Find last commit for the deleted file | |
git rev-list -n 1 HEAD -- $path | |
# Checkout the commit before the the delete happened | |
git checkout $commit^ -- $path |
set nocompatible | |
set encoding=utf-8 nobomb | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle | |
Plugin 'VundleVim/Vundle.vim' |
Array | |
( | |
[hook_menu] => 6744 | |
[hook_uninstall] => 4742 | |
[hook_perm(ission)] => 4012 | |
[hook_install] => 3751 | |
[hook_theme] => 3525 | |
[hook_schema] => 3003 | |
[hook_help] => 2465 | |
[hook_form_alter] => 2273 |
<?php | |
/** | |
* @file | |
* Sets up a custom filter that enables custom shortcodes. | |
*/ | |
/** | |
* Implementation of hook_filter_info() | |
*/ | |
function custom_shortcodes_filter_info() { |
<?php | |
/** | |
* Embed a view with a title. Pretty much copying the views_embed_view() but | |
* adding the ability to display title. | |
* | |
* @param string $name The name of the view to embed. | |
* @param string $display_id The display id to embed. If unsure, use 'default', | |
* as it will always be valid. But things like 'page' | |
* or 'block' should work here. | |
* @param string $title_tag The html header tag (h1, h2, h3, etc..). |
<?php | |
/** | |
* @file | |
* Re-usable stuff. | |
* | |
* @FIXME multifield function seems not to work in included several times in the same page. | |
*/ | |
/** | |
* Implements hook_theme() |