Skip to content

Instantly share code, notes, and snippets.

View okaq's full-sized avatar

AQ okaq

  • okaq.com
  • USA
  • 05:38 (UTC -04:00)
View GitHub Profile
@okaq
okaq / boru.html
Created May 17, 2014 02:01
Random Fields
<!DOCTYPE html>
<html lang="en">
<head id="zeta">
<title>okaq</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=1920,height=1080,initial-scale=1" />
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAMklEQVR4nGLhfLGBgZaAiaamj1owasGoBaMWjFowasGoBaMWjFowasGoBVQEgAAAAP//cfIB5JfeIs4AAAAASUVORK5CYII=" />
<style type="text/css">
html,body{width:1920px;height:1080px;background-color:rgba(4,8,16,1.0);}
@okaq
okaq / aina.html
Created May 10, 2014 11:58
Vobu Glyph Sample
<!DOCTYPE html>
<html lang="en">
<!-- manifest="vobu.appcache" -->
<head id="zeta">
<title>okaq</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=1920,height=1080,initial-scale=1"/>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAMklEQVR4nGJxzPzPQEvARFPTRy0YtWDUglELRi0YtWDUglELRi0YtWDUAioCQAAAAP//0ssB7LPxfD4AAAAASUVORK5CYII=" />
<style type="text/css">
@okaq
okaq / C.go
Created April 30, 2014 16:04
Google Code Jam Round 1A * Problem C. Proper Shuffle
/*
* Google Code Jam Round 1A
* Problem C. Proper Shuffle
* execute with: go run C.go
*/
package main
import (
"bufio"
"fmt"
@okaq
okaq / A.go
Created April 29, 2014 00:24
Google Code Jam Round 1A * Problem A. Charging Chaos
/*
* Google Code Jam Round 1A
* Problem A. Charging Chaos
* execute with: go run A.go
*/
package main
import (
"bufio"
"fmt"
@okaq
okaq / D.go
Last active August 29, 2015 14:00
Google Code Jam 2014 Qualification Round * Problem D. Deceitful War
/*
* Google Code Jam 2014 Qualification Round
* Problem D. Deceitful War
* execute with: go run D.go
*/
package main
import (
"bufio"
"fmt"
@okaq
okaq / C.go
Created April 19, 2014 01:42
Google Code Jam 2014 Qualification Round * Problem C. Minesweeper Master
/*
* Google Code Jam 2014 Qualification Round
* Problem C. Minesweeper Master
* execute with: go run C.go
*/
package main
import (
"bufio"
"fmt"
@okaq
okaq / B.go
Created April 16, 2014 19:03
Google Code Jam 2014 Qualification Round * Problem B. Cookie Clicker Alpha
/*
* Google Code Jam 2014 Qualification Round
* Problem B. Cookie Clicker Alpha
* execute with: go run B.go
*/
package main
import (
"bufio"
"fmt"
@okaq
okaq / A.go
Created April 15, 2014 18:01
Google Code Jam 2014 Qualification Round * Problem A. Magic Trick
/*
* Google Code Jam 2014 Qualification Round
* Problem A. Magic Trick
* execute with: go run A.go < A-small-practice.in > A-small-practice.out
*/
package main
import (
"fmt"
"strconv"
@okaq
okaq / vaki.go
Last active January 4, 2016 14:39
// okaq vaki
// font engine
// bitmap font sampled from
// canvas fillText render
package main
import (
"fmt"
"io/ioutil"
"log"
@okaq
okaq / unaki.go
Last active January 4, 2016 07:29
// logo bitmap renderer
package main
import (
"encoding/json"
"fmt"
"log"
// "image"
"io"
"io/ioutil"