This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// favicon encoder: 32x32 png and json base64 data uri formats | |
package main | |
import ( | |
"encoding/base64" | |
"encoding/json" | |
"fmt" | |
"image" | |
"image/color" | |
"image/png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head id="zeta"> | |
<title>okaq.com/speed</title> | |
<script type="text/javascript"> | |
// ok | |
console.log("speed ok"); | |
// perf | |
window.bigtime = window.performance.timing.responseEnd - window.performance.timing.navigationStart; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head id="zeta"> | |
<title>okaq.com</title> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
<meta name="author" content="[email protected]" /> | |
<link rel="shortcut icon" href="" /> | |
<style type="text/css"> | |
html,body{width:100%;height:100%;background-color:rgba(255,255,255,1.0);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// okaq.com | |
// fugi web server | |
// by [email protected] | |
// on 2013-11-25 | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// webserver.go | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
// "net/url" | |
) | |
func AbHandler(w http.ResponseWriter, r *http.Request) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Google Code Jam 2013 Round 1A | |
* Problem B. Manage Your Energy | |
*/ | |
package main | |
import ( | |
"bufio" | |
"container/list" | |
"flag" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Google Code Jam 2013 Round 1A | |
* Problem A. Bullseye | |
*/ | |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ===================================================================================== | |
* | |
* File: chusho.cpp | |
* Description: OpenGL / OpenCL Bridge | |
* Created: 04/24/2013 07:54:13 AM | |
* Compile: g++ chusho.cpp -o chusho -lglut -lOpenCL -lGLEW -std=c++0x | |
* | |
* Author: AQ <[email protected]> | |
* Notes: Seg Fault when run. Invalid GL buffer (catalyst, amd app sdk, unity?) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Google Code Jam 2013 Qualification Round | |
* Problem D. Treasure | |
*/ | |
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* palindromic squares generator | |
* | |
*/ | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" |