- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert)
- Editorial - https://leetcode.com/problems/minimum-cost-to-make-array-equal/editorial/
- Solution - https://github.com/smhemel/leetcode/blob/main/2448.%20Minimum%20Cost%20to%20Make%20Array%20Equal.cpp
- First, install git into you machine.
- Set Username -
git config --global user.name "Sm Hemel" - Set Email -
git config --global user.email smhemel.eu@gmail.com
- Show file list with hidden file -
ls -a - Create file -
touch test.txt
This file contains hidden or 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
| // source: http://stackoverflow.com/a/11058858 | |
| function ab2str(buf) { | |
| return String.fromCharCode.apply(null, new Uint16Array(buf)); | |
| } |
This file contains hidden or 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
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', // your root username (leave as root) | |
| database : 'join_us', // the name of your db (create this if you haven't already) | |
| password : process.env.MYSQL_PW // your root user's password | |
| }); | |
| //If you want to impor password then |
This file contains hidden or 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
| //Start MySql in terminal | |
| mysql-ctl cli | |
| //Create Database | |
| CREATE DATABASE test_db; | |
| //List available databases | |
| show databases; | |
| //Delete Or Drop a database |
This file contains hidden or 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
| // This file add your project and customize your Label. | |
| import UIKit | |
| @IBDesignable | |
| class UILabelX: UILabel { | |
| @IBInspectable var cornerRadius: CGFloat = 0 { | |
| didSet { | |
| self.layer.cornerRadius = cornerRadius |
NewerOlder