- Space Mono (my favorite one)
- Fira Code (my second favorite one 😄)
- MonoLisa
- Inconsolata
- Apercu Mono
- Input Mono
- Gintronic
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
/** | |
* (c) 2024 Pierre-Henry Soria. | |
*/ | |
import { StyleSheet, View, ViewStyle, DimensionValue } from 'react-native'; | |
type LineBreakProps = { | |
width?: DimensionValue; | |
color?: string; | |
style?: ViewStyle; | |
}; |
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
[ | |
{ | |
"key": "alt+up", | |
"command": "cursorMove", | |
"when": "textInputFocus", | |
"args": { | |
"to": "up", | |
"by": "line", | |
"value": 2 | |
} |
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 { 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 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 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 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 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 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 |
NewerOlder