Skip to content

Instantly share code, notes, and snippets.

View okaq's full-sized avatar

AQ okaq

  • okaq.com
  • USA
  • 09:28 (UTC -04:00)
View GitHub Profile
/*
* Google Code Jam 2013 Qualification Round
* Problem C. Fair and Square
*/
package main
import (
"bufio"
"flag"
"fmt"
/*
* Google Code Jam 2013 Qualification Round
* Problem B. Lawnmower
*/
package main
import (
"bufio"
"flag"
"fmt"
/*
* Google Code Jam 2013 Qualification Round
* Problem A. Tic-Tac-Toe-Tomek
*/
package main
import (
"bufio"
"flag"
"fmt"
@okaq
okaq / nuvala.go
Created November 21, 2012 23:18
Recursive Quad Portrait
/*
* recursive quad implementation
* rectangle subdivision
* average over input image
*/
package main
import (
"fmt"
"image"
@okaq
okaq / xaor.c
Created September 22, 2012 01:40
Minimun Viable OpenGLES NaCl in C
/* min viable nacl opengl */
#include <stdio.h>
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_var.h"
#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/ppb_messaging.h"
@okaq
okaq / C.go
Created April 20, 2012 13:24
Solution: Recycled Numbers (Google Code Jam 2012 Qualification Round Problem C)
/*
* Google Code Jam 2012 Qualification Round
* Problem C. Recycled Numbers
*/
package main
import (
"bufio"
"bytes"
"flag"
@okaq
okaq / B.go
Created April 18, 2012 20:26
Solution: Dancing With the Googlers (Google Code Jam 2012 Qualification Round Problem B)
/*
* Google Code Jam 2012 Qualification Round
* Problem B. Dancing with the Googlers
*/
package main
import (
"bufio"
"flag"
"fmt"
@okaq
okaq / A.go
Created April 17, 2012 14:38
Solution: Speaking in Tongues (Google Code Jam 2012 Qualification Round Problem A)
/*
* Google Code Jam 2012 Qualification Round
* Problem A. Speaking in Tongues
*/
package main
import (
"bufio"
"flag"
"fmt"
<!DOCTYPE html>
<html lang="en">
<head id="zeta">
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="author" content="[email protected]" />
<title>okaq.com</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA1BMVEUiqruU6JEzAAAADElEQVQImWNgIA0AAAAwAAFDlLdnAAAAAElFTkSuQmCC" />
<style type="text/css">
html,body{width:100%;height:100%;margin:0px;padding:0px;background-color:rgba(255,255,255,1.0);}
#beta{width:100%;height:100%;display:table;}
@okaq
okaq / badger.go
Created January 27, 2012 18:00
MonoRed64 Color Model for Golang
package main
import (
"fmt"
"image"
"image/color"
"image/jpeg"
"image/png"
"os"
)