Thunkify rethinkdb
To be used with co and/or koa.
So that we can do something like:
var r = require('rethunkdb') // not a typo, might use other name if too close :)
tar cvf - website/ | gzip -9 - >~/website.tar.gz |
sudo find . -type f -name '*.gz' | xargs rm |
#go to bash | |
soffice.exe --headless --convert-to pdf *.ppt |
gs -sDEVICE=tiffgray -dNOPAUSE -r300 -sOutputFile="o-%04d.tiff" ./ttnt.pdf -c quit | |
for i in *.tif ; do tesseract $i $i -l vie -psm 1 ; done | |
mkdir done | |
for i in *.tiff;do if [ -f $i.txt ];then mv $i.txt done/;mv $i done/;fi;done | |
gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -r300 -sOutputFile="o-%04d.jpeg" ./ttnt.pdf -q -c quit | |
for i in done/*.txt; do j="`basename -s .tiff.txt $i`.jpeg";if [ -f $j ];then rm -f $j;fi; done | |
for i in *.jpeg ; do tesseract $i $i -l vie; done | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-git2.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="box">Hello</div> | |
<script id="jsbin-javascript"> |
var Pen = function(position){ | |
this.position = position; | |
} | |
Pen.prototype.move = function(toPostition){ | |
this.position = position | |
} | |
Pen.prototype.select = function(select){ | |
this.select = select; | |
} | |
Pen.prototype.toJSON = function(){ |
# From https://scotch.io/bar-talk/best-of-atom-features-plugins-acting-like-sublime-text | |
apm install simple-drag-drop-text git-plus tortoise-svn vim-mode merge-conflicts color-picker emmet docblockr pigments linter autocomplete-modules auto-update-packages file-icons minimap project-manager | |
apm install browser-plus terminal-plus git-time-machine expand-selection-to-quotes grammar-token-limit swackets recent-files-fuzzy-finder tree-view-git-status | |
apm install react tortoise-svn atom-beautify autoclose-html | |
apm list --installed --bare > package-list.txt | |
apm install --packages-file package-list.txt |
/* | |
* This is a simple HTTP data generator for testing. | |
* | |
*/ | |
var http = require('http'); | |
var counter = 0; | |
http.createServer(function (req, res) { | |
var start = new Date(); |