Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
This file contains hidden or 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
pub mod ItemBuilder { | |
pub struct ItemBuilder<const A_SET: bool, const C_SET: bool, const F_SET: bool> { | |
a: Option<usize>, | |
b: Option<usize>, | |
c: Option<usize>, | |
d: Option<usize>, | |
e: Option<usize>, | |
f: Option<usize>, | |
} | |
This file contains hidden or 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
#!/usr/bin/bash | |
# install tmux ttyd curl torsocks jq ngrok htop | |
tmux new -d -s ttyd './ttyd.x86_64 -p 8080 -m 1 -R htop' | |
tmux split-window -h | |
tmux send-keys "./ngrok-stable-linux-amd64/ngrok http 8080 -region=ap" C-m | |
sleep 3 | |
TELEGRAM_TOKEN="" # fill here | |
TELEGRAM_ID="" # fill here |
This file contains hidden or 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
#!/bin/bash | |
#a simple script that check mail inbox | |
#MBOX | |
#amir mohammadi :) | |
directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
search="" | |
#------------------------------------ | |
mailboxCheck() { |
This file contains hidden or 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "capslock", | |
"command": "replacePreviousChar", | |
"args": { | |
"text": "", | |
"replaceCharCnt": 1}, | |
"when": "editorTextFocus" | |
} |