Skip to content

Instantly share code, notes, and snippets.

Avatar

mulander

View GitHub Profile
View gist:52edd6bcadae4e211cd764f4c2cd1fab
# This one has a defualt for serial
postgres=# select relname,attname, adbin from pg_attribute, pg_class, pg_attrdef where attname = 'id' and atthasdef and pg_class.oid = attrelid and adrelid = attrelid;
-[ RECORD 1 ]----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
relname | test2
attname | id
adbin | {FUNCEXPR :funcid 480 :funcresulttype 23 :funcretset false :funcvariadic false :funcformat 2 :funccollid 0 :inputcollid 0 :args ({FUNCEXPR :funcid 1574 :funcresulttype 20 :funcretset false :funcvariadic false :funcformat 0 :funccollid 0 :inputcollid 0 :args ({CONST :consttype 2205 :consttypmod -1 :constcollid 0 :constlen 4 :cons
View keybase.md

Keybase proof

I hereby claim:

  • I am mulander on github.
  • I am mulander (https://keybase.io/mulander) on keybase.
  • I have a public key whose fingerprint is B78E 4696 65D4 A1CF B012 B4A2 F4F7 77B8 092B B571

To claim this, I am signing this object:

View gist:74e1dfc1caee95825860
;; MELPA setup from
;; http://melpa.org/#/getting-started
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
View gist:7727918
in friends.html
<table class="condensed-table" id="friends-tbl">
<tbody>
<tr template repeat="{{key in friends.keys}}">
<td>{{friends[key].displayName}}</td><td><i>{{friends[key].status}}</i></td>
</tr>
</tbody>
</table>
in friends.dart
View gist:7727325
mulander@craig-laptop:~/tools/dart$ ./DartEditor
!SESSION 2013-11-30 17:57:38.382 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86_64 -consoleLog -data @user.home/.dartEditor
!ENTRY org.eclipse.core.resources 2 10035 2013-11-30 17:57:46.831
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
View gist:7269424
# mulander@craig-laptop:~/art/bench$ python test.py
# 1.89928817749
# 1.24240493774
# mulander@craig-laptop:~/art/bench$ python test.py
# 1.93834280968
# 1.26033616066
# mulander@craig-laptop:~/art/bench$
import timeit
View gist:7015092
[195:201:1016/231225:ERROR:platform_thread_linux.cc(99)] Failed to set nice value of thread to -10
Game update: AppID 246090 "Spacebase DF-9", ProcID 13493, IP 0.0.0.0:0
ERROR: ld.so: object 'gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
jit status: true
LAUNCHING SPACEBASE BUILD: Alpha 1a
loading config from file: /home/mulander/.config/spacebasedf9/Saves/bootconfig.cfg
Can't cache data. Unknown cache type: linecode
Cache miss: Linux/Munged/Fonts/PatrickHand.font
Cache miss: Linux/Munged/Fonts/LeagueGothic.font
View gist:6428843
mulander@craig-laptop:~/rust/servo/build$ ./servo ../src/test/html/about-mozilla.html
Xlib: extension "GLX" missing on display ":0".
task <unnamed> failed at 'called `Result::unwrap()` on `Err` value: ()', /home/mulander/rust/servo/src/compiler/rust/src/libstd/result.rs:121
task <unnamed> failed at 'receiving on closed channel', /home/mulander/rust/servo/src/compiler/rust/src/libstd/rt/comm.rs:496
task <unnamed> failed at 'killed by linked failure', /home/mulander/rust/servo/src/compiler/rust/src/libstd/rt/kill.rs:543
task <unnamed> failed at 'killed by linked failure', /home/mulander/rust/servo/src/compiler/rust/src/libstd/rt/kill.rs:543
task <unnamed> failed at 'receiving on closed channel', /home/mulander/rust/servo/src/compiler/rust/src/libstd/rt/comm.rs:496
mulander@craig-laptop:~/rust/servo/build$ optirun ./servo ../src/test/html/about-mozilla.html
[VGL] ERROR: in getglxdrawable--
[VGL] 177: Window has been deleted by window manager
View gist:6124990
mulander@craig-laptop:~/.gvm/pkgsets/go1.1.1/global/src/mwriter$ strace ./mwriter
execve("./mwriter", ["./mwriter"], [/* 37 vars */]) = 0
arch_prctl(ARCH_SET_FS, 0x5126f0) = 0
sched_getaffinity(0, 128, {ff, 0, 0, 0}) = 32
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f198f6ca000
mmap(NULL, 268480448, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f197f6bf000
mmap(0xc000000000, 65536, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc000000000
munmap(0xc000000000, 65536) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f197f69f000
mmap(0xc200000000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xc200000000
View gist:5701856
{
"user_id" : 1,
"played_hole_id" : 1,
"club_id" : null,
"timestamp" : "2012-09-08 18:30:06",
"data" : [
{ "frame": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.........oopSWhSZ//2Q==", "footplates": [-16,2,0,-2,-6,888,598,32] }
,{ "frame": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.........oopSWhSZ//2Q==", "footplates": [-16,2,0,-2,-6,888,598,32] }
,{ "frame": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.........oopSWhSZ//2Q==", "footplates": [-16,2,0,-2,-6,888,598,32] }
,{ "frame": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wB.........oopSWhSZ//2Q==", "footplates": [-16,2,0,-2,-6,888,598,32] }
You can’t perform that action at this time.