Skip to content

Instantly share code, notes, and snippets.

fun fastBlur(sentBitmap: Bitmap, radius: Int): Bitmap {
// Stack Blur v1.0 from
// http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html
//
// Java Author: Mario Klingemann <mario at quasimondo.com>
// http://incubator.quasimondo.com
// created Feburary 29, 2004
// Android port : Yahel Bouaziz <yahel at kayenko.com>
// http://www.kayenko.com
@markhollands
markhollands / swift-test.rb
Created September 12, 2014 04:21
Swift Test of a record with an id field with a renamed column
require 'rubygems'
require 'swift'
require 'swift/adapter/mysql'
require 'swift/migrations'
Swift.setup :default, Swift::Adapter::Mysql, db: "test", user: "", password: "", host: "localhost"
# This record type is the same as the one below apart from the id column being renamed in the database
class TestRecord < Swift::Record
store :testrecord