Programming

Interactive coding notes

Scripts of Powershell/Python/etc

GraphQL

http://graphql.org/ a query language and execution engine tied to any backend service.
1
enum Episode { NEWHOPE, EMPIRE, JEDI }
2
3
interface Character {
4
id: String
5
name: String
6
friends: [Character]
7
appearsIn: [Episode]
8
}
9
10
type Human implements Character {
11
id: String
12
name: String
13
friends: [Character]
14
appearsIn: [Episode]
15
homePlanet: String
16
}
Copied!

vi/vim

1
go to line: Esc , line#, Shift-g
2
:%s/pattern/replace/g_ # i/I: case in/sensitive
3
cw => change word
4
ciw => change word from cursor
5
:w !sudo tee % ===> sudo save
Copied!

VISUAL BLOCK mode

1
Ctrl+V;【select】;Shift + I; 【type text】; Esc
Copied!

VSCode

Regex for deleting empty lines: ^\s*$\n

extensions

1
AlanWalk.markdown-toc
2
shardulm94.trailing-spaces
Copied!

Debug Config

1
# launch.json
2
"args": [
3
"--help", ""
4
],
Copied!

Markdown

Parser

1
var converter = new showdown.Converter();
2
var md = '- works in the server and in the **browser**';
3
var html = converter.makeHtml(md);
Copied!

Converter

Windows Universal

OCR

Excel

Formula

1
=LEFT(B5,FIND("_",B5)-1)
2
=RIGHT(B5,LEN(B5)-FIND("_",B5))
Copied!

CSharp

CSharp

.Net Core

Last modified 1yr ago