Skip to content

Instantly share code, notes, and snippets.

@swook
swook / gist:2042904
Created March 15, 2012 08:19
YQL ODT accept header example
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Seon-Wook Park</author>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<inputs>
<key id='url' type='xs:string' paramType='variable' required='true' />
@swook
swook / httpbasicaccess.xml
Created March 30, 2012 07:16
HTTP Basic Auth ODT
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Seon-Wook Park</author>
</meta>
<bindings>
<select itemPath="" produces="XML">
<inputs>
<key id='url' type='xs:string' paramType='variable' required='true' />
@swook
swook / httpstatus.xml
Created January 20, 2013 22:55
Check HTTP Status of URL
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Seon-Wook Park</author>
</meta>
<bindings>
<select itemPath="" produces="JSON">
<inputs>
<key id='url' type='xs:string' paramType='variable' required='true' />
@swook
swook / parseMaxmindBlocksintoIPTrie.go
Last active December 18, 2015 09:49
Maxmind GeoLiteCity-Blocks.csv in IPTrie
package main
import (
"code.google.com/p/iptrie"
"encoding/csv"
"fmt"
"io"
"os"
"runtime"
"runtime/debug"
@swook
swook / bigquery_logintest.go
Last active December 20, 2015 08:49
A short file to test mlab-ns2/gae/ns/rtt.BQInit.
package mlabns
import (
"appengine"
"code.google.com/p/google-api-go-client/bigquery/v2"
"code.google.com/p/mlab-ns2/gae/ns/rtt"
"fmt"
"net/http"
)
@swook
swook / hpc-gemm.cpp
Created March 30, 2015 16:26
hpc-gemm.cpp
#include <iostream>
#include <cassert>
#include <cmath>
#include <algorithm>
#include <boost/chrono.hpp>
#include <openblas/cblas.h>
#include <nmmintrin.h>
#include <omp.h>
#include "../lib/ArgumentParser.h"
@swook
swook / speedups
Created June 12, 2015 12:51
autowbGrayworld performance progress
Median
Name of Test old old new new old new new new
nosse sse nosse sse sse nosse sse sse
vs vs vs vs
old old old new
nosse nosse nosse nosse
(x-factor) (x-factor) (x-factor) (x-factor)
autowbGrayworld::Size_WBThresh::(127x61, 0.1) 0.054 ms 0.026 ms - - 2.11 - - -
autowbGrayworld::Size_WBThresh::(127x61, 0.5) 0.054 ms 0.024 ms - - 2.26 - -

Keybase proof

I hereby claim:

  • I am swook on github.
  • I am swook (https://keybase.io/swook) on keybase.
  • I have a public key ASCDCjf7wrpp7Hy38OpoVROu390N8PFJQBFvGUKjcfC8SQo

To claim this, I am signing this object: