Skip to content

Instantly share code, notes, and snippets.

<!-- start Mixpanel -->
<script type="text/javascript">(function(f,b){if(!b.__SV){var a,e,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=f.createElement("script");a.type="text/javascript";a.async=!0;a.src="//cdn.mxpnl.com/libs/mixpanel-2.2.min.js";e=f.getElementsByTagName("script")[0];e.parentNode.insertBefore
https://gist.github.com/62c81d8e2e86bad068ec
<!-- start Mixpanel -->
<script type="text/javascript">(function(f,b){if(!b.__SV){var a,e,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config people.set people.set_once people.increment people.append people.track_charge people.clear_charges people.delete_user".split(" ");
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=f.createElement("script");a.type="text/javascript";a.async=!0;a.src="//cdn.mxpnl.com/libs/mixpanel-2.2.min.js";e=f.getElementsByTagName("script")[0];e.parentNode.insertBefore
#Ansible managed: /usr/local/etc/ansible/roles/info.haproxy/templates/backend.cfg modified on 2014-11-03 12:59:02 by cory on o2.local
backend be-flirtmoji
description super sexting
mode tcp
balance roundrobin
# server be-app01 104.236.185.24:443
# server be-app02 104.236.185.37:443
# server be-app03 104.236.184.87:443
server be-app04 104.236.183.101:443
server be-app05 104.236.178.223:443
node_modules
dist
.tmp
.sass-cache
bower_components
.DS_Store
custom_plan.rb
zeus.json
.jshintrc
.direnv
function pihist
{
$(history | cut -c8- | sort -u | pick)
}
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCZZ6Mui4YYNxq8o0D6uBLYlP+asQSMMGMYo4UiOd9s/gKWXSh55sCSjsuyxo21/1Hpirpz106vmzR04P9W8UHKDLdcOtXYI6blpnAShQB+ESDJRZsNe4lq90VayIihhZiDraG+FWvW+VfnVUxMMB5JgLqYrCgOgGFD68g9M4UytaLY1KjfZU4FsQsRgZu7xOSYadMpliYtLWChwFjxxeYdfthhS44+RU/aKBDzA2Tp+Wrv97tshQT06jlbA/js8sdOSbOLSJHxPB61dIYcQ2lS47sKVbkWKXhxKuH7ht8zNAewzYVvK7HMuLHh0LVUcZzjOyOQyKWCjmDb5WAWy9v cory@o2.local
@counterbeing
counterbeing / smiley
Created June 23, 2011 03:09
Other uses for gist.
###### ######
########## ##########
############ ############
############## ##############
############## ##############
############## ##############
############ ############
########## ##########
###### ######
$(function () { // I assume i need to name this funciton and call it more than once
var availableTags = $("#client_spec_list").attr("data-autocomplete");
// The line above I need to remove the ID, and make it a variable.
availableTags = availableTags.split(",")
function split( val ) {
return val.split( /,\s*/ );
}
function extractLast( term ) {
return split( term ).pop();
}
function war(enemy,reason) {
if(!enemy) { //The mandatory argument is not present - die with error(no pun intended)
alert("Please choose an enemy before starting a war");
return false;
}
if(!reason) { //If the optional argument is not there, create a new variable with that name.
var reason = "They have Nukes!";
}