Following is the list of tools which I use for my terminal to make it look fancy and work productive.
I have tried this on macbook only. There must be something similar for windows too keep looking 😀
-
⚙ Installation ➡ https://iterm2.com/
I have tried this on macbook only. There must be something similar for windows too keep looking 😀
type printable[T any] struct { | |
data []any | |
} | |
func (p *printable[T]) Set(value []any) { | |
p.data = value | |
} | |
func (p *printable[T]) printAll() { | |
for i := 0; i < len(p.data); i++ { |
from PIL import Image | |
import pytesseract | |
import argparse | |
import cv2 | |
import os | |
# construct the argument parse and parse the arguments | |
ap = argparse.ArgumentParser() | |
ap.add_argument("-i", "--image", required=True, |
import cv2 | |
import numpy as np | |
cap = cv2.VideoCapture(0) | |
imgTarget=cv2.imread("wheel.jpg") | |
advtImg = cv2.imread("wheeladvt.jpg") | |
hT,wT,cT = imgTarget.shape | |
advtImg = cv2.resize(advtImg,(wT,hT)) | |
orb = cv2.ORB_create(nfeatures=1000) |
# Dijkstra - Single Source Shortest Path- does not work for negetive edge weights- greedy algo | |
# Bellman Ford - Single source shortest path - valid for negetive edge weights | |
# Floyd Warshall - All pair shortest path | |
# 0, 1, 2, 3, 4, 5 | |
# 0 0, 2, 4, -1, -1, -1 | |
# 1 -1, 0, 1, 4, 2, -1 | |
# 2 -1, -1, 0, -1, 3, -1 | |
# 3 -1, -1, -1, 0, -1, 2 | |
# 4 -1, -1, -1, 3, -1, 2 | |
# 5 - 1, -1, -1, -1, -1, 0 |
let ground = [ | |
[1, 1, 0, 0, 0], | |
[0, 1, 0, 0, 0], | |
[0, 1, 1, 1, 2], | |
[0, 1, 1, 0, 0], | |
[0, 0, 0, 0, 0], | |
] | |
const initialPosition = [0, 0] |
#!/bin/bash | |
watch() { | |
echo watching folder $1/ every $2 secs. | |
while [[ true ]] | |
do | |
files=`find $1 -type f -mtime -$2s` | |
if [[ $files != "" ]] ; then |
#!/bin/bash | |
set -e | |
for var in ~/FolderName/*/* | |
do | |
if [ -f "$var" ] | |
then | |
NewName=$(echo $var|sed -e "s/.txt/.csv/g") | |
SourceFolderName=$(echo $NewName | cut -d '/' -f3) | |
SourceName=$(echo $SourceFolderName|sed -e "s/NVSS//g") | |
CurrentFolder=$(echo $NewName | cut -d '/' -f2) |
import numpy as np | |
import matplotlib.pyplot as plt | |
field = np.zeros((500,500)) | |
center = [25, 25] | |
radius = 20 | |
x = np.arange(0, radius, 0.0001) | |
abs_y = (radius**2 - x**2)**0.5 | |
y1 = np.floor((-1*abs_y + center[1])*10).astype(np.int_) | |
y2 = np.floor((abs_y + center[1])*10).astype(np.int_) |
; ---------------square---------------------------------- | |
(def sqr (comp (partial apply *) (partial repeat 2))) | |
; --------------pallindrome----------------------------------- | |
(def trim-ends (comp butlast rest)) | |
(def not-nil (comp not nil?)) | |
(def first-last-equal? (comp (partial apply =) (partial (juxt first last)))) | |
(def is-pallindrome? (comp (partial every? first-last-equal?) (partial take-while not-nil) (partial iterate trim-ends))) | |
; ----------------prime--------------------------------- |