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"
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) {
@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) => {