Skip to content

Instantly share code, notes, and snippets.

@c5n8
c5n8 / tricks.txt
Created February 22, 2019 08:48
Tricks
VS Code
- autosave
- "emmet.triggerExpansionOnTab": true
@c5n8
c5n8 / main.dart
Created May 14, 2020 23:50
Proof of concept: wrapper extension for widget
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);
}
@c5n8
c5n8 / PromiseBuilder.vue
Last active June 23, 2020 07:09
Vue Promise Builder
<template>
<div>
<slot
:pending="pending"
:fulfilled="fulfilled"
:rejected="rejected"
:settled="settled"
:result="result"
:error="error"
/>