Skip to content

Instantly share code, notes, and snippets.

View No-Eul's full-sized avatar
🍊
Hehe :3

NoEul No-Eul

🍊
Hehe :3
View GitHub Profile
function setPreciseTimeout(callback, delay = 0) {
let url = URL.createObjectURL(new Blob([`
let start = Date.now();
while (true) {
if (Date.now() - start > ${delay}) {
postMessage(undefined);
break;
}
}
`], {type: "text/javascript"}));
"return"
(!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[!![]+!![]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]
// using function - normal
"fill"
(![]+[])[+[]]+([][[]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]
"constructor"
([][(![]+[])[+[]]+([][[]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]]+[])[!![]+!![]+!![]]+([][(![]+[])[+[]]+([][[]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]]+[])[!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+(!![]+[])[!![]+!![]]+([][(![]+[])[+[]]+([][[]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+([][[]]+[])[!![]+!![]+!![]+!![]+!![]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]]+[])[!![]+!![]+!![]+!![]+!![]+!![]]+(!![]+[])[+!![]]
function find(object, predicate, excludes, thresholdDepth) {
let result = new Map;
function find0(path, object, result, depth) {
if (depth >= thresholdDepth) return;
for (let key of Object.getOwnPropertyNames(object)) {
let value, childPath = [...path, key];
try {
value = object[key];
} catch (key) {
return;
<div style="display: inline-flex; background-color: #FABE00; border-radius: 100rem; height: 5rem; position: relative; top: 2rem;">
<div style="display: inline-block; color: white; margin: auto 3rem; width: 6rem;"><strong>K244<br><span style="font-size: 1.25rem;">매교</span></strong><br><span style="font-size: 0.75rem;">Maegyo 梅 橋</span></div>
<div style="background-color: white; color: black; border: 1rem solid #FABE00; border-radius: 100rem; display: inline-flex; padding: 1rem; box-shadow: white 0 0 0 .5rem; position: relative; top: -1.5rem; height: fit-content;">
<div style="background-color: #FABE00; color: white; border-radius: 100rem; width: 4rem; height: 4rem; font-size: 1.5rem; display: inherit; word-break: keep-all; text-align: center;">
<div style="margin: auto;">K245</div>
</div>
<div style="margin: auto; margin-left: 2rem; font-size: 3rem; font-weight: bold; letter-spacing: 1em;">수원</div>
<div style="margin: auto; font-size: 1.25rem;">Suwon<br><div style="letter-spacing: 1em
var bpm = 165, duration = 273, sampleRate = 44100, sampleOffset = 35600, labelOffset = -2 * 2;
var mod = (a, b) => a - b * Math.floor(a / b);
var result = [...Array(Math.ceil(bpm * duration * 2 / 60))]
.map(($, i) => sampleOffset + Math.round(44100 * 60 * i / bpm / 2))
.map(($, i) => `<point frame="${$}" label="${Math.floor((i + labelOffset) / 8) + 1}.${mod(Math.floor((i + labelOffset) / 2), 4) + 1}${mod(i + labelOffset, 2) + 1}" />`)
.join("\n");
copy(result)
const Jsoup = org.jsoup.Jsoup,
FileOutputStream = java.io.FileOutputStream,
Byte = java.lang.Byte,
JavaArray = java.lang.reflect.Array;
// ...
function downloadFile(url, file) {
let inputStream, outputStream;
try {
// This code is made for Rhino JavaScript engine with Java runtime
const FileInputStream = java.io.FileInputStream,
FileOutputStream = java.io.FileOutputStream,
Byte = java.lang.Byte,
JavaArray = java.lang.reflect.Array;
function copyFile(src, dest) {
let inputStream, outputStream;
try {
@No-Eul
No-Eul / JVMCrasher.java
Created August 11, 2024 18:54
JVMCrasher
import sun.misc.Unsafe;
import java.lang.invoke.MethodHandles;
public class Main {
public static void main(String[] args) throws Throwable {
Unsafe unsafe = (Unsafe) MethodHandles.privateLookupIn(Unsafe.class, MethodHandles.lookup())
.findStaticGetter(Unsafe.class, "theUnsafe", Unsafe.class)
.invoke();
unsafe.setMemory(0L, 1L, (byte) 0);
import net.fabricmc.loader.api.FabricLoader;
import net.fabricmc.loader.api.ModContainer;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
public class ModFinder {
The MIT License (MIT)
Copyright (c) 2020-2024 NoEul
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: