View alacritty.yml
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
# .config/alacritty/alacritty.yml | |
font: | |
size: 11 | |
normal: | |
family: MesloLGS NF | |
bold: | |
family: MesloLGS NF | |
italic: | |
family: MesloLGS NF | |
bold_italic: |
View .gitconfig
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
[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 |
View winningNumbers.js
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 { 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" |
View actions.yaml
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
name: node_actions_example | |
on: push | |
jobs: | |
job_using_node: | |
name: Using actions node | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
View getValue.ts
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
const getValue = <T, U extends keyof T>(obj: T, key: U): T[U] => { | |
return obj[key]; | |
}; |
View I'm an early 🐤
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
🌞 Morning 104 commits ███▎░░░░░░░░░░░░░░░░░ 15.7% | |
🌆 Daytime 333 commits ██████████▌░░░░░░░░░░ 50.2% | |
🌃 Evening 169 commits █████▎░░░░░░░░░░░░░░░ 25.5% | |
🌙 Night 57 commits █▊░░░░░░░░░░░░░░░░░░░ 8.6% |
View decoder.ts
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
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('')) |