Skip to content

Instantly share code, notes, and snippets.

View zonski's full-sized avatar

Daniel Zwolenski zonski

View GitHub Profile
@zonski
zonski / pom.xml
Created August 16, 2012 21:07
POM for Google Closure Templates Project
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.code</groupId>
<artifactId>google-closure-templates</artifactId>
<version>20120815</version>
@zonski
zonski / LTI CIVIL Stress Test
Created June 12, 2013 07:57
A simple stress test of LTI CIVIL. On Windows the system bombs out after around 500 iterations of the loop.
import com.lti.civil.*;
import java.util.List;
public class LtiCivilTest {
public static void main(String[] args) throws Exception {
System.out.println("Testing LTI CIVIL");
package scrabble;
package com.seanscompany.coolwebapp.scrabble;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Scrabble {
public class BinaryTree {
public boolean search(int value) {
return search(value, this.root);
}
private boolean search(int value, Node root) {
if (root.getValue() == value) {
return true;
public class BinaryTree {
private Node root;
public boolean search(int value) {
return root != null && root.search(value);
}
}
public class Node {
public class BinaryTree {
private Node root;
public void insert(int value) {
if (root == null) {
root = new Node(value);
} else {
root.insert(value);
}
{
"id": "intro",
"name": "Introduction",
"steps": [
{
"id": "welcome",
"text": "Hi {{user.firstName}}, my name is <b>{{chat.botName}}</b> and I'm looking forward to chatting with you",
"type": "single-select",
"onBeforeCreate": "System.out.println(\"Before created: \" + step.getId())",
"onCreate": "System.out.println(\"Created: \" + step.getId())",