Skip to content

Instantly share code, notes, and snippets.

View chalkpe's full-sized avatar
🏳️‍🌈

Seol Park chalkpe

🏳️‍🌈
  • Republic of Korea
View GitHub Profile
awk -F, '{ gsub(/[" ]/, "", $2) } length($2) == 6 { print $2 }' Item.csv | uniq | sort > ffxiv-wordle.txt
{
"sources": [
{
"name": "Final Fantasy XIV",
"path": "/mnt/c/Users/user/Documents/My Games/FINAL FANTASY XIV - KOREA/screenshots",
"rule": "ffxiv_[YYYY][MM][DD]_[HH][mm][ss]_[SSS].png"
},
{
"name": "Final Fantasy XIV - Global",
"path": "/mnt/c/Users/user/Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/screenshots",
@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/pngs@0.1.1/mod.ts'
import puppeteer from 'https://deno.land/x/puppeteer_plus@0.24.0/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
@chalkpe
chalkpe / calculate.kt
Created April 1, 2018 12:37
코틀린으로 사칙연산
import java.math.BigDecimal
import java.math.MathContext
fun main (args: Array<String>) {
println(calculate("0" + readLine()))
}
val operators: Map<Char, (BigDecimal, BigDecimal) -> BigDecimal> = sortedMapOf(
'+' to { a, b -> a.add(b) },
'-' to { a, b -> a.minus(b) },
@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 / 0-ffxiv.md
Last active August 1, 2021 02:25
초코보/초크

칭호

  • 궁극의 전설

종족 / 부족 / 성별

  • 라라펠 / 사막 부족 / ♂
  • 미코테 / 태양의 추종자 / ♂

총사령부

  • 불멸대 대위
@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;