Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| import { renderHook, hookAct } from 'testUtils' | |
| import { useSearchParamsState } from './useSearchParamsState' | |
| import * as reactRouterDom from 'react-router-dom' | |
| describe('useSearchParamsState hook', () => { | |
| const key = 'testKey' | |
| const initialValue = 'initialValue' | |
| const newValue = 'newValue' | |
| it('should set and update state correctly', () => { |
| { | |
| // Place your settings in this file to overwrite the default settings | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.detectIndentation": true, | |
| "editor.lightbulb.enabled": true, | |
| "editor.fontFamily": "JetBrains Mono", | |
| "editor.fontLigatures": true, | |
| "editor.rulers": [100], | |
| "editor.snippetSuggestions": "inline", | |
| "editor.suggest.showKeywords": true, |
| const MongoClient = require("mongodb").MongoClient; | |
| const fs = require("fs"); | |
| const COLLECTION_NAME = "collection-name" | |
| const DB_NAME = "database-name"; | |
| const MONGO_URL = "mongodb+srv://connection-string"; | |
| const client = new MongoClient(MONGO_URL , { useUnifiedTopology: true }); | |
| client.connect(function (err) { |
| git branch --list 'o*' | xargs -r git branch -d |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
| Commit type | Emoji |
|---|---|
| Initial commit | 🎉 :tada: |
| Version tag | 🔖 :bookmark: |
| New feature | ✨ :sparkles: |
| Bugfix | 🐛 :bug: |
| $camphor300:'d09GMgABAAAAAQ5UABIAAAAEn0QAAQ3tAAEZmQAAAAAAAAAAAAAAAAAAAAAAAAAAG4SkahzOKgZgFotgAIosCCIJgnMRCAqLlgCKvTwBNgIkA5lwE4GnDguZdAAEIAW7bwcgDHJb0WS0WUXZkokWaBHx4wKbY7TigANIU/t980QCGzI/IkCsdbqJZwY1ZOgWDngIamw3I43435Dd+zJ1kNmKVp/DvXNAwaNm//////////////////+/NZkMZ5cAl0CpbZ3oiwloFA5GyIWNzOYVLt1bpXPX+pABI2fo5rMZpgVYIzYqgxt92ajECqUKh2G9gaOCVRC23VSRVypHfbvb7wYcwEM25WArF0esm1yKzDixrJRdcBGtcpBZTFbFbIl8LIU4gWOnEdSITqkoGrHWJ8ywn9eVFWWk3lC6m07qp1TXntHaWp6ekYHLrFoyzOXYiQnn2kWX2zqMaFBTca25vHKndPhJV66HRhQzL9lB3OT20KGTXuFHu62wm1qzoV/iTnaiLdc8o/D7B+1O94BrjSE3cia6U1A5XNp0kHmUj8IMBaeiGaiNJV7b1csb0bq8EWYo2h1TuipR+7hmYjxeZsonGLNcmgsKp5EUDCEj9SvRyxX2uMUNfINmfNqglBYNNtjtNmdwWV2ly4uQKheyDyka2RTRoQ3IEfs+0BNcGJ4Z5AnmHNpFbCKW5PsXkAzJ6VVzzVMo0fwIUpQQT67itTNRE946/NxDashl9KuAFUbZ6yW91vObh+WAMZ1mQ1J4wotF6KXHuo65X6wSz406hW/T6XZMf/6W+HGYUxCDfhyjPaoMGcWccmbYM/H35NdHTOd79Jg0ho/BDBvRy2vcg8pHsv07UYiKrDFeqzL0Qk7qCkXLuukl2EKuR3xS6VtsLEaT0BfWoDYoQ1YvEjjT729XNMYoCX3j+2ApedBG/UHLOJ7AAnfPSqdmmePsY+522MpfPaf7kf6fIJMn0/4SE6PmuI3yjyeGjWn+1qj/ukf09DE |
| $ docker-compose up -d # start containers in background | |
| $ docker-compose kill # stop containers | |
| $ docker-compose up -d --build # force rebuild of Dockerfiles | |
| $ docker-compose rm # remove stopped containers | |
| $ docker ps # see list of running containers | |
| $ docker exec -ti [NAME] bash # ssh to the container | |
| # list all images | |
| docker images |
| version: '3.3' | |
| services: | |
| # Wordpress | |
| wordpress: | |
| depends_on: | |
| - db | |
| image: wordpress | |
| restart: always |
| const copy = e => { | |
| // find target | |
| const clickTarget = e.target; | |
| const hasCopytarget = clickTarget.dataset.copytarget; | |
| const inputVal = hasCopytarget ? document.querySelector(hasCopytarget) : null; | |
| // Is element selectable? | |
| if (inputVal && inputVal.select) { | |
| // select text |