- one
- two
- tree
$ sqrt sqrt root3x $
sudo add-apt-repository ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git |
The key gulp plugins used are
gulp-inject //: injects automatically the js files (vendors are added manually)
gulp-useref //: otpimizes and copies
gulpfile
{ echo line 1: PASS; echo line 2: FAIL; } | | |
awk -v "red=$(tput setaf 1)" -v "green=$(tput setaf 2)" \ | |
-v "reset=$(tput sgr0)" ' | |
{ for (i = 1; i <= NF; i++) { | |
if ($i == "FAIL") printf "%s", red "FAIL" reset; | |
else if ($i == "PASS") printf "%s", green "PASS" reset; | |
else printf "%s", $i | |
if (i == NF) printf "%s", ORS | |
else printf "%s", OFS |
[user] | |
name = franleplant | |
email = [email protected] | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore |
ctrl z
and fg
suspend the current process (for example vim) and un suspend it. Useful to move back and forth from Vim and the command line, and possible from other programas and the comand line.
lsof -n | grep TCP
list all processes that are using TCP
dirs
, popd
, pushd
for using a stack of directories to easily switch between them
grep
and return surrounding lines with flags -A number
(after), -B number
(before) and -C number
(before and after)
pstree
to check process hierachie
killall notify-osd
kill GTK notifications in KDE
/* | |
The intention behind this example is to demonstrate how to **compose** | |
instead of **inherit**, this simplifies the code by using EventEmmitter | |
as a service instead of using the pattern know as Prototypal inheritance | |
which is know to have several draw backs, since it **does not work | |
like clasical inheritance** | |
Example Extracted from https://scotch.io/tutorials/getting-to-know-flux-the-react-js-architecture | |
*/ |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |