Skip to content

Instantly share code, notes, and snippets.

View adrian7's full-sized avatar
🦉
cărturar și filozof

Adrian Şilimon-Morariu adrian7

🦉
cărturar și filozof
View GitHub Profile
@adrian7
adrian7 / code-coverage-daylight.css
Created March 14, 2018 17:29
PHPUnit Code Coverage Daylight Style
/**
* PHPUnit Code Coverage Daylight Style
* Makes coverage pages more readable
*/
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro');
body {
padding-top: 10px;
background: #f1f1f1;
#!/usr/bin/env bash
curl -s -D - "$1" -o /dev/null
#!/usr/bin/env bash
# Example of supporting long (--long) and short (-s) options in bash via getopts
# Shorg options are declared at the beginning of the while block,
# while their counterparts (long options) are declared in the case block
# If the option requires a value, it should be declared as r: (letter followd by colon)
# and validated with needs_arg() when parsing.
# Alternatively die "Error message" is used to stop when we get an option which has not been declared