See my blog for more information.
- Adjust settings in vars.auto.tfvars.
- Run with terraform init && terraform apply
Content:
| target | |
| Dockerfile | |
| .dockerignore | |
| .git | |
| .gitignore | |
| .env |
See my blog for more information.
Content:
| "explorer.experimental.fileNesting.enabled": true, | |
| "explorer.experimental.fileNesting.patterns": { | |
| "*.ts": "${capture}.js", | |
| "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", | |
| "*.jsx": "${capture}.js", | |
| "*.tsx": "${capture}.ts", | |
| "tsconfig.json": "tsconfig.*.json", | |
| "package.json": "package-lock.json, yarn.lock", | |
| "pubspec.yaml": "pubspec.lock,LICENSE,*.yaml", | |
| "*_cubit.dart": "${capture}_state.dart, ${basename}.freezed.dart, ${basename}.g.dart", |
| import 'dart:async'; | |
| import 'dart:io'; | |
| import 'dart:ui'; | |
| import 'package:file_picker_cross/file_picker_cross.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| import 'package:supercharged/supercharged.dart'; | |
| class Diagram { |
| private static WriteableBitmap Subtract(Color color, BitmapSource bitmap) | |
| { | |
| unsafe | |
| { | |
| if (bitmap == null) return null; | |
| var writeableBitmap = new WriteableBitmap(bitmap); | |
| var width = writeableBitmap.PixelWidth; | |
| var height = writeableBitmap.PixelHeight; | |
| var stride = writeableBitmap.BackBufferStride; |
| protected override async void OnMouseLeftButtonDown(MouseButtonEventArgs e) | |
| { | |
| base.OnMouseLeftButtonDown(e); | |
| if (DrawingMode == Tool.Fill) | |
| { | |
| /* | |
| * turn the canvas into bitmap thing | |
| * use a fill method to fill the pixels | |
| * convert the bitmap thing back to visual |