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
#include <stdio.h> | |
int main() { | |
printf("Hello, World!\n"); | |
return 0 | |
} |
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
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj | |
Cloning into 'my-awesome-proj'... | |
ssh: connect to host github.com port 22: Connection timed out | |
fatal: Could not read from remote repository. | |
$ # This should also timeout | |
$ ssh -T git@github.com | |
ssh: connect to host github.com port 22: Connection timed out | |
$ # but this might work |
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
import cv2 as cv | |
import numpy as np | |
import random | |
import exercise_4 | |
from scipy.signal import correlate2d, convolve2d | |
def get_image(): | |
bgr_img = cv.imread("./images/image.png") | |
gray_img = cv.cvtColor(bgr_img, cv.COLOR_BGR2GRAY) | |
return bgr_img, gray_img |
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
import exercise_2 | |
import cv2 as cv | |
import random | |
def get_random_test(): | |
img = cv.imread("./images/cat-image.jpg") | |
x = random.randint(0, img.shape[1]-1) | |
y = random.randint(0, img.shape[0]-1) | |
return img, x, y |
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
import exercise_1 | |
import cv2 as cv | |
import random | |
def get_random_test(): | |
img = cv.imread("./images/cat-image.jpg") | |
x = random.randint(0, img.shape[1]-1) | |
y = random.randint(0, img.shape[0]-1) | |
return img, x, y |
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
# On host side, install GNS3 and VirtualBox | |
sudo apt install libpcap-dev | |
wget https://github.com/GNS3/ubridge/archive/refs/tags/v0.9.18.tar.gz | |
tar -xvzf v0.9.18.tar.gz | |
cd ubridge-0.9.18 | |
make | |
sudo make install | |
# On both virtual machine | |
sudo apt install net-tools |
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
import assignment | |
import random | |
def test_add(): | |
a = random.randint(0,10) | |
b = random.randint(0,10) | |
assert assignment.add(a, b) == (a+b) |
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
name: ssdlite | |
channels: | |
- anaconda | |
- conda-forge | |
dependencies: | |
- python=3.7 | |
- tensorflow-gpu==1.15 | |
- notebook | |
- pip: | |
- tf_slim |
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
import cv2 as cv | |
import numpy as np | |
import random | |
import exercise_3 | |
from scipy.signal import correlate2d, convolve2d | |
def get_image(): | |
bgr_img = cv.imread("./images/image.png") | |
gray_img = cv.cvtColor(bgr_img, cv.COLOR_BGR2GRAY) | |
return bgr_img, gray_img |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Net.Sockets; | |
using System.IO; | |
namespace DAQ6510_Multimeter | |
{ |
NewerOlder