- npm install apollo
- npx apollo schema:download schema.json --endpoint=https://localhost:1337/graphql
This file contains 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
echo [SHA1 hash in hex format] | xxd -r -p | openssl base64 |
This file contains 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
// | |
// TrimVideo.swift | |
// VideoLab | |
// | |
// Created by Adam Jensen on 3/28/15. | |
// Updated for Swift 5 (tested with Xcode 10.3) on 7/30/19. | |
// MIT license | |
// | |
import AVFoundation |
This file contains 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
keytool -printcert -jarfile [path/to/file.apk] |
This file contains 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 aab file to apks file | |
bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks | |
--ks=/MyApp/keystore.jks | |
--ks-pass=file:/MyApp/keystore.pwd | |
--ks-key-alias=MyKeyAlias | |
--key-pass=file:/MyApp/key.pwd | |
// Install apks file | |
bundletool install-apks --apks=/MyApp/my_app.apks |
This file contains 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
// ❓ Chuyện gì xảy ra nếu giữa chừng token bị expired? | |
// Ví dụ: 3 api requests đồng thời với nhau | |
// TRƯỜNG HỢP 1: Token chưa expired, vẫn còn tốt chán 🤣 | |
// --request 1--> | |
// --request 2--> | |
// --request 3--> | |
This file contains 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
1. dscacheutil -flushcache | |
2. sudo killall -HUP mDNSResponder |
This file contains 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
By commandline: | |
keytool -list -v -keystore {keystore_name} -alias {alias_name} | |
By Android Studio: | |
1. Run your project | |
2. Click on Gradle menu | |
3. Expand Gradle Tasks tree | |
4. Double click on android -> signingReport and see the magic | |
5. It will tell you everything on the Run tab |
This file contains 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
private func animationGroup(animations:[CAAnimation])->CAAnimationGroup{ | |
let keyframe = CAAnimationGroup() | |
keyframe.animations = animations | |
keyframe.duration = 0.7 | |
keyframe.repeatCount = 0 | |
keyframe.delegate = self | |
return keyframe | |
} | |
private func move(fromValue:CGFloat, toValue:CGFloat)->CABasicAnimation{ |
This file contains 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
While developing your app, if sometime you don't see the push notification when the app is killed, you must close your app, then let's open again by tap on the app's icon on the Launcher. | |
Then close it by swipe off. You will see the magic. |
NewerOlder