Skip to content

Instantly share code, notes, and snippets.

@c5n8
c5n8 / PromiseBuilder.vue
Last active Jun 23, 2020
Vue Promise Builder
View PromiseBuilder.vue
<template>
<div>
<slot
:pending="pending"
:fulfilled="fulfilled"
:rejected="rejected"
:settled="settled"
:result="result"
:error="error"
/>
@c5n8
c5n8 / main.dart
Created May 14, 2020
Proof of concept: wrapper extension for widget
View main.dart
import 'package:flutter/material.dart';
extension Wrapper on Widget {
Widget wrap(List<Function> wrappers) {
var next = this;
for (var i = wrappers.length - 1; i >= 0; i--) {
next = wrappers[i](next);
}
View tricks.txt
VS Code
- autosave
- "emmet.triggerExpansionOnTab": true