(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
echo 1,2,4,5,6,9 a,b,d,e,f,i | gawk '{ | |
split($1, Number, ","); | |
split($2, Letter, ","); | |
fourIdx = -1; | |
nineIdx = -1; | |
for(x = 1; x <= length(Number); x++) { | |
if(Number[x] == 4) { | |
fourIdx = x; | |
} | |
if(Number[x] == 9) { |
git log --author="${user}" --pretty=tformat: --numstat | egrep '[^DAO]\.java' |gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }' - |
I use the first | |
—– BEGIN LICENSE —– | |
Michael Barnes | |
Single User License | |
EA7E-821385 | |
8A353C41 872A0D5C DF9B2950 AFF6F667 | |
C458EA6D 8EA3C286 98D1D650 131A97AB | |
AA919AEC EF20E143 B361B1E7 4C8B7F04 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
listDirs :: FilePath -> IO [String] | |
listDirs = liftM (filter notDots) . getDirectoryContents | |
where notDots p = p /= "." && p /= ".." | |
countEntries :: FilePath -> WriterT [(FilePath, Int)] IO () | |
countEntries path = do | |
contents <- liftIO . listDirs $ path | |
tell [(path, length contents)] |
java -XX:+PrintFlagsFinal -version |
#!/bin/bash | |
# | |
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
# modified by mike@mikepearce.net | |
# modified by aconway@[redacted] - handle diffs that introduce new files | |
# modified by t.broyer@ltgt.net - fixes diffs that introduce new files | |
# modified by m@rkj.me - fix sed syntax issue in OS X | |
# modified by songpengpeng - fix sed newline issue in OS X | |
# | |
# Generate an SVN-compatible diff against the tip of the tracking branch |
#! /bin/bash | |
THIS_PROJECT=$(cd "$(dirname "$0")"; pwd); | |
THIS_PROJECT_DIR_NAME=$(basename "$THIS_PROJECT"); | |
MY_SANDBOX=~/tools/dev-sandbox/; | |
set -x; | |
exec 3>&1 | |
rescan() { | |
hsdev start --port 4567 --cache "$THIS_PROJECT/.hsdev" >&3; |
-- @Author: spp | |
-- @Date: 2014-09-26 17:16:53 | |
-- @Last Modified by: spp | |
-- @Last Modified time: 2014-09-26 17:21:58 | |
{-# LANGUAGE DataKinds, ScopedTypeVariables, DeriveDataTypeable, Rank2Types, ExistentialQuantification #-} | |
module Params( | |
Params, | |
Param, | |
mkParam, |