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
| using System; | |
| using System.Threading.Channels; | |
| using System.Threading.Tasks; | |
| namespace ChannelsAreCool | |
| { | |
| //Disclaimer : I didn't actually run this code so it might not quite work. | |
| //Feel free to complain or ask questions and i'll fix it. | |
| public static class Example | |
| { |
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
| [StructLayout(LayoutKind.Sequential)] | |
| public struct GbColor | |
| { | |
| public byte R; | |
| public byte G; | |
| public byte B; | |
| } | |
| private readonly GbColor[] _framebuffer = new GbColor[160 * 144]; |
| public class PostActionTransformation<T> : ISpecimenBuilderTransformation | |
| { | |
| private readonly List<ISpecimenCommand> _commands = new List<ISpecimenCommand>(); | |
| public ISpecimenBuilder Transform(ISpecimenBuilder builder) | |
| { | |
| return new Postprocessor( | |
| builder, | |
| new CompositeSpecimenCommand(_commands), | |
| new IsAssignableToTypeSpecification(typeof(T))); |
| license: mit |
| from itertools import permutations | |
| import math | |
| X = 'X' | |
| O = 'O' | |
| _ = ' ' | |
| def inter_value_differences(values): |
| const timing = store => next => action => { | |
| performance.mark(`${action.type}_start`); | |
| let result = next(action); | |
| performance.mark(`${action.type}_end`); | |
| performance.measure( | |
| `${action.type}`, | |
| `${action.type}_start`, | |
| `${action.type}_end` | |
| ); | |
| return result; |
| using System.Collections.Generic; | |
| using System.Linq; | |
| namespace AhoCorasickTree | |
| { | |
| public class AhoCorasickTree | |
| { | |
| internal AhoCorasickTreeNode Root { get; set; } | |
| public AhoCorasickTree(IEnumerable<string> keywords) |
A Pen by Chris Doble on CodePen.
import chunk from 'lodash-es/array/chunk';
import zipObject from 'lodash-es/array/zipObject';
console.log(zipObject(chunk(['a', 'b', 'c', 'd'], 2)));$ rollup -f=iife demo.js > output.js