Skip to content

Instantly share code, notes, and snippets.

View hotdang-ca's full-sized avatar

James Robert Perih hotdang-ca

View GitHub Profile
@hotdang-ca
hotdang-ca / example.js
Created July 16, 2019 15:17
CamelCase to Camel Case
console.log("JamesPerihIsCool".replace(/(?<!^)(?=[A-Z])/g, ' '));
@hotdang-ca
hotdang-ca / dart_mirror.dart
Last active February 3, 2022 20:20
Basic Object name via Reflection in Dart
import 'dart:mirrors';
class User {
final String email;
final String name;
const User({required this.email, required this.name});
}
extension DeclarationMirrorExtension on DeclarationMirror {
/// Name of this object or field