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
| brew install telnet | |
| telnet towel.blinkenlights.nl |
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 * as ReactNative from "react-native" | |
| import * as RNTL from "@testing-library/react-native" | |
| const formatCompleteOrPartialPhoneNumber = ( | |
| phoneNumberDigits: string, | |
| ): string => { | |
| if (phoneNumberDigits.length < 4) { | |
| return phoneNumberDigits | |
| } else if (phoneNumberDigits.length < 7) { |
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
| const ingredients = [ | |
| 'Absinthe', | |
| 'Agave Syrup', | |
| 'Amaretto Liqueur', | |
| 'Amaro Liqueur', | |
| 'Angostura Bitters', | |
| 'Aperol', | |
| 'Apple', | |
| 'Apple Brandy', | |
| 'Applejack', |
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 { | |
| AsyncStorage, | |
| FlatList, | |
| KeyboardAvoidingView, | |
| TextInput, | |
| TouchableOpacity, | |
| Vibration, | |
| View, | |
| } from "react-native" |
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
| $ heroku pg:backups:capture -a too-many-men-api | |
| $ heroku pg:backups:download -a too-many-men-api | |
| $ pg_restore -c -d too_many_men_api_development latest.dump |
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
| const injectedJavascript = [ | |
| "setTimeout(function() {", | |
| " const metaTag = document.createElement('meta');", | |
| " metaTag.setAttribute('name', 'viewport');", | |
| " metaTag.setAttribute('content', 'width=device-width, initial-scale=1');", | |
| " document.getElementsByTagName('head')[0].appendChild(metaTag);", | |
| " setTimeout(function() {", | |
| " const documentSize = { displayedMessageContentHeight: document.body.scrollHeight };", |
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 { useRef } from "react" | |
| const useRefsWithKeys = <T>(): { | |
| setRefForKey: (key: string) => (element: T) => void | |
| getRefForKey: (key: string) => T | |
| } => { | |
| const ref = useRef<Record<string, T>>({}) | |
| const setRefForKey = | |
| (key: string) => |
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
| module Main exposing (main) | |
| import Browser | |
| import Html exposing (..) | |
| type alias Model = | |
| {} | |
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
| module Lolcode exposing (main) | |
| import Browser | |
| import Html exposing (..) | |
| type alias Model = | |
| {} | |
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
| #!/usr/bin/env bash | |
| path=/Applications/Automator.app | |
| defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$path</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"; killall Dock |