- Space Mono (that's 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
| # First, set your Medium API token (from https://medium.com/me/settings/security if you do have one) | |
| TOKEN="your-medium-token" | |
| # 1. Get user ID | |
| echo "Getting user ID..." | |
| USER_INFO=$(curl -X GET "https://api.medium.com/v1/me" \ | |
| -H "Authorization: Bearer $TOKEN" \ | |
| -H "Content-Type: application/json" \ | |
| -H "Accept: application/json" \ | |
| -H "Accept-Charset: utf-8") |
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
| [ | |
| { | |
| "key": "alt+up", | |
| "command": "cursorMove", | |
| "when": "textInputFocus", | |
| "args": { | |
| "to": "up", | |
| "by": "line", | |
| "value": 2 | |
| } |
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 |