Skip to content

Instantly share code, notes, and snippets.

View macfanr's full-sized avatar
🎯
Focusing

Danny macfanr

🎯
Focusing
View GitHub Profile
@luisparravicini
luisparravicini / composite.rb
Created March 25, 2012 13:47
Compose several images using ImageMagick
require 'fileutils'
include FileUtils
dir = ARGV.shift
method = ARGV.shift
if dir.nil? || method.nil?
puts "usage #{$0} <image-dir> <method>"
exit 1
end
@henrik
henrik / ocr.markdown
Created March 3, 2012 17:07
OCR on OS X with tesseract

Install ImageMagick for image conversion:

brew install imagemagick

Install tesseract for OCR:

brew install tesseract --all-languages

Or install without --all-languages and install them manually as needed.

@nolim1t
nolim1t / socket.c
Created June 10, 2009 03:14
HTTP Request in C using low level write to socket functionality
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>