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
| // Run any SwiftUI view as a Mac app. | |
| // Based on https://gist.github.com/chriseidhof/26768f0b63fa3cdf8b46821e099df5ff | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack(spacing: 0) { | |
| Rectangle().fill(Color.green) | |
| Rectangle().fill(Color.yellow) |
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| // WHO Reports: https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports | |
| // Inspired by: https://twitter.com/paulg/status/1235247452145451013 | |
| // Note: The growth rate does not seem sustainable. | |
| // The projected OoC infections assumes a constant doubling of roughly every 4 days. | |
| Date Projected-OoC-Infections WHO-Reported-OoC-Infections | |
| 2020-02-29 5,629 6,009 | |
| 2020-03-01 6,755 7,169 | |
| 2020-03-02 8,106 8,774 | |
| 2020-03-03 9,727 10,565 | |
| 2020-03-04 11,673 12,669 |
| #!/usr/bin/env xcrun -sdk macosx swift | |
| // Displays UI in an NSWindow which can interact with the commandline | |
| // Usage: `echo "Bar" | ./swift-ui-commandline-tool.swift` | |
| import Foundation | |
| import SwiftUI | |
| extension CommandLine { | |
| static let input: String = { AnyIterator { readLine() }.joined() }() |
| <!doctype html> | |
| <meta charset=utf-8> | |
| <meta name=viewport content=width=device-width,initial-scale=1> | |
| <style> | |
| * { | |
| line-height: 1.1; | |
| word-wrap: break-word; | |
| } | |
| body { | |
| font: 16px Georgia, serif; |
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
Download the following repositories and run yarn install in each:
| ; Disassembly of roms/Freeway (1981) (Activision).a26 | |
| ; Disassembled Thu Oct 19 22:17:47 2017 | |
| ; Using DiStella v3.01a | |
| ; | |
| ; Command Line: ./binaries/osx/distella -pafs roms/Freeway (1981) (Activision).a26 | |
| ; | |
| processor 6502 | |
| VSYNC = $00 | |
| VBLANK = $01 |
npm install -g create-react-appDisclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would