Skip to content

Instantly share code, notes, and snippets.

View Speljohan's full-sized avatar

Johan Ljungberg Speljohan

View GitHub Profile
@Speljohan
Speljohan / PoE NPL
Created November 2, 2013 13:05 — forked from Zoxc/PoE NPL
struct PoEEmpty
{
}
[DataTypeByteOrder = 1] UnsignedNumber PoEU16
{
Size = 2
}
[DataTypeByteOrder = 0] UnsignedNumber PoEU16LE
@Speljohan
Speljohan / gist:5124955
Last active December 14, 2015 17:49 — forked from kabakiyo/gist:3226618
Support for SIMILAR TO and ILIKE in PostgreSQL Datamapper.
require 'dm-core'
require 'dm-do-adapter'
# Credits to kabakiyo for the ILIKE Comparator.
module DataMapper
class Query
module Conditions
class SimilarToComparison < AbstractComparison
slug :similar