This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -Ee # fail script, if single command fails | |
| set -u # unset variables are treated as errors | |
| set -f # no filename extension | |
| # set -x # verbose mode | |
| set -o pipefail # if a subcommand from a pipe fails, the whole pipe fails | |
| trap cleanup SIGINT SIGTERM ERR EXIT # execute cleanup function at following signals | |
| SOURCE_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) # location of script |
This file contains hidden or 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
| $("#filter").live("keyup", function (ev) { | |
| var $filter = $(this), | |
| keyCode = ev.keyCode || ev.which, | |
| search; | |
| if (keyCode === 27) { //ESC | |
| $filter.val(""); | |
| } | |
| search = $(this).val(); |
This file contains hidden or 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
| ;;; bitly.el --- Shorten URLs with bit.ly from emacs | |
| ;; Copyright (C) 2010 Vivek Haldar | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation; either version 2 of the License, or | |
| ;; (at your option) any later version. | |
| ;; This program is distributed in the hope that it will be useful, | |
| ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |