Skip to content

Instantly share code, notes, and snippets.

View injune1123's full-sized avatar
🎁
Embracing whatever gift life sends me

Jun Yin injune1123

🎁
Embracing whatever gift life sends me
View GitHub Profile
@injune1123
injune1123 / JIRA filter
Created December 18, 2019 18:34
JIRA filter
project in (PRJ1, PRJ1) AND status in (Closed, Deployed, Done) AND created >= 2019-09-01 AND created <= 2019-12-31 AND assignee in (your user name) ORDER BY created DESC
@injune1123
injune1123 / Postgresql Cheat Sheet
Last active June 10, 2019 14:49
Frequently used Postgresql commands
sudo su - postgres
create database #{DATABASE_NAME};
psql -U postgres
//list all dbs
postgres-# \l
@injune1123
injune1123 / slack Cheatsheet
Last active May 20, 2019 21:25
slack Cheatsheet
/giphy #caption "your gif caption here" some search text
/genie whoisoncall
@injune1123
injune1123 / Rails Cheatsheet
Last active May 20, 2019 21:22
Rails Cheatsheet
rvm use
bundle install
bundle exec rake db:migrate
bundle exec rake jobs:work
? after a funcion mean it returns a boolean
@injune1123
injune1123 / Git Command Cheat Sheet
Last active April 3, 2019 15:50
My Frequently used GitHub commands
Learning resources:
https://learngitbranching.js.org/
I stashed twice, what shall I do????!!!!
https://www.atlassian.com/git/tutorials/saving-changes/git-stash
$git stash list
$git stash apply stash@{n}
Switching remote URLs
@injune1123
injune1123 / My vscode Cheat sheet
Last active February 6, 2019 04:44
My vscode Cheat sheet
//My vscode extensions
live server
//key board short cuts
command + p
option click
@injune1123
injune1123 / JS cheat sheet
Last active February 6, 2019 04:39
JS cheat sheet
//JS classes
classes are syntax sugars
classes get passed down
classes are not hoisted
two ways to define classes: class declarations and experssions
//straight functions vs classes
functions: hoisted, can be overwritten
classes: not hoisted, can be extended but not overwritten
classes are more like blueprints, which can have methods
@injune1123
injune1123 / Java Cheat Sheet
Last active January 15, 2019 16:00
Frequently Used Commands
//check the version of JAVA
java -version
// Switch to JAVA 8 on macOS High Sierra and Mojave
$export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/
@injune1123
injune1123 / My terminal tricks
Created January 4, 2019 19:29
iterm, bash, etc.
//============
//iterm
//============
download iterm
cmd+D splits the window horizontally
cmd+shift+D splits the window vertically
//Open Toolbelt
Profiles, Command History, Notes
@injune1123
injune1123 / My shortcut Cheatsheet
Created December 17, 2018 20:29
My shortcut Cheatsheet
use Ctl+Alt+Up (sublime vertical select )