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
| export class Enum { | |
| isObject (o) { | |
| return (!!o) && (o.constructor === Object); | |
| } | |
| isArray (a) { | |
| return (!!a) && (a.constructor === Array); | |
| } | |
| flipObject (o) { | |
| return Object.entries(o).reduce((obj, [key, value]) => ({ ...obj, [value]: key }), {}) | |
| } |
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
| #!/bin/bash | |
| echo "💣 XCODE EXTREME CLEANUP STARTING..." | |
| echo "🔪 Killing processes..." | |
| killall Xcode 2>/dev/null | |
| killall Simulator 2>/dev/null | |
| killall xcodebuild 2>/dev/null | |
| killall com.apple.CoreSimulator.CoreSimulatorService 2>/dev/null | |
| killall CoreDeviceService 2>/dev/null |
OlderNewer