Skip to content

Instantly share code, notes, and snippets.

Paul Vorbach pvorb

Block or report user

Report or block pvorb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View baseapi.cpp
// BASELINE INFORMATION
if (level == PageIteratorLevel::RIL_TEXTLINE) {
int x1, y1, x2, y2;
it->Baseline(level, &x1, &y1, &x2, &y2);
int p0;
float p1;
p0 = bottom - y1;
p1 = ((float) (y1 - y2)) / (x2 - x1);
int f_size;
@pvorb
pvorb / correct-box-coordinates.patch
Created Apr 19, 2014
Correct Box coordinates by adding a static_cast in Tesseract 3.03
View correct-box-coordinates.patch
Index: ccmain/pageiterator.cpp
===================================================================
--- ccmain/pageiterator.cpp (Revision 1058)
+++ ccmain/pageiterator.cpp (Arbeitskopie)
@@ -288,9 +288,9 @@
const int pix_height = pixGetHeight(tesseract_->pix_binary());
const int pix_width = pixGetWidth(tesseract_->pix_binary());
*left = ClipToRange(static_cast<int>(box.left()), 0, pix_width);
- *top = ClipToRange(pix_height - box.top(), 0, pix_height);
+ *top = ClipToRange(pix_height - static_cast<int>(box.top()), 0, pix_height);
View install.log
cp: cannot stat `tex/*.sty': No such file or directory
cp: cannot stat `tex/*.cfg': No such file or directory
cp: cannot stat `tex/*.fd': No such file or directory
mktexlsr: Updating /cygdrive/e/Program Files/MiKTeX/ls-R...
mktexlsr: Done.
View notes.md

Typesafe webinar notes: Spray & Akka HTTP

Presenter - Mathias Doenitz

Spray.io

  • embeddable http stack built on Akka actors
  • Just an HTTP integration layer, not for building full web apps
  • Server & client side
View index.php
<?php
/**
* This file grabs requested html files.
*
* @author Paul Vorbach <vorbach@genitis.org>
* @license http://opensource.org/licenses/mit-license.php MIT License
* @version 0.1.0
* @package org.genitis.yuki
*/
@pvorb
pvorb / vimrc
Created Dec 15, 2010
sample vimrc file
View vimrc
set nocompatible
syntax on
filetype plugin indent on
set autochdir
set backspace=indent,eol,start
set clipboard+=unnamed
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
set fileformats=unix
@pvorb
pvorb / backup.sh
Created Jul 28, 2011
Backup script
View backup.sh
#!/bin/bash
# Sichert die Dateien auf host
DIR="tmp"
if [ -d $DIR ]; then
cd $DIR
else
mkdir $DIR
cd $DIR
@pvorb
pvorb / split-germany.js
Created Aug 19, 2011
Split germany.osm into 20 handy chunks with Osmosis and Node.js
View split-germany.js
var n = 55.304138,
e = 15.380859,
s = 47.040182,
w = 4.394531;
var width = e - w,
height = n - s;
console.log("Width: " + width);
console.log("Height: " + height);
View mfc42ul_3.6.44.idc
This file has been truncated, but you can view the full file.
//
// +-------------------------------------------------------------------------+
// | This file has been generated by The Interactive Disassembler (IDA) |
// | Copyright (c) 2011 Hex-Rays, <support@hex-rays.com> |
// | License info: 11-1111-1111-11 |
// | Bernd Zerlegt, The Internet |
// +-------------------------------------------------------------------------+
//
//
@pvorb
pvorb / time.js
Created Mar 21, 2012
Log the time on every second
View time.js
setInterval(function () {
console.log(getTime(new Date()));
}, 1000);
function pad(n) {
return n < 10 ? '0'+n : n;
}
function getTime(dt) {
return pad(dt.getHours())+':'+pad(dt.getMinutes())+':'+pad(dt.getSeconds());
You can’t perform that action at this time.