Skip to content

Instantly share code, notes, and snippets.

@jbclements
jbclements / Testing.java
Created April 18, 2012 03:29
shuffled 12
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.bukkit.Material;
import org.junit.Test;
@jbclements
jbclements / Testing.java
Created April 18, 2012 03:49
shuffled 13
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import org.bukkit.Material;
import org.junit.Test;
public class Testing {
@jbclements
jbclements / Testing.java
Created April 18, 2012 03:52
shuffled 14
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import org.bukkit.Material;
import org.junit.Test;
public class Testing{
@Test
public void test() {
@jbclements
jbclements / Testing.java
Created April 18, 2012 03:53
shuffled 15
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.bukkit.Material;
import org.junit.Test;
public class Testing {
@jbclements
jbclements / Testing.java
Created April 18, 2012 03:53
shuffled 16
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import org.junit.Test;
import org.bukkit.Material;
import java.util.Arrays;
public class Testing
{
RectangularPrism cube1 = new RectangularPrism(5,5,5,5,5,5);
@jbclements
jbclements / Testing.java
Created April 18, 2012 03:54
shuffled 17
package edu.calpoly.cpe102sp12;
import static org.junit.Assert.*;
import org.junit.Test;
import org.bukkit.Material;
public class Testing {
@Test
@jbclements
jbclements / Markdown.pl
Created April 23, 2012 17:25
Excerpt from gitolite doc/Markdown.pl
#
# Globals:
#
# Regex to match balanced [brackets]. See Friedl's
# "Mastering Regular Expressions", 2nd Ed., pp. 328-331.
my $g_nested_brackets;
$g_nested_brackets = qr{
(?> # Atomic matching
[^\[\]]+ # Anything other than brackets
@jbclements
jbclements / excerpt-of-tools.rkt
Created May 11, 2012 22:35
Excerpt from racket collects/drracket/private/tools.rkt
;
;
; ;; ; ;;;
; ; ;;; ;;; ; ;
; ; ; ; ; ; ;
; ; ;;; ; ;; ;;;; ;;; ;;; ; ; ; ;
; ; ; ;; ; ; ; ; ; ; ; ; ; ;
; ; ; ; ; ;;;; ;;; ;;;;; ; ;;; ; ;
; ; ; ; ; ; ; ; ; ; ; ; ;
; ; ; ; ; ; ; ; ; ; ; ; ; ;; ; ;
@jbclements
jbclements / SpellMgr-excerpt.cpp
Created May 18, 2012 23:05
Excerpt from mangos SpellMgr.cpp
bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) const
{
SpellEntry const *spellInfo_1 = sSpellStore.LookupEntry(spellId_1);
SpellEntry const *spellInfo_2 = sSpellStore.LookupEntry(spellId_2);
if (!spellInfo_1 || !spellInfo_2)
return false;
if (spellId_1 == spellId_2)
return false;
@jbclements
jbclements / foo.txt
Created June 16, 2012 23:54
aoeuaoe
sotnehu
aoeu
aoe
u
aoeu
oe