Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
-
Player Background Thumbnail (480x360):
| defaults delete com.apple.dt.Xcode | |
| rm -rf $HOME/Library/Application\ Support/Developer/Shared/Xcode | |
| rm -rf $HOME/Library/Saved\ Application\ State/com.apple.dt.Xcode.savedState | |
| rm -rf $HOME/Library/Preferences/com.apple.dt.Xcode.* |
| To enable agvtool in an Xcode project, follow these steps: | |
| Select your project and target: Open your Xcode project and select your project in the Project Navigator. Then, select the target you want to configure agvtool for. | |
| Access Build Settings: Go to the "Build Settings" tab for your selected target. | |
| Configure Versioning System: | |
| Configure Versioning System: | |
| - Search for "versioning" in the search bar. |
Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com//i.ytimg.comExamples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
Player Background Thumbnail (480x360):
| 1. make a new public on local host (generate public key under ~/.ssh) | |
| cd | |
| ssh-keygen -t rsa -b 1024 | |
| 2. copy the output of the following cat. | |
| cat ~/.ssh/id_rsa.pub | |
| 3. ssh to your aws ec2 and paste it to ~/.ssh/authorized_keys2 (a new file) |
| #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |
| i386 : iPhone Simulator | |
| x86_64 : iPhone Simulator | |
| arm64 : iPhone Simulator | |
| iPhone1,1 : iPhone | |
| iPhone1,2 : iPhone 3G | |
| iPhone2,1 : iPhone 3GS | |
| iPhone3,1 : iPhone 4 | |
| iPhone3,2 : iPhone 4 GSM Rev A | |
| iPhone3,3 : iPhone 4 CDMA | |
| iPhone4,1 : iPhone 4S |
| extension UIHostingController { | |
| convenience public init(rootView: Content, ignoreSafeArea: Bool) { | |
| self.init(rootView: rootView) | |
| if ignoreSafeArea { | |
| disableSafeArea() | |
| } | |
| } | |
| func disableSafeArea() { |
| import Foundation | |
| // Inspired by https://gist.github.com/mbuchetics/c9bc6c22033014aa0c550d3b4324411a | |
| struct JSONCodingKeys: CodingKey { | |
| var stringValue: String | |
| init?(stringValue: String) { | |
| self.stringValue = stringValue | |
| } |
| import React from 'react' | |
| /* | |
| * Higher order component that passes `getInitialProps` through | |
| * to the child component | |
| */ | |
| const HOC = function(Child) { | |
| return class Higher extends React.Component { | |
| static getInitialProps(ctx) { | |
| return Child.getInitialProps(ctx) |