Skip to content

Instantly share code, notes, and snippets.

View vinesmsuic's full-sized avatar
💸
Fly, My Wings

Max Ku vinesmsuic

💸
Fly, My Wings
View GitHub Profile
@vinesmsuic
vinesmsuic / npminstall.sh
Last active October 26, 2019 15:28
npm install ACCESS DENIED [Mac] solution
sudo npm install [package you want] --unsafe-perm=true --allow-root
@vinesmsuic
vinesmsuic / example.html
Created October 6, 2019 19:21 — forked from evansims/example.html
Embedding or sharing a image or photo uploaded to Google Drive.
<a href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a>
@vinesmsuic
vinesmsuic / introduction-to-markdown.md
Last active January 1, 2021 13:48
This Gist is written for the Juniors who need to submit their task.
@vinesmsuic
vinesmsuic / ex3_1.m
Last active October 15, 2019 08:27
[MABLAB] Fourier Series Lab Exercises
%3.1
A=2; f0=1000; phi=pi/2;
T0=1/f0;
tt=0:T0/40:4*T0;
xx=A*cos(2*pi*f0*tt+phi);
plot(tt,xx)
axis([0,0.004,-4,4])
xlabel('Time (sec)');
grid on

Essential Tools in Lab

Mechancial

Mechancial Tools

Hex Nuts

@vinesmsuic
vinesmsuic / readme.md
Created October 26, 2019 15:21
[Fix] pip ImportError: cannot import name 'main' after update

Note

Caution: Upgrading the system pip can cause problems.

If not in a virtual environment, use python3 -m pip for the commands. This ensures that you upgrade and use the Python pip instead of the system pip.

If unfortunately you accidently upgraded it and crashed...

If you got this error..

@vinesmsuic
vinesmsuic / fix.sh
Last active October 26, 2019 15:28
[Fix] System Program Problem Detected In Ubuntu
# The crash reports are stored in /var/crash directory in Ubuntu.
# If you look in to this directory, you should see some files ending with crash.
$ ls -l /var/crash/
# delete all the content of directory /var/crash.
$ sudo rm /var/crash/*
@vinesmsuic
vinesmsuic / fix.sh
Created January 30, 2020 05:46
Solving: brew install opencv takes forever
# 1. Homebrew Permissions Denied Issues Solution (https://gist.github.com/irazasyed/7732946)
$sudo chown -R $(whoami) $(brew --prefix)/*
# 2. Upgrade brew
$brew upgrade
# 3. https://stackoverflow.com/questions/30998890/installing-opencv-with-brew-never-finishes/31015713
$brew install gcc --force-bottle
# 4. Install OpenCV
$brew install opencv
@vinesmsuic
vinesmsuic / readme.md
Created February 12, 2020 05:58
Find my ~/.bashrc

For MacOS

$ cd /etc/; sudo nano bashrc

For Linux

$ gedit ~/.bashrc
@vinesmsuic
vinesmsuic / InstallQT.md
Last active May 14, 2020 06:09
install QT on linux

Main Steps

sudo apt-get install build-essential

sudo apt-get install qtcreator

sudo apt-get install qt5-default

Note: The version you installed is 5.9.5.