- Space Mono (my favorite one!)
- Fira Code (my second favorite one π)
- MonoLisa (paid, balanced design).
- Inconsolata (classic, free).
- Apercu Mono (quirky, modern).
- Input Mono (customisable, developer-friendly).
- Gintronic (distinctive, playful).
- Operator Mono (paid, elegant italics).
This file contains hidden or 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 { Client } from 'pg'; | |
| import { PineconeClient } from '@pinecone-database/pinecone'; | |
| import Replicate from 'replicate'; | |
| // Initialize clients | |
| const neonClient = new Client({ | |
| connectionString: 'your_neon_connection_string' | |
| }); | |
| const pinecone = new PineconeClient(); |
This file contains hidden or 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 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}`); |
This file contains hidden or 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
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| run '~/.tmux/plugins/tpm/tpm' |
This file contains hidden or 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 { useEffect, useCallback } from 'react'; | |
| interface LeaveBrowserWarningProps { | |
| shouldWarn: boolean; | |
| } | |
| /** | |
| * Component that displays a warning message when the user attempts to leave the page. | |
| * @param {LeaveBrowserWarningProps} props - The component props | |
| * @returns {null} |
This file contains hidden or 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
| /** | |
| * 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
This file contains hidden or 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
| syntax on |
First, make sure you have homebrew installed.
Then, in your terminal, run brew install [email protected]
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