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
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |
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
| //let stackCount = 0; // show stack sequence | |
| let height = 4; | |
| draw(height) | |
| function draw(h) { | |
| if (h === 0) { | |
| return; | |
| } |
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
| public String checkWinner() { | |
| int index = 0; | |
| for(int i = 0; i < 3; i++) { | |
| if(!game[index].equals("") && | |
| game[index].equals(game[index+1]) && | |
| game[index].equals(game[index+2])) { | |
| return game[index]; | |
| } |
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
| /** | |
| * @fileOverview Javascript high precision calculate | |
| * @author ra <ra@rockagen.com> | |
| * @version 0.1 | |
| * @see {@link http://usejsdoc.org|jsdoc} | |
| * @example | |
| * | |
| * 0.05 + 0.01 //0.060000000000000005 | |
| * 1.0 - 0.42 //0.5800000000000001 | |
| * 4.015 * 100 //401.49999999999994 |
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
| #jodel: | |
| cd /home/forge/jodel.gunharth.io | |
| git pull origin master | |
| composer install --no-dev --optimize-autoloader | |
| php artisan migrate | |
| php artisan optimize | |
| #php artisan route:clear | |
| #php artisan route:cache | |
| php artisan cache:clear |
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
| always_populate_raw_post_data = -1 |
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
| [mysqld] | |
| sql_mode=NO_ENGINE_SUBSTITUTION |
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
| export PATH="$HOME/.composer/vendor/bin:$PATH" | |
| # Git | |
| alias ga="git add" | |
| alias gaa="git add ." | |
| alias gc="git commit -m" | |
| alias gp="git push" | |
| alias gs="git status" | |
| alias gl="git log" | |
| alias nah="git reset --hard && git clean -df" |
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
| APP_ENV=testing | |
| APP_KEY=SomeRandomString | |
| DB_CONNECTION=testing | |
| DB_TEST_USERNAME=root | |
| DB_TEST_PASSWORD= | |
| CACHE_DRIVER=array | |
| SESSION_DRIVER=array | |
| QUEUE_DRIVER=sync |
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
| [ | |
| { "keys": ["f9"], "command": "expand_fqcn"}, | |
| { "keys": ["shift+f9"], "command": "expand_fqcn", "args": {"leading_separator": true} }, | |
| { "keys": ["f10"], "command": "find_use"}, | |
| { "keys": ["f7"], "command": "insert_php_constructor_property" }, | |
| { "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": false } }, | |
| { "keys": ["alt+shift+c"], "command": "toggle_comment", "args": { "block": true } }, | |
| { "keys": ["alt+x"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
| { "keys": ["alt+,"], "command": "move_to", "args": {"to": "eol", "extend": false} }, | |
| { "keys": ["alt+shift+,"], "command": "move_to", "args": {"to": "eof", "extend": false} }, |
NewerOlder