Skip to content

Instantly share code, notes, and snippets.

View christopher-haueter's full-sized avatar

Christopher Haueter christopher-haueter

  • Houston, TX
  • 07:45 (UTC -05:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am christopher-haueter on github.
  • I am chrishaueter (https://keybase.io/chrishaueter) on keybase.
  • I have a public key ASBOIwgr3IphQ9hwfrRxNiY3EigPoVZMZBuZn819JWp5OAo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am chrishaum on github.
* I am chaueter (https://keybase.io/chaueter) on keybase.
* I have a public key ASDxTKkz3dwzm7AS-6mjwXM8663UpD6vJYH4hbDgGvMS9go
To claim this, I am signing this object:
require 'base64'
require 'open-uri'
require 'net/http'
require 'net/https'
require 'json'
class OCR
attr_reader :api_key, :image_url
def self.scan(api_key:, image_url:)
@christopher-haueter
christopher-haueter / split_csv
Last active October 29, 2015 15:30
split_csv with headers!
#!/bin/zsh
ROWS_PER_CSV=$1
SOURCE_FILE=$2
HEADER_ROW=`head -n 1 $SOURCE_FILE`
tail -n +2 $SOURCE_FILE | split -l $ROWS_PER_CSV - split_
for file in split_*
do
echo $HEADER_ROW > tmp_file