Skip to content

Instantly share code, notes, and snippets.

View namuol's full-sized avatar

Lou Acresti namuol

View GitHub Profile
The DomainObjectCollection.allObjects() method is deprecated and will be removed in the next version of Gradle. You should use the all() method instead.
FAILURE: Build failed with an exception.
* Where:
Build file '/tmp/groovy-wslite/build.gradle' line: 46
* What went wrong:
A problem occurred evaluating root project 'groovy-wslite'.
Cause: Could not find property 'pgpSecretKeyRingFile' on root project 'groovy-wslite'.
@namuol
namuol / PKGBUILD
Created October 25, 2011 15:33
AUR PKGBUILD for vim-coffee-script-git
# Maintainer: Leif Warner <abimelech@gmail.com>
pkgname=vim-coffeescript-git
pkgver=20110823
pkgrel=1
pkgdesc="CoffeeScript syntax support for Vim."
arch=('any')
url="http://github.com/kchmck/vim-coffee-script"
license=('WTFPL')
depends=('vim')
makedepends=('git')
package computer;
// Referenced classes of package computer:
// KeyMapping
public class AWTKeyMapping extends KeyMapping
{
public AWTKeyMapping()
@namuol
namuol / DCPU.java
Created April 20, 2012 21:26
Decompiled source from http://dcpu.com/highnerd -- modified for DCPU emulation benchmarking.
package computer;
import java.io.*;
// Referenced classes of package computer:
// VirtualMonitor, VirtualKeyboard, AWTKeyMapping
public class DCPU {
public DCPU() {
@namuol
namuol / split_to_lines.coffee
Created May 1, 2012 03:56
Simple algorithm to split a line of text based on a desired line width. For fixed-width fonts only.
split_to_lines = (str, max_width) ->
lines = []
words = str.split(' ')
current_line = ''
for word in words
if current_line.length + word.length > max_width
lines.push current_line
current_line = word + ' '
else
current_line += word + ' '
var gistPrefix = 'http://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('p.gist').map(function(n, p) {
p = $(p);
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('a.gist').map(function(n, a) {
a = $(a);
var href = a.attr('href');
function split_to_lines(str, max_width) {
var current_line, lines, word, words, _i, _len;
lines = [];
words = str.split(' ');
current_line = '';
for (_i = 0, _len = words.length; _i < _len; _i++) {
word = words[_i];
if (current_line.length + word.length > max_width) {
lines.push(current_line);
current_line = word + ' ';
Presidency President Wikipedia Entry Took office Left office Party Portrait Thumbnail Home State
1 George Washington http://en.wikipedia.org/wiki/George_Washington 30/04/1789 4/03/1797 Independent GeorgeWashington.jpg thmb_GeorgeWashington.jpg Virginia
2 John Adams http://en.wikipedia.org/wiki/John_Adams 4/03/1797 4/03/1801 Federalist JohnAdams.jpg thmb_JohnAdams.jpg Massachusetts
3 Thomas Jefferson http://en.wikipedia.org/wiki/Thomas_Jefferson 4/03/1801 4/03/1809 Democratic-Republican Thomasjefferson.gif thmb_Thomasjefferson.gif Virginia
4 James Madison http://en.wikipedia.org/wiki/James_Madison 4/03/1809 4/03/1817 Democratic-Republican JamesMadison.gif thmb_JamesMadison.gif Virginia
5 James Monroe http://en.wikipedia.org/wiki/James_Monroe 4/03/1817 4/03/1825 Democratic-Republican JamesMonroe.gif thmb_JamesMonroe.gif Virginia
6 John Quincy Adams http://en.wikipedia.org/wiki/John_Quincy_Adams 4/03/1825 4/03/1829 Democratic-Republican/National Republican JohnQuincyAdams.gif thmb_JohnQuincyAdams.gif
java.io.IOException: mark/reset not supported
at java.util.zip.InflaterInputStream.reset(InflaterInputStream.java:286)
at java.io.FilterInputStream.reset(FilterInputStream.java:226)
at com.sun.media.sound.SoftMidiAudioFileReader.getAudioInputStream(SoftMidiAudioFileReader.java:135)
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1111)
at de.champany.game.gravitation.SoundSystem$SmallSound.load(SoundSystem.java:94)
at de.champany.game.gravitation.SoundSystem.init(SoundSystem.java:27)
at de.champany.game.gravitation.GravitationGUI.<init>(GravitationGUI.java:56)
at de.champany.game.gravitation.Gravitation$1.run(Gravitation.java:51)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)