Skip to content

Instantly share code, notes, and snippets.

View atombender's full-sized avatar

Alexander Staubo atombender

View GitHub Profile
<TranslationUnit ptr="0x7fa46282a2d0">
<Typedef ptr="0x7fa46282a790" name="__int128_t" typeptr="0x0">
<BuiltinType ptr="0x7fa46282a520" canonical="0x7fa46282a520"/>
</Typedef>
<Typedef ptr="0x7fa46282a7f0" name="__uint128_t" typeptr="0x0">
<BuiltinType ptr="0x7fa46282a540" canonical="0x7fa46282a540"/>
</Typedef>
<Record ptr="0x7fa46282a840" name="__va_list_tag" typeptr="0x7fa46282a8c0">
<Field ptr="0x7fa46282a8f0" name="gp_offset">
<BuiltinType ptr="0x7fa46282a460" canonical="0x7fa46282a460"/>
@atombender
atombender / arraytest.go
Created July 5, 2012 14:17
Array traversal benchmark
package main
import (
"runtime"
"fmt"
"time"
)
const (
N = 300000000
# Først må du gjøre:
#
# gem install httpclient
#
require 'httpclient'
require 'json'
class KryssordWrapper
@atombender
atombender / git-switch-github-owner.rb
Created June 4, 2012 11:30
Git script to change a repo's push/pull URLs to point to another Github owner
#!/usr/bin/env ruby
def run(s)
puts "[#{s}]"
result = `#{s}`
unless $?.exited? and $?.exitstatus == 0
abort "Failed to run: #{s}"
end
result
end