Skip to content

Instantly share code, notes, and snippets.

C'est La Vie

Benjamin Liii SeasonLeee

C'est La Vie
View GitHub Profile
SeasonLeee / getImageInfo.dart
Created Apr 3, 2020 — forked from guojianglin/getImageInfo.dart
helper function for getting the info of Image getting from internet or base64
View getImageInfo.dart
dynamic getImageInfo(String base64String) async {
Completer<ui.Image> completer = new Completer<ui.Image>();
(ImageInfo info, bool _) => completer.complete(info.image),
SeasonLeee / explanation.js
Created Sep 1, 2019
I need explanation of this crazy function I found in YDKJS Types and Grammar P54
View explanation.js
// what the f is going on???
// and by the way, this is not cool at all!
// 😫
function isThisCool(vals, fn, rx) {
vals = vals || Array.prototype;
fn = fn || Function.prototype;
rx = rx || RegExp.prototype;
return rx.test(""));