Find the pid of the running process if you don't know it:
$ ps ax | grep node
1012 ? Ssl 0:03 node /usr/bin/signalhub listen -p 8000In this case we're running a node program and it's pid is 1012
Find the pid of the running process if you don't know it:
$ ps ax | grep node
1012 ? Ssl 0:03 node /usr/bin/signalhub listen -p 8000In this case we're running a node program and it's pid is 1012
| // invert all colors on the page | |
| export default function invert() { | |
| let css = 'html {-webkit-filter: invert(100%);' + | |
| '-moz-filter: invert(100%);' + | |
| '-o-filter: invert(100%);' + | |
| '-ms-filter: invert(100%); }', | |
| head = document.getElementsByTagName('head')[0], | |
| style = document.createElement('style') | |
| if (!window.counter) { |
| import escodegen from 'escodegen' | |
| import esprima from 'esprima' | |
| import estraverse from 'estraverse' | |
| let src = '' | |
| process.stdin.on('data', function (chunk) { | |
| src += chunk | |
| }) |
| function createDiscreteProblem () { | |
| return { | |
| allAssignments: [ ], | |
| variables: { }, | |
| constraints: [ ] | |
| } | |
| } | |
| let level = require('./level.js') | |
| // given a tiled level that references a tileset of certain dimensions, update to a tileset of different dimensions | |
| let idx = -1 | |
| const locations = [ ] | |
| do { |
| brew install imagemagick | |
| mogrify -resize 50% -format png * |
| brew install ffmpeg --with-fdk-aac | |
| ffmpeg -i movie.avi movie.mp4 |
| ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 input.mp4 |
| # resize | |
| ffmpeg -i input.mp4 -vf scale=1920:1080 output.mp4 | |
| # resize with high quality | |
| ffmpeg -i input.mp4 -vf scale=1920:1080 -preset slow -crf 18 output.mp4 |