This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
package main | |
import ( | |
"crypto/sha256" | |
"encoding/json" | |
"fmt" | |
"strconv" | |
"strings" | |
"time" | |
) |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
# This is a simple example of how to run a basic service inside a container with Podman | |
# Podman | |
## Pull the Docker image | |
podman pull docker.io/redis | |
## Run the container as you would do with Docker | |
podman run -d --name redis_server -p 6379:6379 redis | |
# But Podman facilitate some extra ways: |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
See also:
vinegar.vim, which makes - open netrw in the directory of the current file, with the cursor on the current file (and pressing - again goes up a directory). Vinegar also hides a bunch of junk that's normally at the top of netrw windows, changes the default order of files, and hides files that match wildignore
.
With vinegar, . in netrw opens Vim's command line with the path to the file under the cursor at the end of the command. ! does the same but also prepends !
at the start of the command. y. copies the absolute path of the file under the cursor. ~ goes to your home dir. Ctrl+6 goes back to the file (buffer) that you had open before you opened netrw.
To launch netrw:
ngrok allows you to expose a web server running on your local machine to the internet.
" Minimal neovim configuration for go | |
" | |
" deoplete requires neovim, so this will not work with regular vim | |
" | |
" prereqs: | |
" - neovim | |
" - neovim python3 (pip3 install --upgrade neovim) | |
" | |
" includes: | |
" - syntax checking on save (using neomake, go and gometalinter) |
Resources marked with > are used, have been used, or are actively advocated in the threads. This applies for everything in the [Necessities] section. | |
[Necessities] | |
Hiragana & Katakana: http://www.realkana.com/ | |
Kanji: http://kanjidamage.com/ | |
Japanese IME: http://www.google.com/intl/ja/ime/ | |
Anki Flashcards: http://ankisrs.net/ | |
Genki (↓Bottom↓) | |
Tae Kim Japanese: http://www.guidetojapanese.org/learn/grammar |