This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Images direct link NewTab | |
// @namespace https://github.com/Lorentz83 | |
// @description Adds direct link to images and pages in google image search and opens them in a new tab | |
// @include http*://images.google.*/images* | |
// @include http*://www.google.*/images* | |
// @include http*://www.google.*/webhp* | |
// @include http*://www.google.*/search?* | |
// @include http*://www.google.*/imgres* | |
// @include http*://images.google.*/search?* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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 |