- Space Mono (my favorite one)
- Fira Code (my second favorite one 😄)
- MonoLisa
- Inconsolata
- Apercu Mono
- Input Mono
- Gintronic
import React from 'react'; | |
import { StyleSheet, Text, TouchableOpacity, Linking } from 'react-native'; | |
interface PhoneLinkProps { | |
phoneNumber: string; | |
} | |
export const PhoneLink: React.FC<PhoneLinkProps> = ({ phoneNumber }) => { | |
const handlePress = () => { | |
Linking.openURL(`tel:${phoneNumber}`); |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
run '~/.tmux/plugins/tpm/tpm' |
/** | |
* A generic retry function (handy for various use cases). | |
*/ | |
const retry = async <T>(fn: () => Promise<T>, maxRetries = 3, delay = 1000): Promise<T> => { | |
let retries = 0; | |
while (retries < maxRetries) { | |
try { | |
return await fn(); | |
} catch (error) { |
Apple's iCloud isn't able to sync the Finder preferences. However, you can copy/paste the following two plist files to your new Mac.
Copy the following two files to your other Mac computer
~/Library/Preferences/com.apple.dock.plist
~/Library/Preferences/com.apple.finder.plist
syntax on |
First, make sure you have homebrew installed.
Then, in your terminal, run brew install postgresql@14.9
Login into psql postgres
You will need to have Python 2.7 (and not v3 to avoid incompatibilities with some libraries). To check what’s your default Python version, type python -V
in your terminal.
brew install pyenv
pyenv install 2.7.18
pyenv global 2.7.18 # set Python 2.7 as the global default one
TL;DR: require breaks one of the fundamental rules of robust software systems, fail early. In a nutshell, this is because, when using require, your code might yield different, erroneous results, without signalling an error. This is rare but not hypothetical! Consider this code, which yields different results depending on whether {dplyr} can be loaded:
On the other hand, require
does install the package if hasn’t been installed (whereas library
doesn’t).