Skip to content

Instantly share code, notes, and snippets.

@amitdo
amitdo / tesspageosd
Last active March 14, 2018 19:33
Tesseract page osd example
// License: Apache 2.0
#include <cstdlib>
#include <tesseract/baseapi.h>
#include <leptonica/allheaders.h>
int main() {
const char* inputfile = "/path/to/eurotext.tif";
Pix* image = pixRead(inputfile);
if (!image) {
@amitdo
amitdo / instructions.md
Created June 7, 2016 09:02 — forked from harding/instructions.md
Working With Multiple Repositories On GitHub

Working With Multiple Repositories On GitHub

Most projects on GitHub have a main repository that's the focal point of activity. For example, the Example organization has the Example.com repository:

https://github.com/example/example.com

Developers of Example.com typically call this the 'upstream' repository. We'll come back to it in a moment.

@amitdo
amitdo / GitHub-Forking.md
Created June 7, 2016 08:25 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, when I started going through the process of forking and issuing pull requests, I had some trouble figuring out the proper method for doing so and made quite a few mistakes along the way. I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your