Skip to content

Instantly share code, notes, and snippets.

@StareIntoTheBeard
StareIntoTheBeard / skrollr.js
Created July 18, 2013 19:54
Hyperlink fix for legacy mobile devices in skrollr.js
if(distance2 < 49) {
//It was a tap, click the element.
var parentlink = jQuery(event.target).parent();
if(e.target.href){
document.location = e.target.href;
}
else if(parentlink[0].href){
document.location = parentlink[0].href;
}
else {
/**
*
* Base64 encode / decode
* http://www.webtoolkit.info/
*
**/
var Base64 = {
// private property
(function(/*! Brunch !*/) {
'use strict';
var globals = typeof window !== 'undefined' ? window : global;
if (typeof globals.require === 'function') return;
var modules = {};
var cache = {};
var has = function(object, name) {
@StareIntoTheBeard
StareIntoTheBeard / get member POST memberNumber: 1
Created October 9, 2013 16:02
get member POST memberNumber: 1
<html><head><title>Apache Tomcat/7.0.42 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - org.codehaus.jackson.JsonParseException: Unexpected character ('m' (code 109)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')</h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u>org.codehaus.jackson.JsonParseException: Unexpected character ('m'
@StareIntoTheBeard
StareIntoTheBeard / lead passenger event
Created December 6, 2013 21:28
lead passenger event
@vent.on 'bookflight', =>
@flightSource.getAircraft (err, aircraftresponse) =>
if aircraftresponse
@flightSource.getLeadPassengers (err, passengerresponse ) =>
if passengerresponse
@aircraft.set aircraft:aircraftresponse, user:@member, leadpassengers:passengerresponse
@flightView = new ReservationView vent: @vent, dataSource: @flightSource, reservation: @reservation, model: @aircraftå
@StareIntoTheBeard
StareIntoTheBeard / pebblenotes logs 12-27
Created December 28, 2013 00:18
pebblenotes logs 12-27
[DEBUG] tasklists.c:74: TaskLists module initialized, window is 0x2001c1ac
[DEBUG] tasks.c:134: Tasks module initialized, window is 0x2001c22c
[DEBUG] statusbar.c:41: Status bar: Starting...
[PHONE] pebble-app.js:?: JS: starting app: 5841FFD7-908F-4226-B687-BF6FF64CC8C5 PebbleNotes
[PHONE] pebble-app.js:?: JS: PebbleNotes: JS is running. Okay.
[PHONE] pebble-app.js:?: JS: PebbleNotes: access token (from LS): ya29.1.AADtN_Xn39ztSOD18sWWOFiXmR8TYrF8zMwccfwKZVSz3pcTRN_arsyImcRujNFvQb_z
[PHONE] pebble-app.js:?: JS: PebbleNotes: refresh token (from LS): 1/Z2a...
[PHONE] pebble-app.js:?: JS: PebbleNotes: transactionId=undefined for msg {"code":0}
[DEBUG] comm.c:144: Message code: 0
[DEBUG] comm.c:176: JS Ready Callback awaiting, calling
@StareIntoTheBeard
StareIntoTheBeard / PebbleNotes Logs - Original App - 12-28
Created December 28, 2013 19:11
PebbleNotes Logs - Original App - 12-28
[DEBUG] tasklists.c:74: TaskLists module initialized, window is 0x2001c1ac
[DEBUG] tasks.c:134: Tasks module initialized, window is 0x2001c22c
[DEBUG] statusbar.c:41: Status bar: Starting...
[PHONE] pebble-app.js:?: JS: starting app: 5841FFD7-908F-4226-B687-BF6FF64CC8C5 PebbleNotes
[PHONE] pebble-app.js:?: JS: PebbleNotes: JS is running. Okay.
[PHONE] pebble-app.js:?: JS: PebbleNotes: access token (from LS): ya29.1.AADtN_XMiLy9Yk0OV79ZMzWFegNTkLMFG5pPWLDekygpubPFOH2FYNbIHFeWGjY
[PHONE] pebble-app.js:?: JS: PebbleNotes: refresh token (from LS): 1/h4V...
[PHONE] pebble-app.js:?: JS: PebbleNotes: transactionId=undefined for msg {"code":0}
[DEBUG] comm.c:144: Message code: 0
[DEBUG] comm.c:176: JS Ready Callback awaiting, calling
package main
import (
"fmt"
"time"
"math/rand"
)
func f(n int) {
for i := 0; i < 10; i++ {
package main
import ("net/http" ; "encoding/json"; "io"; "time"; "fmt")
type Message struct {
Name string
Endpoint string
Query string
Time string
}
@StareIntoTheBeard
StareIntoTheBeard / critterz
Created September 19, 2014 16:26
THE CHEAT CODES
{"tiles":[[{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":0,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":1,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":2,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":3,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":4,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":5,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":6,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":7,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":8,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":9,"y":0}},{"isCleared":false,"isUnlocked":false,"danger":0,"extraClass":"","coords":{"x":10,"y":0}},{"isCleared":false,"isUnlocked":f