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
| if hash cask 2>/dev/null; | |
| then | |
| echo "cask exists" | |
| else | |
| echo "cask !exists" | |
| fi |
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
| #!/bin/sh | |
| # Get the current branch. | |
| CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD); | |
| # Bail on master/HEAD branches. | |
| if [[ $CURRENT_BRANCH == "master" ]] || [[ $CURRENT_BRANCH == "HEAD" ]] | |
| then | |
| echo "Not going to rename the master or head branch. Sorry." | |
| exit 0 |
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
| https://www.gnu.org/software/emacs/manual/html_node/eintr/ | |
| http://stackoverflow.com/questions/4724/learning-lisp-why | |
| http://cs.gmu.edu/~sean/lisp/LispTutorial.html | |
| http://lispinsummerprojects.org/learning-lisp | |
| http://landoflisp.com | |
| http://learnlispthehardway.org |
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
| http://worcester.craigslist.org/cto/4771117853.html | |
| http://providence.craigslist.org/cto/4776501786.html | |
| http://boston.craigslist.org/gbs/cto/4768009780.html | |
| http://providence.craigslist.org/cto/4768186166.html | |
| http://hartford.craigslist.org/cto/4763040201.html | |
| http://hartford.craigslist.org/cto/4772698133.html | |
| http://southcoast.craigslist.org/cto/4737610739.html | |
| http://worcester.craigslist.org/cto/4765340304.html | |
| http://boston.craigslist.org/gbs/cto/4761839402.html | |
| http://southcoast.craigslist.org/cto/4763788568.html |
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
| JS Files.txt | |
| settings | |
| misc/drupal.js | |
| sites/all/modules/contrib/jquery_update/replace/jquery/1.8/jquery.min.js | |
| misc/jquery.once.js | |
| sites/all/themes/responso/js/vendor/modernizr.js | |
| sites/all/themes/responso/js/vendor/media.match.min.js | |
| sites/all/themes/responso/js/vendor/matchMedia.addListener.js | |
| sites/all/themes/responso/js/vendor/enquire.min.js |
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
| <?php | |
| // If you're iterating through a list of objects and you're going to var_dump | |
| // then this will make it easier to see where one ends and the other begins. | |
| define('HR', '<hr />'); | |
| // Quickly add a newline to the page. | |
| define('BR', '<br />'); | |
| // Quickly add an escaped newline. |
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
| <?php | |
| drupal_get_form('community_calendar_categories_featured_form') |
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
| var linkIsInternal, ajaxLink, ajaxBefore, updateMetaData, updateTitle, updateCss, updatePager, ajaxAfter; | |
| (function ($) { | |
| var ajaxLoading = false; | |
| Drupal.behaviors.ajaxLinksApi = { | |
| attach: function (context) { | |
| var trigger = Drupal.settings.pi_ajax_links_api.trigger; | |
| var negativeTrigger = Drupal.settings.pi_ajax_links_api.negative_triggers; |
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
| // $ = jQuery | |
| // | |
| // $('.by-keyword .submit').click(function(e) { | |
| // var loc = window.location | |
| // var query = '?search=' + $('.by-keyword input').val(); | |
| // | |
| // console.log(loc.origin + loc.pathname + query); | |
| // | |
| // e.preventDefault(); | |
| // }); |
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
| <?php | |
| // Which do you guys prefer? #1 or #2? | |
| // See, with #1 it's easier to read but the tradeoff is that there is that I | |
| // fucking hate HTML in code. All the time forever and ever and ever and ever. Hate it. | |
| // Makes me feel so icky. Also, if things need to be added later people will most likely | |
| // follow that set convention. So this could end up becoming uglier later. | |
| // #2 is a little more difficult to read especially since it's all one line but it will be |