Skip to content

Instantly share code, notes, and snippets.

View jksevend's full-sized avatar
🐇
happy coding

Jules jksevend

🐇
happy coding
View GitHub Profile
@psygo
psygo / reflection_and_annotations.md
Last active November 11, 2024 17:20
Reflection and Annotations in Dart

Reflection in Dart

Unfortunately, [since mirrors currently bloat compiled code][no_support_mirrors], it isn't supported for Flutter or web apps. A [workaround][source_gen_tutorial] would be to use a package like [source_gen][source_gen].

dart:mirrors

Most of the info here, comes from [Understanding Reflection and Annotations in Dart tutorial][reflection_tutorial], from the Fullstack Dart and Flutter Tutorials YouTube channel. He also created a [gist][gist_tutorial] with it.

@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active November 20, 2024 04:33 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"