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 decodeHtmlEntity = function (str: string) { | |
| return str.replace(/&#(\d+);/g, function (match: string, dec: number) { | |
| return String.fromCharCode(dec) | |
| }) | |
| } | |
| const encodeHtmlEntity = function (str: string) { | |
| const buf = [] | |
| for (let i = str.length - 1; i >= 0; i--) { | |
| buf.unshift(['&#', str.charCodeAt(i), ';'].join('')) |
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
| 🌞 Morning 104 commits ███▎░░░░░░░░░░░░░░░░░ 15.7% | |
| 🌆 Daytime 333 commits ██████████▌░░░░░░░░░░ 50.2% | |
| 🌃 Evening 169 commits █████▎░░░░░░░░░░░░░░░ 25.5% | |
| 🌙 Night 57 commits █▊░░░░░░░░░░░░░░░░░░░ 8.6% |
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 getValue = <T, U extends keyof T>(obj: T, key: U): T[U] => { | |
| return obj[key]; | |
| }; |
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
| name: node_actions_example | |
| on: push | |
| jobs: | |
| job_using_node: | |
| name: Using actions node | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 |
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 { LOTTO_COUNTS, LOTTO_NUMBERS_LIMIT, LOTTO_NUMBERS_START } from '../constants'; | |
| const template = document.createElement('template'); | |
| const makeWinningNumberInput = () => { | |
| const inputs = []; | |
| while (inputs.length < LOTTO_COUNTS) { | |
| const tagString = ` | |
| <input | |
| type="number" |
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
| [user] | |
| name = tolluset | |
| email = dlqud19@gmail.com | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true | |
| [credential] | |
| helper = osxkeychain |
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
| # .config/alacritty/alacritty.yml | |
| font: | |
| size: 11 | |
| normal: | |
| family: MesloLGS NF | |
| bold: | |
| family: MesloLGS NF | |
| italic: | |
| family: MesloLGS NF | |
| bold_italic: |
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
| package main | |
| import ( | |
| "bufio" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |