jq is useful to slice, filter, map and transform structured json data.
brew install jq
| /* | |
| * I've used blessed to create a textbox at the bottom line in the screen. | |
| * The rest of the screen is the 'body' where your code output will be added. | |
| * This way, when you type input, your program won't muddle it with output. | |
| * | |
| * To try this code: | |
| * - $ npm install blessed --save | |
| * - $ node screen.js | |
| * | |
| * Key points here are: |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import wave | |
| import sys | |
| import math | |
| import contextlib | |
| fname = 'test.wav' | |
| outname = 'filtered.wav' |
I tried a few different techniques to make a GIF via command-line and the following gives me the best control of quality and size. Once you're all setup, you'll be pumping out GIFs in no time!
Install FFmpeg
Install ImageMagick
| function encrypt(text){ | |
| var cipher = crypto.createCipher('aes-256-cbc','d6F3Efeq') | |
| var crypted = cipher.update(text,'utf8','hex') | |
| crypted += cipher.final('hex'); | |
| return crypted; | |
| } | |
| function decrypt(text){ | |
| var decipher = crypto.createDecipher('aes-256-cbc','d6F3Efeq') | |
| var dec = decipher.update(text,'hex','utf8') |