Skip to content

Instantly share code, notes, and snippets.

#define new MemStamp( __FILE__, __LINE__ ) * new
class MemStamp
{
public:
MemStamp( const char *pFile_name, int pLine_number );
MemName file_name;
int line_number;
};
Hubot> [Sun Aug 31 2014 00:19:43 GMT-0700 (Pacific Daylight Time)] ERROR SyntaxE
rror: Unexpected token F
at Object.parse (native)
at C:\Users\ROBOKiTTY\AppData\Roaming\npm\node_modules\hubot\bin\diabott\scrip
ts\darksky.coffee:48:21
at IncomingMessage.<anonymous> (C:\Users\ROBOKiTTY\AppData\Roaming\npm\node_mo
dules\hubot\bin\diabott\node_modules\hubot\node_modules\scoped-http-client\lib\i
ndex.js:70:20)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:943:16
@ROBOKiTTY
ROBOKiTTY / HitLocation.cs
Created September 29, 2012 18:39
Hit them where it hurts
public class HitLocation
{
public string name;
public float stunMultiplier;
public float nStunMultiplier;
public float bodyMultiplier;
}
public class HitLocationTable
{
@ROBOKiTTY
ROBOKiTTY / MathUtil.cs
Created September 28, 2012 14:32
wat are they doing?
/********************************************************************
The Multiverse Platform is made available under the MIT License.
Copyright (c) 2012 The Multiverse Foundation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify,
@ROBOKiTTY
ROBOKiTTY / ObbTree.cs
Created September 28, 2012 14:11
wat
/********************************************************************
The Multiverse Platform is made available under the MIT License.
Copyright (c) 2012 The Multiverse Foundation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify,
@ROBOKiTTY
ROBOKiTTY / webkeyboard.js
Created September 19, 2012 03:44
Project for a summer course years ago
function synthInit() {
//##### initialization script adapted from auxlib demo #####//
var synth = new aux.synth.Synth(1.0, aux.synth.RATE_FAST, aux.synth.BITS_SAMPLE_16, true); //length, sample rate, bits per sample, stereo
synth.setVibratoWarp(0.0);
synth.addFunc(aux.synth.sinFunc,"Sin",aux.synth.getNoteFreq('a',4),0.5,0.0); //sinwave; func, id, freq, vol, pan
//##### end init for auxlib synth demo #####//
notes = ["C3", "C#3", "D3","D#3", "E3", "F3", "F#3", "G3", "G#3", "A4", "A#4", "B4",
"C4", "C#4", "D4","D#4", "E4", "F4", "F#4", "G4", "G#4", "A5", "A#5", "B5",
"C5", "C#5", "D5","D#5", "E5", "F5", "F#5", "G5", "G#5", "A6", "A#6", "B6", "C7"]; //notes arrayed in keyboard order
@ROBOKiTTY
ROBOKiTTY / JVerbose.java
Created August 30, 2012 23:53
Try reading this out loud
boolean phaseThree = false;
if (enablePrecision == true)
{
phaseThree = true;
for (int i = 0; i < components.length; ++i)
{
if (!components[i].isPrecise)
{
phaseThree = false;
}
@ROBOKiTTY
ROBOKiTTY / LoremIpsum.java
Created July 18, 2012 14:25
LoremIpsum-BBCC
import static java.lang.Float.*;
import static java.lang.Long.*;
import static java.lang.System.*;
import java.*;
import java.util.*;
@SuppressWarnings("all")
public class LoremIpsum
{
public static String[] ss;