(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.
(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.
#!/usr/bin/env bash | |
# bash script to generate tree structure of a directory | |
# Pravendra Singh (@hackpravj) | |
pwd=$(pwd) | |
find $pwd -print | sed -e "s;$pwd;\.;g;s;[^/]*\/;|__;g;s;__|; |;g" |
#!/bin/bash -e | |
# Inspired by: https://github.com/adrienthebo/git-tools/blob/master/git-truncate | |
if [[ (-z $1) || (-z $2) ]]; then | |
echo "Usage: $(basename "$0") DROP_AT_SHA1 BRANCH" | |
exit 1 | |
fi | |
if [[ ! $1 =~ ^[0-9a-f]{7,40}$ ]]; then | |
echo "Error: invalid Git commit SHA1" >&2 |
#!/bin/bash | |
for f in $(egrep -o -R "defn?-? [^ ]*" * --include '*.clj' | cut -d \ -f 2 | sort | uniq); do | |
echo $f $(grep -R --include '*.clj' -- "$f" * | wc -l); | |
done | grep " 1$" |
#!/usr/bin/python | |
''' | |
Split gpx tracks at discontinuities, that is, pairs of points in a track that | |
are further than a given distance threshold. | |
''' | |
import collections | |
from lxml import etree | |
import math | |
import optparse | |
import re |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
But original post can not access anymore.
#!/bin/sh | |
## | |
# Mount my development websites folder | |
# | |
# NOTE: Because this uses Mac OS X mounting techniques, all mac format | |
# images are supported and many other UNIX filesystem formats. | |
# (My Development Sites image is stored encrypted.) | |
# Location of the image to be mounted | |
IMAGE="$HOME/Documents/Development Sites.sparsebundle" |