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
| # .github/actions/build-engine/action.yml | |
| name: "" | |
| description: "Build the engine with a specific gclient setup and config name" | |
| inputs: | |
| gclient: | |
| description: "gclient name" | |
| required: false | |
| default: "" | |
| config_name: | |
| description: "name of a valid et config" |
| // MIT License | |
| // | |
| // Copyright (c) 2023 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| import 'dart:async'; | |
| import 'dart:isolate'; | |
| Future<R> compute<I, R>(R Function(I) f, I input, | |
| {String debugName = ''}) async { | |
| final resultPort = ReceivePort(); | |
| final args = _ComputeArgs<I, R>(resultPort.sendPort, f, input); | |
| final isolate = await Isolate.spawn<_ComputeArgs<I, R>>( | |
| _compute, | |
| args, |
| import 'package:flutter/material.dart'; | |
| class GoogleMapsClonePage extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return Scaffold( | |
| body: Stack( | |
| children: <Widget>[ | |
| CustomGoogleMap(), | |
| CustomHeader(), |
| # | |
| # Azure Pipelines | |
| trigger: | |
| batch: true | |
| name: $(Build.BuildId)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r) | |
| variables: | |
| - group: my-group-var |
| // MIT License | |
| // | |
| // Copyright (c) 2020 Simon Lightfoot | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |
| class Scrim extends StatelessWidget { | |
| final bool applied; | |
| final Widget child; | |
| final double opacity; | |
| final Duration speed; | |
| final Color color; | |
| const Scrim({ | |
| Key key, |
| /* | |
| This example uses the following packages: | |
| firebase_auth: 0.14.0+5 | |
| google_sign_in: 4.0.7 | |
| provider: 3.1.0+1 | |
| Make sure you have setup your project with Firebase by following these instructions: | |
| 1. Follow Option 1 instructions here up to Step 3 |
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
| func filterVideo(inputFilePath: String, outputFilePath: String, | |
| filterPath: String, callback: @escaping (Bool) -> Void) -> (Process, DispatchWorkItem)? { | |
| guard let launchPath = Bundle.main.path(forResource: "ffmpeg", ofType: "") else { | |
| return nil | |
| } | |
| let process = Process() | |
| let task = DispatchWorkItem { | |
| process.launchPath = launchPath | |
| process.arguments = [ | |
| "-y", |