A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
// initialize axios instance | |
let spotify = axios.create({ | |
baseURL: 'https://api.spotify.com', | |
headers: { | |
'Authorization': `Bearer ${token}` | |
} | |
}) | |
// get user id for playlist creation | |
spotify.get('/v1/me').then(res => { |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
{ | |
"name": "workshop-setup", | |
"version": "1.0.0", | |
"description": "This is the common setup script for most of my workshops", | |
"bin": "./setup.js" | |
} |
Title: | |
Incident date: | |
Owner: | |
Peer-review committee: | |
Tags: | |
Summary: | |
Supporting data: | |
Customer Impact: | |
Incident Response Analysis: | |
Post-Incident Analysis: |
const fs = require('fs') | |
const data = require('./track.json') | |
let duration = data.track.duration | |
let segments = data.segments.map(segment => { | |
return { | |
start: segment.start / duration, | |
duration: segment.duration / duration, | |
loudness: 1 - (Math.min(Math.max(segment.loudness_max, -35), 0) / -35) |
_APP_ENV=production | |
_APP_LOCALE=en | |
_APP_OPTIONS_ABUSE=enabled | |
_APP_OPTIONS_FORCE_HTTPS=disabled | |
_APP_OPENSSL_KEY_V1=your-secret-key | |
_APP_DOMAIN=localhost | |
_APP_DOMAIN_TARGET=localhost | |
_APP_CONSOLE_WHITELIST_ROOT=enabled | |
_APP_CONSOLE_WHITELIST_EMAILS= | |
_APP_CONSOLE_WHITELIST_IPS= |
#include <complex> | |
#include <iostream> | |
int main() { | |
const size_t limit = 1000, size = 400; // change 'size' to make it more detailed | |
const char letters[] = " 123456789abcdefghijklmnopqrstuvwxyz*"; | |
for (size_t iy = 0; iy <= size; iy++) { | |
for (size_t ix = 0, count = 0; ix <= size; ix++, count = 0) { | |
std::complex<double> c(-2.0+ix*2.5/size, 1.15-iy*2.3/size), z(0.0, 0.0); | |
while (std::norm(z) < 4.0 && count++ < limit) z = z*z+c; | |
std::cout << ((count >= limit) ? letters[0] : letters[std::min(count, sizeof(letters)-2)]); |
// code updates are now there: | |
// https://github.com/Bleuje/processing-animations-code/blob/main/code/hilbertcurvetransforms/hilbertcurvetransforms.pde | |
// Processing code by Etienne JACOB | |
// motion blur template by beesandbombs | |
// CC BY-SA 3.0 license because it's using code from Wikipedia | |
// View the rendered result at: https://bleuje.com/gifanimationsite/single/hilbertcurvetransforms/ | |
int[][] result; | |
float t, c; |