Skip to content

Instantly share code, notes, and snippets.

#include <NewPing.h> //Iclud Arduino Pin Library
#include <Time.h>
#include <TimeAlarms.h>
// ATTINY85 PINS
//#define TRIGGER_PIN 3 //HCR04 Trigger set to pin 3
//#define ECHO_PIN 2 // HCR04 Echo set to Pin 2
//#define RED_PIN 0 // Red light set to Pin 0
//#define GREEN_PIN 1 // Green Light set to Pin 1
//#define BLUE_PIN 4 // Blue light set to Pin 4
/******************************************************************************
* Dev settings.
******************************************************************************/
/**
* Dev: show all errors
*/
error_reporting(-1);
$conf['error_level'] = 2;
ini_set('display_errors', TRUE);
@JordanMagnuson
JordanMagnuson / osu_killer_introtext_1.txt
Last active January 31, 2017 20:04
Intro text for The Killer, for Ohio State research edition.
Intro text 1.
Revision test.
@JordanMagnuson
JordanMagnuson / typedjs-integration-module.js
Created March 19, 2016 17:35
Typed.js integration module for Twine by TME
/*! typed.js integration module for SugarCube */ ! function() {
"use strict";
function getInlineOptions(classNames) {
var match, options = {},
typedRe = /^typed(?:-(\w+))+\b$/,
parseRe = /-(speed|delay)(\d+)\b/g;
if ("typed" !== classNames) {
classNames = classNames.toLowerCase().split(/\s+/);
for (var i = 0; i < classNames.length; i++)
@JordanMagnuson
JordanMagnuson / typedjs_helper.js
Last active March 18, 2016 16:24
TypedJS Helper module for SugarCube 2, altered to work with clickable passage links
/*! typed.js integration module for SugarCube */ ! function() {
"use strict";
var getInlineOptions = function(classNames) {
var match, options = {},
typedRe = /^typed(?:-(\w+))+\b$/,
parseRe = /-(speed|delay)(\d+)\b/g;
if ("typed" !== classNames) {
classNames = classNames.toLowerCase().split(/\s+/);
for (var i = 0; i < classNames.length; i++)
if (typedRe.test(classNames[i])) {
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import net.flashpunk.graphics.Image;
import net.flashpunk.FP;
/**
@JordanMagnuson
JordanMagnuson / mysql-slow.log
Created July 18, 2014 16:25
mysql slow query log
This file has been truncated, but you can view the full file.
/usr/sbin/mysqld, Version: 5.5.28-0ubuntu0.12.04.2-log ((Ubuntu)). started with:
Tcp port: 3306 Unix socket: /var/run/mysqld/mysqld.sock
Time Id Command Argument
# Time: 140718 6:25:05
# User@Host: pixelscrapper[pixelscrapper] @ localhost []
# Query_time: 3.067485 Lock_time: 0.000029 Rows_sent: 0 Rows_examined: 1
use pixelscrapper;
SET timestamp=1405689905;
UPDATE sessions SET uid='60458', cache='0', hostname='83.81.245.253', session='lastaccess|i:1405689897;autologout_hits|a:1:{i:0;i:1405689897;}', timestamp='1405689897'
WHERE ( (sid = 'o3OiyiSmYcLmGUcdlwkKjMPEIeFh7c1qChdQlkelrds') AND (ssid = '') );
@JordanMagnuson
JordanMagnuson / my.cnf
Created July 18, 2014 16:20
my.cnf for pixelscrapper.com
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
@JordanMagnuson
JordanMagnuson / gist:ca86c19f7a05e0bff4ba
Last active August 29, 2015 14:01
Bounce Convert modal popup sample css
/**
* Some example theming of a bounce convert popup modal.
* Typically this would go in style.css inside your chosen theme folder
* (typically in sites/all/themes/yourtheme).
*
* Note that if you want to target a specific campaign, you can use
* the .bounce-convert-campaign-[campaing-id] selector instead of
* .bounce-convert-custom-mdal.
*/
@JordanMagnuson
JordanMagnuson / gist:9923633
Created April 1, 2014 21:31
New Relic timing snippet helper for Drupal
<?php
/**
* Function to inject New Relic RUM code into a page.
* See page.tpl.php for actual code insertion.
* See https://newrelic.com/docs/php/real-user-monitoring-in-php.
* @param string $scope 'header' or 'footer'.
* @return boolean TRUE if injection successful.
*/
function custom_helper_newrelic_get_browser_timing_snippet($scope = 'header') {