Skip to content

Instantly share code, notes, and snippets.

{ 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
@franleplant
franleplant / i.md
Last active August 29, 2015 14:05
ideal optimization with Gulp!

The key gulp plugins used are

gulp-inject //: injects automatically the js files (vendors are added manually)

gulp-useref //: otpimizes and copies

gulpfile

@franleplant
franleplant / main.sh
Created July 28, 2014 15:47
Install Git Latest of Ubuntu 12.04
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

hey 2

How are you

  • one
  • two
  • tree

$ sqrt sqrt root3x $