< YALU STUDIO >

< YALU STUDIO >

Stay hungry, stay foolish.

Delete all commit histories in GitHub
Because I just started using Git, sometimes I have 10+ commits just to properly set up my repository. Deleting all clumsy commit history can make me professional (not true). Step 1. Checkout 1git checkout --orphan new_branch Step 2. Add all files 1git add -A Step 3. Commit changes 1git commit -am...
PyCharm Git Push rejected: Push to origin/master was rejected
When I tried to commit and push to my GitHub repository, it shows the error below: 1Push rejected: Push to origin/master was rejected Solution: Go to the root directory of the project Right click, choose ‘Git Bash here’ Use command 1git pull origin master --allow-unrelated-histories Edit file ...
Chrome crashes during Visual Studio 2017 debugging
Edge works just fine, but Chrome keeps crashing, so it must be something about VS itself. I still don’t know what causes this problem, it just suddenly turned to be like this. Solution 1Tools > Options > Projects and Solutions > Web Projects > Stop debugger when browser window is clo...
Purchase Plan for Raspberry Pi
Recently I decide to buy my first Raspberry Pi. It seems like there are a bunch of accessories and add-on available on the market that I have no idea what they are for. So I would just get the basic stuff, and see how far I can go. Here’s my list: Raspberry Pi 3 Model 3 B+ TF card 16GB Power ...
Mac shortcut cheat sheet
control + space = spotlight search control + right / left = change between desktops command + H = Hide current program command + Q = Quit current program command + shift + 4 = partial screenshot to a file command + shift + 3 = complete screenshot to a file command + right = move cursor to the en...
My keyboard cheat sheet for Poker II
** I customized my keyboard, so it might be slightly different from yours. Default layerFn + Esc = ` Fn + 1 = F1 Fn + 2 = F2 Fn + 3 = F3 Fn + 4 = F4 Fn + 5 = F5 Fn + 6 = F6 Fn + 7 = F7 Fn + 8 = F8 Fn + 9 = F9 Fn + 0 = F10 Fn + - = F11 Fn + = = F12 Fn + BACKSPACE = DEL F...
Resolving merge conflict while using git pull
After using git pull command, sometimes message below would pop up: 12error: Your local changes to '<filename>' would be overwritten by merge. Aborting.Please, commit your changes or stash them before you can merge. It means that the update is conflict with the local content, you should sa...
Why define shebang and encoding in Python
Personally I would define shebang and encoding like this: 12#!/usr/bin/env python# -*- coding:utf-8 -*- ShebangHaving a #! at the start of the first line, followed by the interpreter, indicates what interpreter should be used to interpret this executable file in Unix and other Unix-like systems, ...
PyCharm Python file template
To automatically insert information at the top when creating a Python file, go to: (Mac) PyCharm > Preferences… > File and Code Templates > Python Script (Windows) File > Settings > Editor > File and Code Templates > Python Script My current setting: 12345#!/usr/bin...
Yalu
I code, therefore I am