Skip to content

Instantly share code, notes, and snippets.

View sschr15's full-sized avatar

sschr15

View GitHub Profile
```python
example = """
# header
some text
\```python
# a code block, don't you dare see this
print("print()")
\```
the end
"""
[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+
@sschr15
sschr15 / at\MyClass.java
Created August 11, 2020 02:23
Access Transformers versus the more capable (in most ways) Mixin probably in a more complicated way than necessary
package at;
import main.MainClass;
// This is a class that uses Access Transformers to access otherwise inaccessible fields/methods.
public class MyClass {
public static void main(String[] args) {
MainClass thing = new MainClass;
System.out.println(thing.addToNumber(thing.number)); //84 These lines use things declared public in
thing.number = -1; // the AccessTransformer configuration.
@sschr15
sschr15 / versions.py
Created November 17, 2022 02:22
A Python implementation of the data structures used for @skyrising's mc-versions project
from __future__ import annotations
from dataclasses import dataclass, field
from datetime import datetime
from enum import Enum, auto
from typing import Optional, Union
import requests
class VersionType(Enum):
release = auto()
snapshot = auto()
@sschr15
sschr15 / Makefile
Created November 28, 2022 03:35
xkcd 149
# make me a sandwich
# a small makefile following xkcd 149: "Sandwich"
all:
@rm .me .a 2>/dev/null; \
exit 0
me:
@touch .me
a:
@sschr15
sschr15 / results.diff
Last active January 21, 2024 23:49
feature/kotlin/fixes/exceptions diff against KT 1.9.20 stdlib
diff --color -ur decomp-current/kotlin/collections/AbstractIterator.java decomp-fixes/kotlin/collections/AbstractIterator.java
--- decomp-current/kotlin/collections/AbstractIterator.java 2024-01-21 17:29:18.443022400 -0600
+++ decomp-fixes/kotlin/collections/AbstractIterator.java 2024-01-21 17:27:28.923283900 -0600
@@ -1,10 +1,63 @@
-/*
-$VF: Unable to decompile class
-Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
-java.lang.NullPointerException: Cannot invoke "org.vineflower.kotlin.struct.KType.stringify(int)" because "this.type" is null
- at org.vineflower.kotlin.struct.KProperty.stringify(KProperty.java:106)
- at org.vineflower.kotlin.KotlinWriter.writeClass(KotlinWriter.java:344)