$ apt update
$ apt search awscli
$ apt install curl wget unzip -y
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ ./aws/install
$ aws --version
aws-cli/2.1.28 Python/3.8.8 Linux/4.19.121-linuxkit exe/x86_64.ubuntu.20 prompt/off
| import { useForm } from "react-hook-form"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import * as z from "zod"; | |
| const schema = z.object({ | |
| email: z.string().email().min(2), | |
| password: z.string().min(6) | |
| }); | |
| export default function RhfFormWithZod() { |
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
See also List of materials about Software Design in Haskell
| Junior | Middle | Senior | Architect | |
|---|---|---|---|---|
| Haskell level | Basic Haskell | Intermediate Haskell | Advanced Haskell | Language-agnostic |
| Haskell knowledge scope | Learn you a Haskell | Get programming with Haskell | Haskell in Depth | Knows several languages from different categories |
| Get programming with Haskell | Haskell in Depth | Functional Design and Architecture | ||
| [Other books on Software Engineering in Haskell](https://github.com/graninas/software-design-in-haskell#Books-on-So |
| wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip | |
| unzip /tmp/YaHei.Consolas.1.12.zip | |
| sudo mkdir -p /usr/share/fonts/consolas | |
| sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/ | |
| sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf | |
| cd /usr/share/fonts/consolas | |
| sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv |
| import 'package:flutter/services.dart'; | |
| Future<String> saveFile(String mime, String name, String data) async { | |
| const platform = | |
| MethodChannel("com.msvcode.filesaver/save"); //unique channel identifier | |
| try { | |
| final result = await platform.invokeMethod("saveFile", { | |
| "mime": mime, | |
| "name": name, | |
| "data": data, |
npm install -D acorn babel-loader @babel/core @babel/preset-env babel-polyfill webpack webpack-cli uglifyjs-webpack-plugin --save-dev
webpack-cli and acorn are dependencies that you, unfortunately, have to install if you want to run this god damn thing without any obscure warnings or errors.
Learning Rust
The following is a list of resources for learning Rust as well as tips and tricks for learning the language faster.
Warning
Rust is not C or C++ so the way your accustomed to do things in those languages might not work in Rust. The best way to learn Rust is to embrace its best practices and see where that takes you.
The generally recommended path is to start by reading the books, and doing small coding exercises until the rules around borrow checking become intuitive. Once this happens, then you can expand to more real world projects. If you find yourself struggling hard with the borrow checker, seek help. It very well could be that you're trying to solve your problem in a way that goes against how Rust wants you to work.