Skip to content

Instantly share code, notes, and snippets.

View yifeiyin's full-sized avatar
🗿
What’s happening?

Yifei Yin yifeiyin

🗿
What’s happening?
View GitHub Profile
@yifeiyin
yifeiyin / Install Quartus on Ubuntu.md
Created March 12, 2020 04:35
Install Quartus on Ubuntu

Problem Encountered:

$ ./quartus
quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Resolution:

@yifeiyin
yifeiyin / verilog-vscode.md
Last active March 11, 2020 19:01
CSCB58 Verilog in VSCode

Compile Verilog code in VSCode

  1. Run brew install icarus-verilog in terminal
  2. Search leafvmaple.verilog in VSCode Extension, should see Verilog HDL. Install it
  3. In VSCode code editor, should see a green button on top right corner
@yifeiyin
yifeiyin / Dark Mode Color Scheme.txt
Created February 28, 2020 19:39
Dark Mode Color Scheme
Dark Mode Color Scheme
BG: 282C35
TEXT: E6E6E7
BLUE: 4DB4B7
@yifeiyin
yifeiyin / hack.js
Created February 25, 2020 16:23
Hack The Valley Hash Cracker
$('body').append('<div id="a"></div>');
START = 40;
INTERVAL = 5;
for (let i = START * 10000; i < (START + INTERVAL) * 10000; i++) {
let hash = (i).toString(36);
$('#inputHash').val(hash);
if (i % 1000 == 0) {
console.clear();
console.count('x1000');
console.log(i % 1000);
@yifeiyin
yifeiyin / Android-pitfalls.txt
Created February 12, 2020 04:50
React Native Android pitfalls
No percentage borderRadius
actionSheetOptions options: [] must be array
@yifeiyin
yifeiyin / git-bundle.txt
Created January 4, 2020 08:37
Bundle up a git repository
Objective:
Archive a git repository including with all commit history into one file.
To bundle:
```
git bundle create /path/to/destination/bundle/file --all
```
To unbundle:
```
@yifeiyin
yifeiyin / pi-screen.md
Last active January 4, 2020 08:40
Raspberry Pi - Disable Screen Auto Sleep

Objective: Make the screen stay on forever for a raspberry pi

$ sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bkp
$ sudo vim /etc/lightdm/lightdm.conf

Then Add a line under this section:

[SeatDefaults]
@yifeiyin
yifeiyin / shell-exclude.md
Created July 16, 2019 16:21
Everything excluding in shell
@yifeiyin
yifeiyin / react-ide-setups.md
Created June 21, 2019 01:07
IDE Setups for React

Sublime Text: Package Install: Babel

VSCode: Install extension: Sublime Babel

@yifeiyin
yifeiyin / css-basic-fonts.md
Created June 20, 2019 21:24
About CSS fonts