To toast:
- Make sure you have ImageMagick installed (
brew install imagemagick) - Change line 7 of toast.rb to the repository name you're working with
- toast!
$ bundle install
$ ./get_token [user] [pass]
$ export GHUSER=[myuser]
| var fs = require('fs'), | |
| util = require('util'), | |
| Stream = require('stream').Stream; | |
| /** | |
| * Create a bandwidth limited stream | |
| * | |
| * This is a read+writeable stream that can limit how fast it | |
| * is written onto by emitting pause and resume events to | |
| * maintain a specified bandwidth limit, that limit can |
| #ifndef UTIL_LANG_RANGE_HPP | |
| #define UTIL_LANG_RANGE_HPP | |
| #include <iterator> | |
| namespace util { namespace lang { | |
| namespace detail { | |
| template <typename T> |
| package main | |
| import ( | |
| "bufio" | |
| "container/list" | |
| "flag" | |
| "fmt" | |
| "net/http" | |
| "io" | |
| "os" |
| module Y { | |
| interface Anim extends Base { | |
| } | |
| interface App extends App_Base, App_Content, App_Transitions, PjaxContent { | |
| (config?: any); | |
| #ifndef TEXT_STRING_HPP | |
| #define TEXT_STRING_HPP | |
| #include <algorithm> | |
| #include <cstring> | |
| #include <iterator> | |
| #include <memory> | |
| #include <iosfwd> | |
| namespace text { |
| /* | |
| Grep.js | |
| Author : Nic da Costa ( @nic_daCosta ) | |
| Created : 2012/11/14 | |
| Version : 0.2 | |
| (c) Nic da Costa | |
| License : MIT, GPL licenses | |
| Overview: | |
| Basic function that searches / filters any object or function and returns matched properties. |
| enum class dna_strand : char { | |
| positive = '+', | |
| negative = '-' | |
| }; | |
| std::ostream& operator <<(std::ostream& out, dna_strand strand) { | |
| return out << static_cast<char>(strand); | |
| } | |
| std::istream& operator >>(std::istream& in, dna_strand& strand) { |
To toast:
brew install imagemagick)$ bundle install
$ ./get_token [user] [pass]
$ export GHUSER=[myuser]
| template <typename Source> | |
| struct auto_cast_helper { | |
| Source const& value; | |
| explicit auto_cast_helper(Source const& value) : value(value) { } | |
| template <typename Target> | |
| operator Target() const { | |
| return static_cast<Target>(value); | |
| } |
| import cv2.cv as cv | |
| import tesseract | |
| gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE) | |
| cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY) | |
| api = tesseract.TessBaseAPI() | |
| api.Init(".","eng",tesseract.OEM_DEFAULT) | |
| api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz") | |
| api.SetPageSegMode(tesseract.PSM_SINGLE_WORD) | |
| tesseract.SetCvImage(gray,api) | |
| print api.GetUTF8Text() |