Skip to content

Instantly share code, notes, and snippets.

byteme206 /
Last active December 20, 2018 17:16
Quick example
#!/usr/bin/env sh
# Add a sanity check to make sure that the required arguments are there when the script was called
if [[ -z $2 || -z $1 ]]; then # The "-z" flag tests for a null value
echo "Sorry, but you need to provide a source and destination directory, like this:"
echo " ./ source_dir destination_dir"
exit 1

Keybase proof

I hereby claim:

  • I am byteme206 on github.
  • I am byteme206 ( on keybase.
  • I have a public key ASD_ZLB_wxFeCyiNi5QRtNOL6BjNd4BppAz3TmSOSnNw8Ao

To claim this, I am signing this object:

byteme206 / oba.rb
Last active November 19, 2015 00:30 — forked from mapledyne/oba.rb
Local bus info widget in Dashing
require 'rubygems'
require 'nokogiri'
require 'open-uri'
## Forked from
# To use, add an instance of the Meter widget to your dashboard for each route using the naming convention
# 'oba_<ROUTE>'. The <ROUTE> should match the display values for the routes you add to the rides hash below.
# Set walktime to the average walking time to the closest station(s) for the given routes