Skip to content

Instantly share code, notes, and snippets.

@viktorklang
viktorklang / Actor.java
Last active December 26, 2024 10:54
Minimalist Java Actors
/*
Copyright 2012-2021 Viktor Klang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@mumoshu
mumoshu / build.sbt
Created January 10, 2012 06:08
DES and AES encryption in Scala
name := "DES and AES encryption in Scala"
version := "1.0"
scalaVersion := "2.9.1"
libraryDependencies += "commons-codec" % "commons-codec" % "1.6"
@caffo
caffo / GORILLA.BAS
Created October 31, 2011 03:24
QBasic Gorillas
' Q B a s i c G o r i l l a s
'
' Copyright (C) IBM Corporation 1991
'
' Your mission is to hit your opponent with the exploding banana
@geoffyoungs
geoffyoungs / pack-cell-renderers.rb
Created September 21, 2011 08:06
Include multiple CellRenderers in a single TreeView column
#!/usr/bin/env ruby
# See http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATreeViewColumn
# for more details on Gtk::TreeViewColumn
require 'gtk2'
require 'base64'
win = Gtk::Window.new("Multiple cells in a column")
win.signal_connect('delete-event') { Gtk.main_quit }