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.
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.
from threading import Timer | |
def debounce(wait): | |
""" Decorator that will postpone a functions | |
execution until after wait seconds | |
have elapsed since the last time it was invoked. """ | |
def decorator(fn): | |
def debounced(*args, **kwargs): | |
def call_it(): |
Since this is on Hacker News and reddit...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".char *
s.type * name
, however, is entirely intentional.#!/bin/bash -e | |
cd "${1-.}" | |
for f in *; do | |
if [[ $f == *@2x* ]]; | |
then | |
convert $f -resize 50% ${f//@2x/} | |
fi | |
done |
<?php | |
/** | |
* Single level, Case Insensitive File Exists. | |
* | |
* Only searches one level deep. Based on | |
* https://gist.github.com/hubgit/456028 | |
* | |
* @param string $file The file path to search for. | |
* | |
* @return string The path if found, FALSE otherwise. |
function make_shipping_rates(id, low, mid, high) { | |
$.post('/admin/price_based_shipping_rates.json', { | |
price_based_shipping_rate: { | |
country_id: id, | |
min_order_subtotal: "0", | |
max_order_subtotal: "500", | |
name: "DHL Premiumversand", | |
offsets: [], | |
price: low | |
} |
HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.
As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#include <gtk/gtk.h> | |
#include <webkit/webkit.h> | |
static void destroyWindowCb(GtkWidget* widget, GtkWidget* window); | |
static gboolean closeWebViewCb(WebKitWebView* webView, GtkWidget* window); | |
static void | |
webkit_render_cb(WebKitWebView *webview, |
<svg preserveAspectRatio="xMinYMin" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" | |
viewBox="0 0 560 1388"> | |
<defs> | |
<mask id="canTopMask"> | |
<image width="560" height="1388" xlink:href="img/can-top-alpha.png"></image> | |
</mask> | |
</defs> | |
<image mask="url(#canTopMask)" id="canTop" width="560" height="1388" xlink:href="can-top.jpg"></image> | |
</svg> |