This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* rs-theme-name: Dark UI Base16 Tomorrow Night */ | |
/* rs-theme-is-dark: TRUE */ | |
/* Dark UI from Randy3k's Wombat (https://github.com/randy3k/dotfiles/blob/master/.R/rstudio/themes/Wombat.rstheme) */ | |
/* "Tomorrow night" color scheme adapted from chriskempson's Base16 (https://github.com/chriskempson/base16). */ | |
.body { | |
background: #ffffff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# usage: ocrextract x where x is a pdf file will generate a text file containing x's text | |
convert -density 300 $1.pdf -depth 8 -alpha OFF $1.tiff | |
tesseract $1.tiff $1.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# raleigh: a stupid git wrapper | |
import subprocess, sys | |
try: | |
if sys.argv[1].lower() == "local": | |
name = raw_input("Name of commit: ") | |
subprocess.call("git add .", shell=True) | |
subprocess.call("git commit -m " + "'" + name + "'", shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# vision | |
import subprocess | |
output = subprocess.check_output( | |
["defaults", "read", "com.apple.finder", "AppleShowAllFiles"]) | |
if "NO" in output: | |
subprocess.call(["defaults", "write", "com.apple.finder", | |
"AppleShowAllFiles", "YES"]) |