The tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"Test Snippet": { | |
"scope": "dart", | |
"prefix": "texg", | |
"body": [ | |
"", | |
"test(\"$1\", () {", | |
" $2", | |
"});", | |
"", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set hlsearch | |
" Don't bother with pretending that it wants to be compatible with Vi | |
set nocompatible | |
" Enable syntax and plugins (for netrw) | |
syntax enable | |
filetype plugin on | |
" Finding Files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "package:collection/collection.dart"; | |
import "package:fast_immutable_collections/fast_immutable_collections.dart"; | |
import "package:meta/meta.dart"; | |
//------------------------------------------------------------------------------ | |
void main() { | |
//---------------------------------------------------------------------------- | |
print("With Regular Collections\n\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- My recursive version of a sum | |
mySum x y = if y == 0 | |
then x | |
else mySum (x + 1) (y - 1) |
Table of Contents
- Static error checking is always better than runtime crazy ones.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Max Schwarzmüller's Understanding TypeScript - 2020 Edition on Udemy. | |
// A method is just a function with a property as a value. | |
function Autobind(_: any, __: string, descriptor: PropertyDescriptor) { | |
const originalMethod = descriptor.value; | |
const adjDescriptor: PropertyDescriptor = { | |
configurable: true, | |
enumerable: false, | |
get() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>Web Component Dart Test</h1> |