Skip to content

Instantly share code, notes, and snippets.

View chalkpe's full-sized avatar
๐Ÿณ๏ธโ€๐ŸŒˆ

Seol Park chalkpe

๐Ÿณ๏ธโ€๐ŸŒˆ
  • Republic of Korea
View GitHub Profile
@chalkpe
chalkpe / README.md
Created March 21, 2025 11:53
์ด๋ฆ„ ๊ถํ•ฉ
import match from './name-match'
console.log([...match('๊ณ ๋“ฑ์–ด', '๊ฝ์น˜')])
[
  [ '๊ณ ', '๊ฝ', '๋“ฑ', '์น˜', '์–ด', '*' ],
  [ 4, 7, 5, 5, 3, 0 ],
 [ 1, 2, 0, 8, 3 ],
@chalkpe
chalkpe / main.ts
Last active January 24, 2025 15:17
is-odd
// example: deno run -A main.ts 52 10
import { decode } from 'https://deno.land/x/[email protected]/mod.ts'
import puppeteer from 'https://deno.land/x/[email protected]/mod.ts'
const isOdd = async (num: number) => {
const browser = await puppeteer.launch({
defaultViewport: { width: 1024, height: 1024 },
})
try {
๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡บ๐Ÿ‡ธ
๋œจ๊ฒ๊ฒŒ ๋ถˆํƒ€์˜ฌ๋ž๋˜ ๋งˆ์Œ Heart of ember, autumntide
์–ด๋А์ƒˆ ์‹๊ณ  ์žฆ์•„๋“ค์–ด Cooling swiftly, bleeding light
ํ•˜์ง€๋งŒ ๋•Œ๋ฅผ ๊ธฐ๋‹ค๋ ค Smold'ring softly, biding time
์›…ํฌ๋ฆฐ ์ฑ„ ๊ณ ๊ฐค ๋“ค์–ด Marching forward, left behind
๐Ÿ‡ฐ๐Ÿ‡ท ๐Ÿ‡บ๐Ÿ‡ธ
๊บผ์ ธ๊ฐ€๋Š” ์ƒ๋ช…์˜ ๋ถˆ๊ฝƒ Fire as shadows clash
awk -F, '{ gsub(/[" ]/, "", $2) } length($2) == 6 { print $2 }' Item.csv | uniq | sort > ffxiv-wordle.txt
@chalkpe
chalkpe / filter-best-parses.js
Last active August 5, 2021 16:15
filter best parses per job for FF Logs website
// ==UserScript==
// @name filter-best-parses
// @namespace https://gist.github.com/ChalkPE
// @version 1.0
// @description filter best parses per job for FF Logs website
// @match https://*.fflogs.com/*
// @run-at document-idle
// ==/UserScript==
(() => {
@chalkpe
chalkpe / amplify-commit-status-lambda.js
Last active July 9, 2021 13:50
Update AWS Amplify build statuses to connected GitHub repository via AWS Lambda + SNS
/**
* Required permissions:
* - GitHub PAT: `repo:status`
* - Function ARN: `amplify:GetApp`, `amplify:GetJob`
*/
const AWS = require('aws-sdk')
const { request } = require('https')
const { GITHUB_ACCESS_TOKEN } = process.env
@chalkpe
chalkpe / IPAddress.tsx
Last active May 17, 2021 10:05
React component for IP address w/ country flag emoji
import React from 'react';
import axios from 'axios';
import { countryCodeEmoji } from 'country-code-emoji';
type TextRenderer = (v: string) => React.ReactNode | string;
type SetCountry = React.Dispatch<React.SetStateAction<string>>;
type CountryEffect = (ip: string, setter: SetCountry) => void | (() => void);
interface IPAddressProps {
ip: string;
const mongoose = require('mongoose')
const User = mongoose.model('User', new mongoose.Schema({
name: String
}))
const Post = mongoose.model('Post', new mongoose.Schema({
title: String
}))
@chalkpe
chalkpe / LazyQRCode.tsx
Last active March 26, 2021 08:49
Lazy loaded version of `react-qr-code` npm package. Licensed under CC0.
import React from 'react';
import QRCode, { QRCodeProps } from 'react-qr-code';
interface LazyQRCodeProps extends QRCodeProps {
style?: React.CSSProperties;
children?: React.ReactNode;
}
export default ({ size, style, children, ...props }: LazyQRCodeProps) => {
const [loaded, setLoaded] = React.useState(false);
One brings shadow, one brings light

Two-toned echoes tumbling through time
์‹œ๊ฐ„์„ ๋”ฐ๋ผ ์ง„๋™ํ•˜๋Š” ๋‘ ์šธ๋ฆผ

Threescore wasted, ten cast aside
์•„๋ฌด๋Ÿฐ ์˜๋ฏธ ์—†์ด ๋ฒ„๋ ค์ง„ ์‹œ๊ฐ„

Four-fold knowing, no end in sight

๋์€ ๋„์ €ํžˆ ๋ณด์ด์ง€ ์•Š์•„