Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
// options | |
String imagePath = "img/desandro-avatar.jpg"; | |
float res = 10; // resolution, dot density | |
float zoom = 3.0; // proportion to zoom image | |
boolean isAdditive = true; // true = RGB, false = CMY | |
float offsetAngle = 1; // affects dot pattern | |
/* | |
0 = no patter | |
0.05 = slight offset | |
1 = slight offset |
{ | |
"cmd": ["haml"], | |
"working_dir": "${file_path:${folder}}", | |
"selector": "source.haml", | |
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$", | |
"windows": | |
{ | |
"cmd": ["haml", "--trace", "$file", "${file_base_name}.html"], | |
"shell": "true" |
{ | |
"cmd": ["sass", "--update", "$file:${file_path}/${file_base_name}.css"], | |
"selector": "source.sass", | |
"line_regex": "Line ([0-9]+):", | |
"osx": | |
{ | |
"path": "/usr/local/bin:$PATH" | |
}, |
// Q sample by Jeff Cogswell | |
/*=========== | |
We want to call these three functions in sequence, one after the other: | |
First we want to call one, which initiates an ajax call. Once that | |
ajax call is complete, we want to call two. Once two's ajax call is | |
complete, we want to call three. | |
BUT, we don't want to just call our three functions in sequence, as this quick |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
const LIM = 41 | |
var facts [LIM]uint64 |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)