This file contains 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
//SERVERNAME.local/SHARENAME /mnt/SHARENAME cifs username=user,password=PASSWORD,iocharset=utf8,rw,uid=1000,gid=1000,nounix,file_mode=0777,dir_mode=0777 0 0 |
This file contains 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
# Put this in your .bashrc or .zshrc | |
# You can change the directory `virtualenvs` to whichever you prefer. | |
activate() { | |
source ~/.virtualenvs/"$1"/bin/activate | |
} |
This file contains 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
# https://circuitpython.org/board/raspberry_pi_pico/ | |
# CircuitPython 7.3.3 packages: | |
cp7 = "_bleio, adafruit_bus_device, adafruit_pixelbuf, aesio, alarm, analogio, atexit, audiobusio, audiocore, audiomixer, audiomp3, audiopwmio, binascii, bitbangio, bitmaptools, bitops, board, busio, countio, digitalio, displayio, errno, floppyio, fontio, framebufferio, getpass, gifio, imagecapture, json, keypad, math, microcontroller, msgpack, neopixel_write, nvm, onewireio, os, paralleldisplay, pulseio, pwmio, qrio, rainbowio, random, re, rgbmatrix, rotaryio, rtc, sdcardio, sharpdisplay, storage, struct, supervisor, synthio, terminalio, time, touchio, traceback, ulab, usb_cdc, usb_hid, usb_midi, vectorio, watchdog, zlib" | |
# CircuitPython 8.0.0-beta.6 packages: | |
cp8 = "_asyncio, _bleio, _pixelmap, adafruit_bus_device, adafruit_pixelbuf, aesio, alarm, analogbufio, analogio, array, atexit, audiobusio, audiocore, audiomixer, audiomp3, audiopwmio, binascii, bitbangio, bitmaptools, bitops, board, builtins, busio, collections, cou |
This file contains 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
# aliases for commonly used commands | |
alias ll="exa -al" | |
alias gad="git add" | |
alias gcm="git commit -m" | |
alias gst="git status" | |
alias gps="git push" | |
alias gpss="git push --set-upstream origin" | |
alias gol="git log" | |
alias gfa="git fetch --all" | |
alias gfp="git fetch --prune" |
This file contains 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
def imshow_od_bbox(image_file, bbox_voc, object_class, labelmap_dict): | |
import matplotlib.pyplot as plt | |
from PIL import Image | |
xmin,ymin,xmax,ymax = bbox_voc | |
right = xmin + (xmax - xmin) | |
bottom = ymin + (ymax - ymin) | |
image = Image.open(image_file) | |
detected_object = image.crop((xmin, ymin, right, bottom)) |
This file contains 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
from sklearn.datasets import make_moons | |
X,y = make_moons(n_samples=200, noise=0.15) | |
with open('data.csv', 'w') as f: | |
wr = csv.writer(f, delimiter=',') | |
combined = np.column_stack((X,y)) | |
wr.writerows(combined) |