Skip to content

Instantly share code, notes, and snippets.

View mrpotatoes's full-sized avatar

Anahi LibreSinn mrpotatoes

View GitHub Profile
if hash cask 2>/dev/null;
then
echo "cask exists"
else
echo "cask !exists"
fi
#!/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
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
@mrpotatoes
mrpotatoes / gist:ef874736b972c38dd50f
Created November 25, 2014 04:11
A bunch of different trucks
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
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
<?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.
<?php
drupal_get_form('community_calendar_categories_featured_form')
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;
// $ = 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();
// });
<?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