- The system is inherently distributed (e.g. mobile devices like smartphones)
- Reliability (some nodes can fail and the system keeps functioning; fault tolerance)
- Performance (process data faster by utilizing multiple nodes or achieve better latency by requesting data from a nearby node)
- The capacity of a single machine isn’t enough for the task (e.g. limited memory size, bandwidth, CPU cycles, etc.; scalability)
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
| """ | |
| Copy all images that look similar to a template to a different location. | |
| This script finds similar areas in source images, crops the target area, and | |
| stores the result in a target directory. | |
| """ | |
| import concurrent.futures | |
| import cv2 | |
| import os | |
| import multiprocessing |
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
| """ | |
| Splits a dataset of png images into train, val, and test sets. | |
| Creates the folders and randomly chooses files. | |
| """ | |
| import os | |
| import random | |
| import argparse | |
| try: | |
| import termcolor |
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
| alias bb='brave-browser' | |
| alias t='tmux' | |
| alias ta='tmux attach' | |
| alias sagi='sudo apt-get install -y' | |
| alias sagu='sudo apt-get update' | |
| alias e='echo' | |
| alias sl='exa' | |
| #alias ls='exa' | |
| alias sls='exa' | |
| alias pwd='pwd -P' |
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
| code --install-extension 13xforever.language-x86-64-assembly | |
| code --install-extension aaron-bond.better-comments | |
| code --install-extension adpyke.codesnap | |
| code --install-extension albymor.increment-selection | |
| code --install-extension alexcvzz.vscode-sqlite | |
| code --install-extension Angular.ng-template | |
| code --install-extension attilabuti.vscode-mjml | |
| code --install-extension bierner.emojisense | |
| code --install-extension bierner.markdown-preview-github-styles | |
| code --install-extension bradlc.vscode-tailwindcss |
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
| set tabsize 2 | |
| set linenumbers | |
| set smooth | |
| set nohelp | |
| set morespace | |
| set tabstospaces |
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
| setw -g window-status-current-format "#T(#I:#W#F)" | |
| setw -g window-status-format "#T(#I:#W#F)" | |
| # reload | |
| bind r source-file ~/.tmux.conf | |
| # move windows | |
| bind -n C-S-Left swap-window -t -1 | |
| bind -n C-S-Right swap-window -t +1 |
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 | |
| URL1="https://ethgasstation.info/api/ethgasAPI.json" | |
| URL2="https://www.gasnow.org/api/v1/gas/price" | |
| # gas stuff | |
| RES1=$(curl -s $URL1) | |
| RES2=$(curl -k -s $URL2) | |
| fastest1=$(echo $RES1 | jq ".fastest") |
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
| { | |
| "codesnap.transparentBackground": true, | |
| "codesnap.boxShadow": "rgba(0, 0, 0, 0.1) 0px 4px 2px", | |
| "html.suggest.html5": true, | |
| "breadcrumbs.enabled": true, | |
| "doxdocgen.cpp.tparamTemplate": "\\param}", | |
| "doxdocgen.file.fileTemplate": "\\file", | |
| "editor.cursorBlinking": "phase", | |
| "editor.cursorSmoothCaretAnimation": true, | |
| "editor.fontFamily": "Fira Code", |
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
| extra-keys = [ \ | |
| ['ESC', 'TAB', 'HOME', 'END', 'UP', 'PGUP', 'PGDN', '/', '-'], \ | |
| ['CTRL', 'ALT', '~', 'LEFT', 'DOWN', 'RIGHT', '*', '|', './'] \ | |
| ] |