This file contains 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
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 |
This file contains 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
sudo su - postgres | |
create database #{DATABASE_NAME}; | |
psql -U postgres | |
//list all dbs | |
postgres-# \l |
This file contains 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
/giphy #caption "your gif caption here" some search text | |
/genie whoisoncall |
This file contains 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
rvm use | |
bundle install | |
bundle exec rake db:migrate | |
bundle exec rake jobs:work | |
? after a funcion mean it returns a boolean |
This file contains 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
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 |
This file contains 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
//My vscode extensions | |
live server | |
//key board short cuts | |
command + p | |
option click |
This file contains 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
//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 |
This file contains 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
//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/ |
This file contains 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
//============ | |
//iterm | |
//============ | |
download iterm | |
cmd+D splits the window horizontally | |
cmd+shift+D splits the window vertically | |
//Open Toolbelt | |
Profiles, Command History, Notes |
This file contains 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
use Ctl+Alt+Up (sublime vertical select ) |
NewerOlder