This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Open https://developer.apple.com/download/more/ | |
| # Login with your app store credentials | |
| # Open chrome dev tools -> Network | |
| # Tap download xcode link | |
| # On network pane right click on dl request -> Copy as cURL | |
| # Run this script as $: dlcmd="Paste curl cmd from clipboard" output="xcode.xip" ./xcodedl.sh | |
| ec=18 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const ITERATIONS = 10000000; | |
| const ERROR = new Error('Test error'); | |
| function tryCatcher(fn, ctx, args) { | |
| try { | |
| return fn.apply(ctx, args); | |
| } | |
| catch(err) { |