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 | |
| # There are many ways to get a path to a file or script. | |
| # This script showcases several of them and their pitfalls. | |
| # Credit for most of these techniques comes from: | |
| # http://stackoverflow.com/questions/4774054/ | |
| abs_path='/usr/bin/bash' | |
| rel_path='.' |
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
| /** | |
| * JPB - JQUERY PLUGIN BOILERPLATE | |
| * A solid starter template for your jQuery plugins. | |
| * Inspired by http://jqueryboilerplate.com | |
| * @copyright André Kroll | |
| * @license MIT | |
| */ | |
| ; | |
| (function ($, window, document, undefined) { | |
| var PLUGIN_NAME = 'my_plugin'; // (i) will give you later access with: $('div').my_plugin() |