I hereby claim:
- I am vfedyk on github.
 - I am vfedyk (https://keybase.io/vfedyk) on keybase.
 - I have a public key ASDgBtnijOxJtOaDYCsMhN_elmoKOKh5Ul9viSVEt77NhQo
 
To claim this, I am signing this object:
| const parseViewsCount = (viewsCountLine) => { | |
| const viewsNumberText = viewsCountLine.split(' ')[0] | |
| if (viewsNumberText.includes('K')) { | |
| return Number(viewsNumberText.split('K')[0]) * 1000 | |
| } | |
| if (viewsNumberText.includes('M')) { | |
| return Number(viewsNumberText.split('M')[0]) * 1000000 | |
| } | 
| { | |
| "title": "Letters replacements for Ukrainian layout", | |
| "rules": [ | |
| { | |
| "description": "Change grave accent (`) to \\ in Ukrainian layout", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "type": "input_source_if", | 
| Літера | Технічні тексти, частота | Технічні тексти, дисперсія | Вірші, частота | Вірші, дисперсія | Гуманітарні тексти, частота | Гуманітарні тексти, дисперсія | |
|---|---|---|---|---|---|---|---|
| а | 0.0709 | 2.350E-05 | 0.0871 | 1.564E-04 | 0.0840 | 2.870E-05 | |
| б | 0.0136 | 1.092E-05 | 0.0211 | 6.685E-08 | 0.0183 | 4.918E-06 | |
| в | 0.0533 | 2.066E-05 | 0.0468 | 1.573E-05 | 0.0604 | 9.286E-05 | |
| г | 0.0142 | 7.898E-06 | 0.0150 | 1.450E-05 | 0.0173 | 2.897E-06 | |
| д | 0.0350 | 3.305E-05 | 0.0332 | 9.669E-07 | 0.0332 | 3.025E-06 | |
| е | 0.0458 | 7.780E-05 | 0.0544 | 3.143E-07 | 0.0483 | 3.821E-05 | |
| ж | 0.0066 | 2.227E-06 | 0.0108 | 1.457E-06 | 0.0106 | 3.962E-06 | |
| з | 0.0238 | 2.096E-05 | 0.0220 | 3.176E-06 | 0.0239 | 7.000E-06 | |
| и | 0.0613 | 3.346E-05 | 0.0633 | 3.170E-05 | 0.0632 | 9.140E-07 | 
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| echo "Renaming files..." | |
| mkdir renamed | |
| counter=1 | |
| ls -1tr *.JPG | while read filename; do cp $filename renamed/$(printf %05d $counter)_$filename; ((counter++)); done | |
| echo "Resizing ${counter} files..." | |
| mkdir resized | |
| mogrify -path resized -resize 1920x1080! -verbose renamed/*.JPG | 
| from PIL import Image | |
| im = Image.new('RGB', (800, 800), (0, 0, 0)) | |
| def line(ap, bp, color): | |
| # (10 - 50) / ( 100 - 20) = -40 / 80 = -0.5 | |
| # (50 - 10) / (80 - 100) = 40 / -20 = -2 | |
| # (110 - 10) / (20 - 20) | |
| angle_mul = float(bp[1] - ap[1]) / float(bp[0] - ap[0]) if bp[0] is not ap[0] else 0 | 
| function executeOnce(func) { | |
| var executed = false; | |
| return function() { | |
| // console.log('callback arguments', arguments); | |
| // console.log('executed', executed); | |
| if (!executed) { | |
| executed = !executed; | |
| return func.apply(null, arguments); | |
| } | 
| require 'hornetseye_v4l2' | |
| require 'hornetseye_xorg' | |
| require 'hornetseye_rmagick' | |
| include Hornetseye | |
| input = V4L2Input.new '/dev/video0' | |
| img = input.read | |
| filename = Time.now.strftime '%Y-%m-%d %H:%M:%S' | |
| img.to_ubytergb.save_ubytergb "#{filename}.png" | 
| #!/bin/bash | |
| # | |
| # Display usage info | |
| vhost-usage() { | |
| cat <<"USAGE" | |
| Usage: vhost [OPTIONS] <name> | |
| -h|--help this screen | |
| -pub to create the webhost root in ~/www/name/public/ | |
| -url to specify a local address, default is http://name.local |