THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
top10Salaries :: FilePath -> IO () | |
top10Salaries path = do | |
Just (h, t) <- uncons . T.lines <$> T.readFile path | |
let | |
split = T.splitOn "," | |
Just ind = elemIndex "Salary" $ split h | |
top10 :: [Int] = t | |
& map (\s -> read $ T.unpack $ split s !! ind) | |
& sortBy (flip compare) | |
& take 10 |
# Regex by Jonathan Stassen. http://blog.jstassen.com/2016/03/code-regex-for-instagram-username-and-hashtags | |
/(?:@)([A-Za-z0-9_](?:(?:[A-Za-z0-9_]|(?:\.(?!\.))){0,28}(?:[A-Za-z0-9_]))?)/g |
#!/bin/bash | |
function install_dependencies() { | |
echo "Installing dependencies..." | |
sudo apt -qq update | |
sudo apt -qq install -y curl git wget | |
# sudo apt -qq install -y bison flex kernel-package libelf-dev libssl-dev | |
sudo apt -qq install -y bison flex libelf-dev libssl-dev | |
} |
[Repository local-baylibre] | |
... | |
nametrans = lambda folder: { | |
'drafts': '[Gmail]/Drafts', | |
'flagged': '[Gmail]/Starred', | |
'important': '[Gmail]/Important', | |
'inbox': 'INBOX', | |
'spam': '[Gmail]/Spam', | |
'trash': '[Gmail]/Trash', | |
}.get(folder, folder) |
d3 = require("d3"); | |
jsdom = require("jsdom"); | |
document = jsdom.jsdom(); | |
window = document.parentWindow; | |
var sampleSVG = d3.select(document.body) | |
.append("svg") | |
.attr("width", 100) | |
.attr("height", 100) |
# = Kernel#switch | |
# Provides alternative switch-case syntax. | |
# | |
# # support methods: | |
# value = [] | |
# switch value do | |
# on empty?: -> { "none" } | |
# on one?: -> { "one" } | |
# on many?: -> { "many" } | |
# end |
# Install Git needed for Git based gems | |
packages: | |
yum: | |
git: [] | |
#!/bin/bash | |
version=1.0.1 | |
versionDate="2014-02-14" | |
function showHelp() { | |
echo "watchfile - monitor file(s)/command and perform action when changed | |
Possible ways of usage | |
---------------------------------------- |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
I'm a big fan of Pomodoro time management technique, created by Francesco Cirillo in the 80's. In this post I'll describe what it is, how I use it (tools and their tweaks), and how it helps me to get through my day.