Skip to content

Instantly share code, notes, and snippets.

View spilth's full-sized avatar
👽
spilth.org

Brian Kelly spilth

👽
spilth.org
View GitHub Profile
import com.urbancode.anthill3.dashboard.*;
import com.urbancode.anthill3.domain.environmentgroup.*;
import com.urbancode.anthill3.domain.project.*;
import com.urbancode.anthill3.domain.servergroup.*;
import com.urbancode.anthill3.domain.workflow.*;
import com.urbancode.anthill3.domain.lifecycle.*;
import com.urbancode.anthill3.domain.status.*;
import com.urbancode.anthill3.domain.summary.buildworkflow.*;
import java.util.Date;
import java.text.DateFormat;
<html>
<head>
<title>$reportGroup Status Board</title>
<meta http-equiv="refresh" content="60">
<style type="text/css">
body, td, th {
font: medium helvetica, verdana, arial, sans-serif;
color: #fff;
}
@spilth
spilth / TranslatorTest.java
Created May 20, 2011 18:18
Piglating Java Library Tests
package com.buildndeploy.piglatin;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class TranslatorTest {
@Test
public void startsWithSingleConsanant() {
@spilth
spilth / Translator.java
Created May 20, 2011 18:19
Piglating Java Library
package com.buildndeploy.piglatin;
public class Translator {
public String translate(String input) {
Character firstLetter = input.charAt(0);
String newString;
if (isVowel(firstLetter)) {
newString = input + "way";
@spilth
spilth / gist:986830
Created May 23, 2011 15:00
Translate Function Before
public String translate(String input) {
Character firstLetter = input.charAt(0);
String newString;
if (isVowel(firstLetter)) {
newString = input + "way";
} else {
int splitIndex = findSplitIndex(input);
@spilth
spilth / gist:986864
Created May 23, 2011 15:16
Translate Function After
public String toPiglatin(String englishWord) {
Character englishFirstLetter = englishWord.charAt(0);
String piglatinWord;
if (isVowel(englishFirstLetter)) {
piglatinWord = englishWord + "way";
} else {
int firstVowelIndex = findFirstVowelIndex(englishWord);
@spilth
spilth / Translator.java
Created May 23, 2011 15:53
Translate Function After 2
package com.buildndeploy.piglatin;
public class Translator {
public String toPiglatin(String originalWord) {
if (startsWithVowel(originalWord)) {
return (simplePiglatinWord(originalWord));
} else {
return (complexPiglatinWord(originalWord));
}
}
@spilth
spilth / ld23results.md
Created April 27, 2012 04:08
Ludum Dare 23 Stats (draft)

languages

  • actionscript: 93
  • c#: 66
  • javascript: 51
  • java: 44
  • c++: 31
  • gml: 24
  • lua: 15
  • python: 8
@spilth
spilth / ld23-results.md
Created April 30, 2012 15:32
LD23 Tools Survey Results (Draft)

languages

  • actionscript: 116
  • c#: 83
  • javascript: 67
  • java: 62
  • c++: 40
  • gamemaker: 24
  • lua: 20
  • python: 18
  • gml: 9
@spilth
spilth / results.md
Created May 15, 2012 03:03
LD23 Tools Survey Results

languages

  • actionscript: 127
  • c#: 90
  • javascript: 73
  • java: 71
  • c++: 49
  • gamemaker: 26
  • lua: 20
  • python: 19
  • gml: 11