Skip to content

Instantly share code, notes, and snippets.

@Lorentz83
Lorentz83 / app.js
Created May 11, 2016 20:06
WLBus is a pebble app to check the bus arrival time of CityBus in Lafayette and West Lafayette, IN.
/**
* WLBus is a pebble app to check the bus arrival time of
* CityBus in Lafayette and West Lafayette, IN.
* The data is downloaded from the website
* http://citybus.doublemap.com/map/
*
* NOTES
* - this software is a BETA version, I developed it in few days.
* You can use it at your own risk.
* - the "home" and "work" stops are hardcoded here inside, search
@Lorentz83
Lorentz83 / google-images-direct-link-newTab.user.js
Last active March 8, 2024 17:29
Google Images direct link hack to open images and pages in a new tab
@Lorentz83
Lorentz83 / acd_cli_bash_completion
Created September 2, 2015 15:55
bash completion scripts
_acd_cli()
{
COMPREPLY=()
local CURR=${COMP_WORDS[COMP_CWORD]}
local PREV=${COMP_WORDS[COMP_CWORD-1]}
local COMMAND=${COMP_WORDS[1]}
local COMPLETEDARGNUM=$((COMP_CWORD - 2))
_acd_cli_in_set() { # checks if $1 is equal to any of the following parameters