Skip to content

Instantly share code, notes, and snippets.

View ekorudiawan's full-sized avatar
💭
Nothing speak louder than working code

Eko Rudiawan Jamzuri ekorudiawan

💭
Nothing speak louder than working code
View GitHub Profile
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0
}
@ekorudiawan
ekorudiawan / git-ssh-error-fix.sh
Created December 18, 2022 05:00 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ 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
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
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
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
# 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
import assignment
import random
def test_add():
a = random.randint(0,10)
b = random.randint(0,10)
assert assignment.add(a, b) == (a+b)
name: ssdlite
channels:
- anaconda
- conda-forge
dependencies:
- python=3.7
- tensorflow-gpu==1.15
- notebook
- pip:
- tf_slim
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
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
{