- Remove Main.storyboard file
- Remove Main interface in Deployment Info
- Remove
UISceneStoryboardFile
key in Info.plist
UISceneStoryboardFile
'use strict'; | |
function App(props) { | |
return <h1>Hello, world!</h1> | |
} | |
ReactDOM.render(<App />, document.querySelector('#root')); |
#!/bin/sh | |
gh api gists | jq -r '.[] | select(.public == true) | .files[].raw_url' | while read -r row ; do | |
curl -sO "$row" | |
done |
let promiseA = new Promise((resolve) => { | |
const timeout = 100 + Math.floor(Math.random() * 1900) | |
setTimeout(() => resolve('A'), timeout); | |
console.log('A timeout', timeout) | |
}) | |
let promiseB = new Promise((resolve) => { | |
const timeout = 100 + Math.floor(Math.random() * 1900) | |
setTimeout(() => resolve('B'), timeout); | |
console.log('B timeout', timeout) |
package main | |
import "log" | |
func main() { | |
result := combineAndKeepOrder([]string{"a", "b", "c"}, []string{"c", "a", "d"}) | |
log.Println(result, testEq(result, []string{"c", "b", "a", "d"})) | |
result = combineAndKeepOrder([]string{}, []string{"c", "a", "d"}) | |
log.Println(result, testEq(result, []string{"c", "a", "d"})) |
# add
sudo ifconfig lo0 alias 127.0.0.2
# revert
sudo ifconfig lo0 -alias 127.0.0.2
example.tf
provider "aws" {
profile = "default"
region = "us-east-1"
}
How to Completely Remove Android Studio | |
Execute these commands from the terminal | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* |
class Person: | |
def __init__(self): | |
pass | |
def _single(self): | |
print "single" | |
def __double(self): | |
print "double" |