Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js.
| <?php | |
| require_once __DIR__.'/PrettierPHPFixer.php'; | |
| $finder = PhpCsFixer\Finder::create() | |
| ->exclude('somedir') | |
| ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php') | |
| ->in(__DIR__) | |
| ; |
Create React App does not provide watching build mode oficially (#1070).
This script provides watching build mode for an external tool such as Chrome Extensions or Firebase app.
Create a React app.
Put the script into scripts/watch.js.
| export function animationInterval(ms, signal, callback) { | |
| const start = document.timeline.currentTime; | |
| function frame(time) { | |
| if (signal.aborted) return; | |
| callback(time); | |
| scheduleFrame(time); | |
| } | |
| function scheduleFrame(time) { |
| #!/usr/bin/env bash | |
| # TODO: Need to figure out the settings for the following: | |
| # 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps) | |
| # 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone | |
| # 3) Login items for my user (i.e. apps started when I login) | |
| # 4) Retina displays scaling | |
| # 5) Finder sidebar with order | |
| ## |
Run the following in powershell as admin
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)
Open your distro you installed via the start menu, let it setup
Update and upgrade
sudo apt-get update
| #!/bin/bash | |
| # Install XCode Command Line Tools. | |
| xcode-select --install &> /dev/null | |
| # Wait until XCode Command Line Tools installation has finished. | |
| until $(xcode-select --print-path &> /dev/null); do | |
| sleep 5; | |
| done |
| Function | Shortcut |
|---|---|
| New Tab | β + T |
| Close Tab or Window | β + W (same as many mac apps) |
| Go to Tab | β + Number Key (ie: β2 is 2nd tab) |
| Go to Split Pane by Direction | β + Option + Arrow Key |
| Cycle iTerm Windows | β + backtick (true of all mac apps and works with desktops/mission control) |