http://www.laboratoriocss.it/trucchi-sulle-animazioni-css.html
// requires jquery | |
var abidibo = abidibo || {}; | |
abidibo.menu = {}; | |
// miniaturized menu | |
abidibo.menu.miniaturize = function(event) { | |
// ff mobile | |
window.scrollTo(0, 0); |
function getIntegerComplement( $n) { | |
$n = (int) $n; | |
$mask = bindec(str_repeat('1', strlen(decbin($n)))); | |
$val = $n ^ $mask; | |
return $val; | |
} |
<?php | |
/** | |
* @file class.Image.php | |
* @brief Contiene la classe Image per il trattamento di immagini | |
* | |
* @copyright 2014 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License | |
* @author abidibo [email protected] | |
*/ | |
define('THUMBNAIL_DIR', CONTENT_DIR.OS.'thumbnail'); |
Two graphic cards:
a typical platform includes both a lower-performance integrated unit by Intel and a high-performance one by Nvidia.
Optimus should save battery life by automatically switching the power of the discrete graphics processing unit (GPU) off when it is not needed and switching it on when needed again.
Run
$ lspci -vnn | grep '\''[030[02]\]'
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
# Environment | |
(http://www.abidibo.net/blog/2012/04/30/deploy-django-applications-nginx-uwsgi-virtualenv-south-git-and-fabric-part-1/) | |
$ cd /var/www/ | |
$ mkdir myproject | |
$ cd myproject | |
$ virtualenv --no-site-packages venv | |
$ source ./venv/bin/activate | |
$ pip install django | |
$ pip install South |
##git mergetool
In the middle file (future merged file), you can navigate between conflicts with ]c
and [c
.
Choose which version you want to keep with :diffget //2
or :diffget //3
(the //2
and //3
are unique identifiers for the target/master copy and the merge/branch copy file names).
:diffupdate (to remove leftover spacing issues)
:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)
#Vifm
##Basic operations
###Files create a file
:touch filename
#Utilities
Web development utilities
See http://stackoverflow.com/questions/1943727/find-all-files-with-blank-or-ws-at-bof-or-eof
for f in `find . -type f`; do
for t in head tail; do
$t -1