Skip to content

Instantly share code, notes, and snippets.

View ilsubyeega's full-sized avatar

ilsubyeega

View GitHub Profile
<-- 3자리 .kr 도메인 희망여부 -->
아래 작성된 3자리 영어 문자열은 도메인 이름을 뜻합니다.
예) acu -> acu.kr
아래 작성된 도메인들은 2022-10-17 기준으로 등록되어 있지 않고, 3자리 도메인 도메인 중에서 특별히 유독 쓰기 좋아 보이는 도메인들은 적어두었습니다.
필자는 여기에는 없지만 format을 뜻하는 fmt.kr를 선점하였습니다.
열심히 사용하십쇼~
------------------------------
acu
aeo
aex
package win.roto.skriptmaintenance;
import ch.njol.skript.variables.SerializedVariable;
import ch.njol.skript.variables.Variables;
import ch.njol.skript.variables.VariablesStorage;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
@ilsubyeega
ilsubyeega / build.gradle.kts
Created July 16, 2022 15:20
This task imports the dependencies of this project and creates a property file at build
tasks.create("createProperties") {
dependsOn("processResources")
doLast {
val propertyFile = file("$buildDir/resources/mccore/versions.properties")
propertyFile.parentFile.mkdirs()
propertyFile.printWriter().use {
val property = Properties()
configurations.compileClasspath.get().allDependencies.forEach { dependency ->
property.setProperty("${dependency.group}:${dependency.name}", "${dependency.version}")
@ilsubyeega
ilsubyeega / trash.js
Last active June 15, 2022 15:59
Trash code: Spliiting every n texts from multiline string, but prefers that single sentence should be on single line
const splitEvery = (text, chars) => {
const resArr = [];
let temp = text;
while (temp.length > chars) {
resArr.push(temp.substr(0, chars))
temp = temp.substr(chars)
}
resArr.push(temp)
return resArr;
}
@ilsubyeega
ilsubyeega / new.html
Created June 4, 2022 14:09
Seamless audio web implementation
<body>
<button id="button" onclick="click()">Click</button>
</body>
<script>
fetch("./440Hz.wav")
.then(result => result.arrayBuffer())
.then(result => load(result));
const load = (buffer) => {
const original = (x) => (x - 1) * (x - 2) * (x - 3) * (x - 4)
const h = 1e-8
const prime = (f => x => (f(x + h) - f(x)) / h)(original)
let max = 100
let max_x = -1
for (let i = 0; i <= 10; i += 0.00005) {
const res = Math.abs(prime(i))
if (res < max) {

개발자방의 개발자들을 모집합니다 스크립트(Skript)와 같은 난해한 언어가 아닌 본격적인 프로그래밍 언어를 이용한 개발자들로 이루어진 서버입니다. 보통 구성원들은 마인크래프트라는 게임으로 시작하여서, 마인크래프트를 이용하여 개발중인 개발자분들도 환영합니다. 마인크래프트 계열 개발 경력이 5년 이상인 모드 및 플러그인 개발자들도 있습니다.

  • 코드 제시 및 자신의 GitHub 프로필 제시
  • 관리자들이 리뷰 후 확인합니다.

신청은 본 gist에 댓글을 남겨 주세요. 게시 후 일정 기간 이후 자동으로 삭제되며, 승인될 경우 깃헙과 연결된 메일 주소로 초대장을 보내 드립니다.

@ilsubyeega
ilsubyeega / final.kt
Last active February 19, 2022 13:47
meiling-prototype
import ng.meili.client.*;
val client = MeilingClient("https://internal.meiling.roto.win/")
val pkceChallenge = MeilingPKCEChallenge(Random().nextLong().toString())
val codecredbuilder = MeilingCodeCredentialBuilder("ab5e527f-2d11-4b93-b9ba-33081bc8eec5", listOf("openid", "email"), pkceChallenge)
val url = client.codeCredentialsUrl(codecredbuilder, "http://localhost:8080/callback");
val response_code = "xxxxxxxxxxx"
@ilsubyeega
ilsubyeega / datakr-client-prototype.ts
Last active January 28, 2022 03:21
datakr-client-prototype
import { Client } from '@datakr/client'
import AxiosDriver from '@datakr/axios-driver'
import { RequestData, MetroData } from '@datakr/data'
const serviceKey = "access_service_key";
const client = new Client();
client.driver = new AxiosDriver();
const result = await client.query(serviceKey, RequestData.from("서울교통공사_서울 도시철도 열차운행시각표", {

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example