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
| Title: Senior Engineer Task Execution Rule | |
| Applies to: All Tasks | |
| Rule: | |
| You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception: | |
| 1.Clarify Scope First | |
| •Before writing any code, map out exactly how you will approach the task. | |
| •Confirm your interpretation of the objective. |
| import 'package:flutter/material.dart'; | |
| class FigmaCompatibilityForBottomSheet extends StatelessWidget { | |
| const FigmaCompatibilityForBottomSheet({required this.child, super.key}); | |
| final Widget child; | |
| @override | |
| Widget build(BuildContext context) { | |
| final mq = MediaQuery.of(context); |
| import SwiftUI | |
| extension View { | |
| /// Proposes a percentage of its received proposed size to `self`. | |
| /// | |
| /// This modifier multiplies the proposed size it receives from its parent | |
| /// with the given factors for width and height. | |
| /// | |
| /// If the parent proposes `nil` or `.infinity` to us in any dimension, | |
| /// we’ll forward these values to our child view unchanged. |
| import Combine | |
| import PublishedObject // https://github.com/Amzd/PublishedObject | |
| import SwiftUI | |
| /// A property wrapper type that instantiates an observable object. | |
| @propertyWrapper | |
| public struct StateObject<ObjectType: ObservableObject>: DynamicProperty | |
| where ObjectType.ObjectWillChangePublisher == ObservableObjectPublisher { | |
| /// Wrapper that helps with initialising without actually having an ObservableObject yet |
| // | |
| // udpsocket.swift | |
| // | |
| // Created by Richard Wei on 3/7/21. | |
| // | |
| import Foundation | |
| import Network | |
| // https://developer.apple.com/news/?id=0oi77447 |
| import 'package:flutter/material.dart'; | |
| void main() | |
| { | |
| final TextEditingController _controller = new TextEditingController(); | |
| var items = ['Working a lot harder', 'Being a lot smarter', 'Being a self-starter', 'Placed in charge of trading charter']; | |
| runApp( | |
| new MaterialApp( | |
| title: 'Drop List Example', | |
| home: new Scaffold( |
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
| import Dispatch | |
| /* | |
| Note: Thanks, Ian Keen and Zev Eisenberg and Sven Weidauer | |
| Zev Eisenberg: "Do you still have to specify 1 << _n_ manually for `OptionSet` conformance? There’s no magic?" | |
| This solution creates values that don't matter. They're simply unique, since option sets should not be accessed by raw value outside the implementation. (Versus direct `UInt`, which supports bit manipulation operations) | |
| */ |
| func switchRootViewController(rootViewController: UIViewController, animated: Bool, completion: (() -> Void)?) { | |
| if animated { | |
| UIView.transitionWithView(window, duration: 0.5, options: .TransitionCrossDissolve, animations: { | |
| let oldState: Bool = UIView.areAnimationsEnabled() | |
| UIView.setAnimationsEnabled(false) | |
| self.window!.rootViewController = rootViewController | |
| UIView.setAnimationsEnabled(oldState) | |
| }, completion: { (finished: Bool) -> () in | |
| if completion { | |
| completion!() |