Skip to content

Instantly share code, notes, and snippets.

@exoad
exoad / main.dart
Last active June 16, 2025 22:09
CarouselView vs ListView.builder
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(debugShowCheckedModeBanner: false, home: MainApp()));
}
final class MainApp extends StatefulWidget {
const MainApp({super.key});
@override
@exoad
exoad / pincushion.frag
Created April 7, 2025 21:44
pincushion shadertoy
// a fragment shader that applies a pincushion distortion
// jiaming meng 4.7.2025
// !!TUNED VALUE!!
// value for changing the distortion amount by their individual components
#define DISTORT vec2(5.4)
// !!TUNED VALUE!!
// normalization factor to control additional distortion factors
// + normalizes the distortion and thus is equatable to zooming in subtracting the distortion
// - removes the normalization and thus is equatable to zooming in adding the distortion
reading code+docs is
better than binging
tutorials
https://learnxinyminutes.com/
@exoad
exoad / settings.json
Last active December 11, 2024 00:28
My vscode settings.json
{
"editor.cursorSmoothCaretAnimation": "explicit",
"apc.activityBar": {
"position": "bottom",
"hideSettings": true,
"size": 40
},
"apc.statusBar": {
"position": "editor-bottom",
"height": 20,
@exoad
exoad / settings.json
Created November 28, 2024 01:01
VScode Settings Config
{
"editor.cursorSmoothCaretAnimation": "on",
"apc.activityBar": {
"position": "bottom",
"hideSettings": true,
"size": 40
},
"apc.statusBar": {
"position": "editor-bottom",
"height": 20,
@exoad
exoad / elecov_dnn_kernel
Created January 7, 2024 16:48
elevoc_dnn_kernel
HIGH : Elevoc: null mdl bin load, load default mdl_bin(: 0x0000000000000000) ok, version = 0x10000, type = 102, size = 2552928 :elevoc_dnn_fwk.c :48
HIGH : Elevoc: stack alloc ok! stack_ptr = 0x000001E7226BDD20, alloc_size = 1932 :elevoc_memory.c :64
HIGH : Elevoc: stack alloc ok! stack_ptr = 0x000001E7226BD820, alloc_size = 1280 :elevoc_memory.c :64
HIGH : Elevoc: heap alloc ok! alloc_ptr = 0x000001E7226B1CC0, heap_ptr = 0x000001E7226B20C0, alloc_size = 1024 :elevoc_memory.c :86
HIGH : Elevoc: heap alloc ok! alloc_ptr = 0x000001E7226B20C0, heap_ptr = 0x000001E7226B22C0, alloc_size = 512 :elevoc_memory.c :86
HIGH : Elevoc: heap alloc ok! alloc_ptr = 0x000001E7226B22C0, heap_ptr = 0x000001E7226B26C0, alloc_size = 1024 :elevoc_memory.c :86
HIGH : Elevoc: heap alloc ok! alloc_ptr = 0x000001E7226B26C0, heap_ptr = 0x000001E7226B28C0, alloc_size = 512 :elevoc_memory.c :86
HIGH : Elevoc: heap alloc ok! alloc_ptr = 0x000001E7226B28C0, heap_ptr = 0x000001E7226B2CC0, alloc_size = 1024 :elevoc_memory.c :
@exoad
exoad / funny_macros.h
Last active September 6, 2023 19:30
funny_macros.h
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2023 Jack Meng (exoad)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@exoad
exoad / README.md
Last active August 5, 2023 22:30
GitHub Markdown quirks

GitHub Markdown Quirks

Here are some general quirks you can use to prettify your markdowns on GitHub further!

Dropdowns

Code

@exoad
exoad / main.dart
Created June 17, 2023 16:42
Flutter Application Template Code
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@exoad
exoad / test_ListSwingtags.java
Created June 6, 2023 22:36
Swing Component Property List
import java.util.Arrays;
import java.util.Enumeration;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.WindowConstants;