Skip to content

Instantly share code, notes, and snippets.

View ilsubyeega's full-sized avatar
🖕
Busy

ilsubyeega

🖕
Busy
View GitHub Profile
var p=3;
var i; // input
if (i==1) a++;
if (i==2) z++;
if (z==p){
a++;
z=0;
} else {
b++;
}
@ilsubyeega
ilsubyeega / localStorageStore.js
Created June 7, 2020 02:26 — forked from joshnuss/localStorageStore.js
LocalStorage store for Svelte.js
// Svelte store backed by window.localStorage
// Persists store's data locally
import {writable as internal, get} from 'svelte/store'
// wraps a regular writable store
export function writable(key, initialValue) {
// create an underlying store
const store = internal(initialValue)
const {subscribe, set} = store
// get the last value from localStorage
var enabled = false;
register("chat", function (name) {
ChatLib.say("/f accept " + ChatLib.removeFormatting(name).replace(/\[.+]/g, "").trim());
}).setCriteria("&r&eFriend request from &r${name}&r&9\n&r&a&l").setParameter("contains");
var apikey = Java.type("java.lang.System").getenv("HYPIXEL_API_KEY");
import {
request
} from '../requestV2';
// this is compiled color from osu-web
key: pink | base: 333
p: #ff0073
h1: #ff66ab
h2: #ac396d
c1: #ffffff
c2: #f0dbe4
l1: #e0b8ca
l2: #d9a6bd

Keybase proof

I hereby claim:

  • I am ilsubyeega on github.
  • I am ilsubyeega (https://keybase.io/ilsubyeega) on keybase.
  • I have a public key ASDc3hod9Lk0bK16_yrwEZkC_JnQsfzLjzP8mnIk5bLbGAo

To claim this, I am signing this object:

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

@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("서울교통공사_서울 도시철도 열차운행시각표", {
@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"

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

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

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

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) {