Skip to content

Instantly share code, notes, and snippets.

View famuvie's full-sized avatar

Facundo Muñoz famuvie

View GitHub Profile

Keybase proof

I hereby claim:

  • I am famuvie on github.
  • I am famuvie (https://keybase.io/famuvie) on keybase.
  • I have a public key ASAjE_sCXLWyfcBq4VUZDqHGu-RvEoFHeAq99jZR_ip0Pgo

To claim this, I am signing this object:

@famuvie
famuvie / ocr.R
Created January 31, 2018 10:05
OCR from R
library(magick)
library(magrittr)
url <- "https://pbs.twimg.com/media/DU1X5-fUMAE1CAX.jpg"
text <-
image_read(url) %>%
image_resize("2000") %>%
image_convert(colorspace = 'gray') %>%
image_trim() %>%
image_ocr()
@famuvie
famuvie / post-commit
Last active April 11, 2019 14:39 — forked from rmflight/post-commit
useful commit hooks for R package dev
#!/usr/bin/env Rscript
# License: CC0 (just be nice and point others to where you got this)
# Author: Robert M Flight <[email protected]>, github.com/rmflight
#
# This is a post-commit hook that after a successful commit subsequently increments the package version in DESCRIPTION
# and commits that. Analogous to the pre-commit at https://gist.github.com/rmflight/8863882, but useful if you only have
# good reasons for not doing it on the pre-commit.
#
# To install it, simply copy this into the ".git/hooks/post-commit" file of your git repo, change /path/2/Rscript, and make