sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
cd /path/to/project
yarn expo start
# Press "Shift + I" to select an iOS device ✅
# generate private key
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
# public (based on private key)
openssl rsa -pubout -in private_key.pem -out public_key.pem
Convert to base64 to be used in env variables
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
import axios from 'axios' | |
export const api = axios.create({ | |
baseURL: "http://localhost:3333", | |
withCredentials: true, | |
}) | |
if (env.VITE_ENABLE_API_DELAY) { | |
api.interceptors.request.use(async (config) => { | |
await new Promise((resolve) => |
chmod +x heroku_env_to_dotenv.sh
./heroku_env_to_dotenv.sh
chmod +x set_heroku_env.sh
./set_heroku_env.sh
Profile | download (kb/s) | upload (kb/s) | latency (ms) |
---|---|---|---|
Native | 0 | 0 | 0 |
GPRS | 50 | 20 | 500 |
56K Dial-up | 50 | 30 | 120 |
Mobile EDGE | 240 | 200 | 840 |
2G Regular | 250 | 50 | 300 |
2G Good | 450 | 150 | 150 |
3G Slow | 780 | 330 | 200 |
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
{"name":"Udemy Profile","settings":"{\"settings\":\"{\\n // Window\\n \\\"window.zoomLevel\\\": 1,\\n\\n // Editor\\n \\\"editor.cursorBlinking\\\": \\\"solid\\\",\\n \\\"editor.fontSize\\\": 14,\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true,\\n },\\n \\\"editor.detectIndentation\\\": true,\\n \\n // Workbench\\n \\\"workbench.editor.enablePreviewFromQuickOpen\\\": false,\\n \\\"workbench.editor.enablePreview\\\": false,\\n \\\"workbench.colorTheme\\\": \\\"Dracula\\\",\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n\\n // Git Project Manager\\n \\\"gitProjectManager.openInNewWindow\\\": true,\\n \\\"gitProjectManager.checkRemoteOrigin\\\": false,\\n \\\"gitProjectManager.maxDepthRecursion\\\": 1,\\n \\\"gitProjectManager.baseProjectsFolders\\\": [\\n \\\"~/Developer\\\"\\n ],\\n \\\"gitProjectManager.ignoredFolders\\\": [\\n \\\"node_m |
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
{"name":"Patrick's Profile","settings":"{\"settings\":\"{\\n // Workbench\\n \\\"workbench.startupEditor\\\": \\\"none\\\",\\n \\\"workbench.colorTheme\\\": \\\"Dracula\\\",\\n \\\"workbench.iconTheme\\\": \\\"material-icon-theme\\\",\\n \\\"workbench.editor.enablePreviewFromQuickOpen\\\": false,\\n \\\"workbench.editor.enablePreview\\\": false,\\n \\\"workbench.colorCustomizations\\\": {\\n \\\"statusBar.debuggingBackground\\\": \\\"#45C8FE\\\"\\n },\\n\\n // Editor\\n \\\"editor.cursorBlinking\\\": \\\"solid\\\",\\n \\\"editor.minimap.enabled\\\": false,\\n \\\"editor.wordWrap\\\": \\\"on\\\",\\n \\\"editor.rulers\\\": [\\n 120\\n ],\\n \\\"editor.fontSize\\\": 14,\\n \\\"editor.detectIndentation\\\": true,\\n \\\"editor.acceptSuggestionOnCommitCharacter\\\": false,\\n \\\"editor.codeActionsOnSave\\\": {\\n \\\"source.fixAll.eslint\\\": true,\\n },\\n \\\"editor.quickSuggestionsDelay\\\": 100,\\n \\\"editor.accessibilitySupp |
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
// =================== | |
// Typescript Exercises | |
// =================== | |
// Utility types: https://www.typescriptlang.org/docs/handbook/utility-types.html | |
// Reference: https://pokeapi.co/api/v2/pokemon?limit=10 | |
type Pokemon = unknown | |
const bulbasaur: unknown = { | |
name: 'bulbasaur', |
NewerOlder