Skip to content

Instantly share code, notes, and snippets.

View Richtermeister's full-sized avatar

Daniel Richter Richtermeister

  • Digital Media Solutions
  • San Diego
View GitHub Profile
$(function() {
if (window.mixpanel == undefined) {
return;
}
var mixpanelRegex = /\((.*)\)/;
function handleMixpanelTag(tag, $el) {
var bits = tag.split(':');
var parametersJson = mixpanelRegex.exec(tag);
@Richtermeister
Richtermeister / gist:2999494
Created June 26, 2012 21:55
Rendering stuff
function GameDisplay(ctx, renderer)
{
this.objects = new Array();
this.renderer = renderer;
this.addObject = function(object)
{
objects.push(Object);
}
@Richtermeister
Richtermeister / jquery.hoverIntent.js
Created September 22, 2011 01:13
Hoverintent with globally configurable defaults
/**
* hoverIntent is similar to jQuery's built-in "hover" function except that
* instead of firing the onMouseOver event immediately, hoverIntent checks
* to see if the user's mouse has slowed down (beneath the sensitivity
* threshold) before firing the onMouseOver event.
*
* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+
* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
*
* hoverIntent is currently available for use in all personal or commercial
@Richtermeister
Richtermeister / blueprint-simple.less
Created August 4, 2011 17:32
A simpified blueprint based on less, stripped of all the presumptious classes/colors/etc
/* --------------------------------------------------------------
reset.css
* Resets default browser CSS.
-------------------------------------------------------------- */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
@Richtermeister
Richtermeister / mysqlbackup.php
Created February 19, 2011 18:51
backup of mysql database as individual tables (zipped)
<?php
/**
* simple script to export mysql database(s) into zip file(s) containing individual tables
*
* @author Richtermeister
*/
//database access params
$mysql_host = "localhost";