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
#!/usr/bin/python3 | |
# inspired by https://github.com/cyberblackhole/7zip-crack | |
import subprocess | |
import sys | |
chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890 ~`!@#$%^&*()-_=+[{]}\\|;:'\"/?.>,<" | |
target_zip = sys.argv[1] |
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
#define PIN_LED_GND 2 | |
#define PIN_CLK 3 | |
#define PIN_AB 4 | |
#define PIN_SIG_1 A0 | |
#define PIN_SIG_2 A1 | |
#define PIN_SIG_3 A2 | |
#define PIN_SIG_4 A3 | |
#define PIN_SIG_5 10 | |
#define PIN_SIG_6 11 | |
#define PIN_SIG_7 12 |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# First import the library | |
import pyrealsense2 as rs | |
import numpy as np | |
import cv2 | |
# setup opencv stereo | |
minDisp = 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
# Commands to build kicad on ubuntu17.10 | |
# Download source code | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install git | |
mkdir ~/gitprojects | |
cd gitprojects | |
git clone https://git.launchpad.net/kicad |
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
import numpy as np | |
import cv2 | |
IMAGE_WIDTH = 640 | |
IMAGE_HEIGHT = 480 | |
capL = cv2.VideoCapture(0) | |
capR = cv2.VideoCapture(1) | |
imgL = np.zeros((480,640,3), np.uint8) |
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
" set indent as 2 spaces | |
set tabstop=2 | |
set autoindent | |
set expandtab | |
" show line number | |
set number | |
" color schema | |
syntax on |
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
import smbus | |
I2C_BUS_NUM = 1 | |
I2C_LCD_ADDR = 0x3e | |
LCD_SET_DDRAM_ADDR = 0x80 | |
class I2cLcd: | |
i2c = "" | |
address = "" |