Skip to content

Instantly share code, notes, and snippets.

View blezek's full-sized avatar

Daniel Blezek blezek

View GitHub Profile
@blezek
blezek / letterpress.groovy
Created October 26, 2012 15:46
Finds words in a specified dictionary file from a scrambled list of letters
#!/usr/bin/env groovy
import groovy.util.Node;
import java.util.zip.GZIPInputStream;
def root = new Node ( null, "root", [ path : "", leaf : false, value : "" ] );
Words = []
// Pull off the first letter, see if the node has that.
// If at end of word, make as leaf node
def stuffWord ( word, node ) {
@blezek
blezek / lockit.sh
Created October 29, 2012 19:49
Lockable Bash script
#!/bin/bash
## Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
## License: GNU General Public License v2, v3
#
# Lockable script boilerplate
### HEADER ###
hn=`hostname --short`
LongHN=`hostname`
@blezek
blezek / gist:4285857
Created December 14, 2012 14:36
Vaadin regression in 7 beta10 where Panels inside TabSheets do not correctly render (don't render at all).
package com.example.tabby9;
import com.vaadin.annotations.AutoGenerated;
import com.vaadin.ui.CustomComponent;
import com.vaadin.ui.Label;
import com.vaadin.ui.NativeButton;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TabSheet;
import com.vaadin.ui.VerticalLayout;