Skip to content

Instantly share code, notes, and snippets.

View ClaudiuCreanga's full-sized avatar
💭
Hitting the gym

Claudiu Creanga ClaudiuCreanga

💭
Hitting the gym
View GitHub Profile
array[~i] gets the equivalent from the end
so if i = 0, n[~i] is len(n) - 1 and so on.
def loopbothways(n):
i = 0
while i < len(n) // 2:
print(n[i])
print(n[~i])
i += 1
edit reconciled.nf.config to change the new reports version
./.command.sh
g++ hello.cpp -o hello
./hello
hg pull
hg rebase -d default
hg resolve --mark filename
hg rebase continue
hg amend
arc diff and then delete the diferential revision line
DELETE from table WHERE CAST("index" AS INT) > 500;
npx webpack-cli init
export FLASK_APP=hello.py
flask run
flask run --host=0.0.0.0
aws s3 ls s3://hermes-test-ilmn --profile hermes_s3 --recursive
aws s3 ls s3://hermes-test-ilmn --profile oelixir_s3 --recursive
@ClaudiuCreanga
ClaudiuCreanga / go.go
Last active March 4, 2020 21:55
Go snippets
go run main.go
go get github.com/ClaudiuCreanga/algorithms-in-go
tmux new -s hermessession
ctrb c
ctrlb 0
ctrlb d to detach from a session
tmux a -t hermessession