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:
| /** | |
| * Provides requestAnimationFrame in a cross browser way. | |
| * @author paulirish / http://paulirish.com/ | |
| */ | |
| if ( !window.requestAnimationFrame ) { | |
| window.requestAnimationFrame = ( function() { | |
| return window.webkitRequestAnimationFrame || |
| <?php | |
| class iOSPNGNormalizer | |
| { | |
| public static function fix($filename, $destfilename = null) | |
| { | |
| try { | |
| $handle = fopen($filename, "rb"); | |
| $oldPNG = fread($handle, filesize($filename)); | |
| fclose($handle); |
| //Since http://devdocs.io/dom/urlutils.searchparams is not already bake! | |
| //the url to parse | |
| var url = "https://toto.com/truc/?param1=yo¶m2=toto&tutu=titi"; | |
| // Create a HTMLAnchorElement | |
| var a = document.createElement('a'); | |
| // Lazy dev let the browser do the hard job and parse the url | |
| a.href = url; |
| // ES6 tl;dr; for beginners | |
| // 1. variables | |
| // `const` & `let` are scoped at the block level | |
| if(true) { | |
| let foo = "bar" | |
| } | |
| foo // ReferenceError | |
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt| import { h, Component } from 'preact'; | |
| import Markup from 'preact-markup'; | |
| import register from './preact-custom-element'; | |
| // just a proxy component: WC -> Preact -> WC | |
| const A = () => <x-b foo="initial foo from <x-a>" />; | |
| // stateful component that can re-render | |
| class B extends Component { | |
| render(props, state) { |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
| Name | Stars | Last Commit | Description |
|---|---|---|---|
| three.js | ![GitHub |
A non-exhaustive list of tools for JavaScript development as it has become "complicated".
| Name: language | Stars | Last Commit | Owner/Sponsorship |
|---|---|---|---|
| tsc: JavaScript | Microsoft | ||
| [babel] |