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
@No-Eul
No-Eul / Caffeine.tex
Created October 14, 2024 15:50
Caffeine.tex
\chemname{
\chemfig{*6((=O)-N(-CH_3)-*5(-N=-N(-CH_3)-=)--(=O)-N(-H_3C)-)}
}{Caffeine}
\chemname{
\chemfig{
-[::63]*5(-N?[a]-(-
=_[::-54]*5(-N?[b]=(-
=_[::-54]*5(-N?[c]-(=_
-[::-54]*5(=N(-[,1.5,,,dashed]Fe^{II}?[a]?[b,,dashed]?[c])-(=_)-(-H_3C)=(--[::-60]-[::60](-[::60]OH)(=[::-60]O))-)
)-(--[::60]-[::-60](-[::60]OH)(=[::-60]O))=(-CH_3)-)
)-(-=^[::60]CH_2)=(-CH_3)-)
)=(-=_[::-60]CH_2)-(-H_3C)=)
}
function floorMod(a, b) {
return a - b * Math.floor(a / b);
}
function toRadix(decimal, base) {
let array = [];
do array.unshift(floorMod(decimal, base));
while ((decimal = Math.floor(decimal / base)) !== 0);
return array;
}
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:
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 {
@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);
// 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 {
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 {
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)
<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