Skip to content

Instantly share code, notes, and snippets.

View BasixKOR's full-sized avatar

Sung Jeon BasixKOR

View GitHub Profile
@BasixKOR
BasixKOR / KotlinPlugin.kt
Last active November 10, 2016 03:09
Help coding bukkit plugin with kotlin.
import org.bukkit.Bukkit
import org.bukkit.OfflinePlayer
import org.bukkit.plugin.java.JavaPlugin
import java.util.*
/**
* Created by Basix on 16. 2. 14.
* Help develop plugin with kotlin.
*
* @author Basix

Keybase proof

I hereby claim:

  • I am BasixKOR on github.
  • I am rtyu1120 (https://keybase.io/rtyu1120) on keybase.
  • I have a public key whose fingerprint is B810 72CB AA20 32E3 FB7D 64DD F42B A4DF 491B D740

To claim this, I am signing this object:

@BasixKOR
BasixKOR / global.json
Last active February 17, 2017 14:28
끄투 docker 설정 파일
{
"ADMIN": [ "basix" ],
"MAIN_PORTS": [ 8080 ],
"KKUTUHOT_PATH": "/kkutu/data/kkutuhot.json",
"PASS":"localmanagement01",
"PG_PASS": "localmanagement01",
"PG_HOST": "postgres",
"PG_PORT": 5432
}
@BasixKOR
BasixKOR / openpgp.txt
Created March 5, 2018 08:04
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:3299520451dc4225f4a11785db6898d20f92613c]
@BasixKOR
BasixKOR / openpgp.txt
Created March 9, 2018 09:53
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:3299520451dc4225f4a11785db6898d20f92613c]
@BasixKOR
BasixKOR / strings.xml
Created August 20, 2018 12:52
Tusky 번역 초안
<resources>
<string name="error_generic">오류가 발생했습니다.</string>
<string name="error_empty">이 칸은 비울 수 없습니다.</string>
<string name="error_invalid_domain">잘못된 도메인 입력됨</string>
<string name="error_failed_app_registration">인스턴스와 인증에 실패했습니다.</string>
<string name="error_no_web_browser_found">사용 가능한 웹 브라우저를 찾을 수 없습니다.</string>
<string name="error_authorization_unknown">알 수 없는 인증 오류가 발생했습니다.</string>
<string name="error_authorization_denied">인증이 거부되었습니다.</string>
<string name="error_retrieving_oauth_token">로그인 토큰을 가져오는 데 실패했습니다.</string>
@BasixKOR
BasixKOR / a.js
Created June 14, 2019 05:55
Azur Lane Wiki Parsing
[...document.querySelectorAll('table.wikitable.col-7-center td[style="background-color:PowderBlue"]')]
.map(e => `'${e.textContent.slice(0, -1)}': { small: ${e.nextElementSibling.textContent.slice(0, -1)}, medium: ${e.nextElementSibling.nextElementSibling.textContent.slice(0, -1)}, `
+ `large: ${e.nextElementSibling.nextElementSibling.nextElementSibling.textContent.slice(0, -1)}, boss: ${e.nextElementSibling.nextElementSibling.nextElementSibling.nextElementSibling.textContent.slice(0, -1)}}`)
// https://azurlane.koumakan.jp/Experience
@BasixKOR
BasixKOR / README.md
Last active November 28, 2019 06:56
CSV2JSON

This C code recieves a CSV data from stdin, and returns the result via stdout. You can pipe your data to put and extract both input and output.

Features

  • Supports automatic numberic conversion. (decimal only)
  • Supports real-time output right from stdout.

Limitations

  • Does not support double quoted items (therefore not RFC 4180 compatiable)
@BasixKOR
BasixKOR / styled.ts
Last active January 6, 2020 08:05
linaria styled patch for Preact
import { styled as original } from 'linaria/react'
import { JSX, ComponentType, FunctionComponent } from 'preact'
//
// Preact Types
// Literally copied from Preact source code.
// see https://github.com/preactjs/preact/blob/master/src/index.d.ts
// The MIT License (MIT), Copyright (c) 2015-present Jason Miller
// -----------------------------------
@BasixKOR
BasixKOR / README.md
Last active February 15, 2020 07:55
Handling codepage

Normalizing Codepage in Node.js

Only tested in CP-949.

Note

  • This will only work on the codepages below.
    • Windows codepages: 874, 1250-1258
    • IBM codepages: 437, 737, 775, 808, 850, 852, 855-858, 860-866, 869, 922, 1046, 1124, 1125, 1129, 1133, 1161-116
  • Multi-byte: 932, 936, 949, 950