26.11.2015, ttur@futurice.com
See https://github.com/jcjohnson/neural-style for information on what is neural-style
See www.spiceprogram.org/artcorn to see what I've done with it
See this file for the related commands and installation procedures
#!/usr/bin/env python3 | |
"""Generate data at constant rate (float interval). | |
To try, run: | |
$ python3 constant-bit-rate-modulo.py | pv >/dev/null | |
""" | |
from time import sleep, monotonic as timer |
import psutil | |
import json | |
import datetime | |
procs = [] | |
timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") | |
for proc in psutil.process_iter(): | |
try: | |
pinfo = proc.as_dict(attrs=['pid', 'name', 'cmdline']) |
26.11.2015, ttur@futurice.com
See https://github.com/jcjohnson/neural-style for information on what is neural-style
See www.spiceprogram.org/artcorn to see what I've done with it
See this file for the related commands and installation procedures
PImage img; | |
final static int[][] kernel = { | |
// { 6,10,0}, {10,0,-10}, {0,-10,-6} | |
{2,2,0},{2,0,-2},{0,-2,-2} | |
}; | |
int sample_size = 20; // points are chosen in grid sample_size x sample_size | |
int thr = 70; // edge threshold, lower - more point, higher - less |
_________ _____ _______________ _____
\_ ___ \\ \\___________ \____ / ____\ ~/.bash/cliref.md
/ \ \/| | | || _/ __ \ __\ copy/paste from whatisdb
\ \___|__ |_|_ || | \ __/|_ | http://pastebin.com/yGmGiDQX
\________ /_____ \_||____|_ /____ /_| yunga.palatino@gmail.com
20160515 \/ 1527 \/ \/ \/
alias CLIRef.txt='curl -s "http://pastebin.com/raw/yGmGiDQX" | less -i'
" Notes: | |
" (1) To enhance the ergonomics of this sufficiently to make it practical, at | |
" least, until your brain grows a new lobe dedicated to counting line offsets | |
" in the background while you work, you should either make sure you have | |
" something like the following in your `~/.vimrc`: | |
" | |
" set number | |
" if has('autocmd') | |
" augroup vimrc_linenumbering | |
" autocmd! |
define('ADMIN_COOKIE_PATH', '/'); | |
define('COOKIE_DOMAIN', ''); | |
define('COOKIEPATH', ''); | |
define('SITECOOKIEPATH', ''); |
// Since `overlapArea` function is monotonic increasing, we can perform a | |
// simple bisection search to find the distance that leads to an overlap | |
// area within epsilon of the desired overlap. | |
function distanceForOverlapArea(r1, r2, desiredOverlap) { | |
// Ensure r1 <= r2 | |
if (r1 > r2) { | |
var temp = r2; | |
r2 = r1; | |
r1 = temp; | |
} |