- 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() { |
Table of Contents
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) |
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"); |
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
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
Show hidden characters
{ | |
"Test Snippet": { | |
"scope": "dart", | |
"prefix": "texg", | |
"body": [ | |
"", | |
"test(\"$1\", () {", | |
" $2", | |
"});", | |
"", |
Created: Feb 25, 2021 10:12 AM Tags: ArchLinux, Artix URL: https://youtu.be/nCc_4fSYzRA Updated: Feb 26, 2021 11:08 AM