Skip to content

Instantly share code, notes, and snippets.

Avatar
🐔
CHICKEN TABETAI

Chalk ChalkPE

🐔
CHICKEN TABETAI
View GitHub Profile
View to-the-edge.md
View ng-quiz.js
arrQuizDetail.questions.map(q => new DOMParser().parseFromString(q.options.find(o =>
o.questionOptionId === q.chQuestionOptionId).content, 'text/html').body.textContent.trim())
View elf-knight-maker-downloader.js
const fs = require('fs')
const puppeteer = require('puppeteer-core')
const MAKER_ENDPOINT = `https://thtl1999.github.io/elf-knight-maker/`
const DATABASE_ENDPOINT = `https://www.db.yugioh-card.com/yugiohdb/card_search.action`
async function fetchCardsFromText (browser, text) {
const page = await browser.newPage()
await page.goto(MAKER_ENDPOINT, {waitUntil: 'networkidle0'})
await page.click('#reset-button')
View htd.js
const {join} = require('path')
const {readdir} = require('fs').promises
const id3 = require('node-id3')
const iconv = require('iconv-lite')
const songs = f => f.isFile() && f.name.endsWith('.mp3')
const albums = f => f.isDirectory() && f.name.startsWith('HTD')
const ls = iconv.skipDecodeWarning = p => readdir(p, {withFileTypes: true})
async function* patch (path) {
@ChalkPE
ChalkPE / e4s.txt
Created Apr 1, 2020
FFXIV Korean macros
View e4s.txt
 대지의 울림
    
    
━━━━━━━━━━━━━━━━━━━━━━━━━
 바퀴/완갑
 주황      
━━━━━━━━━━━━━━━━━━━━━━━━━
 바위폭탄
 : A→B
 : C→D
@ChalkPE
ChalkPE / act-cwls.sh
Last active Oct 11, 2019
ACT 로그에서 서버 초월 링크셸 대화를 하루씩 텍스트 파일로 추출해 주는 스크립트
View act-cwls.sh
#!/usr/bin/env bash
rm -rf ./cwls && awk -F\| '$1 == "00" && $3 == "0025" {
if (!dd[d="./cwls/" substr($2,0,4) "/" substr($2,6,2)]) { system("mkdir -p " d); dd[d] = 1; print d };
print gensub(/\x02[^\x03]+?\x03/, "", "g", "[" substr($2,12,8) "] <" $4 "> " $5) > d "/" substr($2,9,2) ".txt" }' "$@"
@ChalkPE
ChalkPE / FallenAngel.mml
Created Aug 8, 2019
FINAL FANTASY XIV - Fallen Angel (MML)
View FallenAngel.mml
/* (c) 2010 - 2019 SQUARE ENIX CO., LTD. All Rights Reserved. */
T150
D8A8G8A8 F8G8E8F8
D8A8G8A8 B-8A8G+8A8
B-8A8G8A8 F8G8E8F8
D8A8G8A8 B-8A&A8
View heal.md

문제

트위터 @hibiyasleep

풀이

수비 태세: 받는 회복마법의 효과가 20% 향상

ㄱ) 자애 -> 성소 -> 심판 -> 케알가 -> 신의 이름

자애: 자신의 회복마법 회복량이 20% 증가

View .antrc.json
{
"sources": [
{
"name": "Final Fantasy XIV",
"path": "/mnt/c/Users/amato/Documents/My Games/FINAL FANTASY XIV - KOREA/screenshots",
"rules": [
"ffxiv_[YYYY][MM][DD]_[HH][mm][ss].png",
"ffxiv_[YYYY][MM][DD]_[HH][mm][ss]_[SSS].png"
]
}, {
@ChalkPE
ChalkPE / .zshrc
Last active Mar 31, 2020
Windows Terminal + WSL Ubuntu + Oh My Zsh
View .zshrc
source /home/chalk/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle sudo
antigen bundle common-aliases
antigen bundle command-not-found
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle MichaelAquilina/zsh-you-should-use
You can’t perform that action at this time.