Skip to content

Instantly share code, notes, and snippets.

View polarina's full-sized avatar

Gabríel Arthúr Pétursson polarina

View GitHub Profile

Keybase proof

I hereby claim:

  • I am polarina on github.
  • I am polarina (https://keybase.io/polarina) on keybase.
  • I have a public key whose fingerprint is B626 3156 79FD 853A AA0C B055 49B1 3FED DC98 4DE6

To claim this, I am signing this object:

[polarina@tuple sdl2]$ cabal build
Building sdl2-2.0.0...
Preprocessing library sdl2-2.0.0...
[ 1 of 35] Compiling SDL.Raw.Platform ( src/SDL/Raw/Platform.hs, dist/build/SDL/Raw/Platform.o )
[ 2 of 35] Compiling SDL.Input.GameController ( src/SDL/Input/GameController.hs, dist/build/SDL/Input/GameController.o )
[ 3 of 35] Compiling Data.Bitmask ( src/Data/Bitmask.hs, dist/build/Data/Bitmask.o )
[ 4 of 35] Compiling SDL.Internal.Numbered ( src/SDL/Internal/Numbered.hs, dist/build/SDL/Internal/Numbered.o )
[ 5 of 35] Compiling SDL.Raw.Enum ( dist/build/SDL/Raw/Enum.hs, dist/build/SDL/Raw/Enum.o )
[ 6 of 35] Compiling SDL.Raw.Types ( dist/build/SDL/Raw/Types.hs, dist/build/SDL/Raw/Types.o )
[ 7 of 35] Compiling SDL.Raw.Filesystem ( src/SDL/Raw/Filesystem.hs, dist/build/SDL/Raw/Filesystem.o )
@polarina
polarina / sdl2.cabal
Created October 7, 2014 07:55
Cabal file
name: sdl2
version: 1.1.2
synopsis: Low-level bindings to SDL2
description: Low-level bindings to the SDL2 library, version 2.0.3.
license: BSD3
license-file: LICENSE
author: Gabríel Arthúr Pétursson
maintainer: gabriel@system.is
copyright: Copyright © 2013, 2014 Gabríel Arthúr Pétursson
category: Graphics
@polarina
polarina / gist:2649744
Created May 9, 2012 23:31
(--\) operator
main = let a --\ b = a + b in print (3 --\ 5)
$ irb
ruby-1.9.2-p290 :001 > require 'net/dns/resolver'
=> true
ruby-1.9.2-p290 :002 > Net::DNS::Resolver.new.send "2.e.d.9.0.a.9.5.f.f.f.f.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"
Net::DNS::Names::ArgumentError: Label data cannot exceed 63 chars
from /home/polarina/.rvm/gems/ruby-1.9.2-p290/gems/net-dns-0.6.1/lib/net/dns/names/names.rb:62:in `pack_name'
from /home/polarina/.rvm/gems/ruby-1.9.2-p290/gems/net-dns-0.6.1/lib/net/dns/question.rb:119:in `data'
from /home/polarina/.rvm/gems/ruby-1.9.2-p290/gems/net-dns-0.6.1/lib/net/dns/packet.rb:186:in `block in data'
from /home/polarina/.rvm/gems/ruby-1.9.2-p290/gems/net-dns-0.6.1/lib/net/dns/packet.rb:185:in `each'
from /home/polarina/.rvm/gems/ruby-1.9.2-p290/gems/net-dns-0.6.1/lib/net/dns/packet.rb:185:in `data'