./vendor/bin/phpunit
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
| <script> | |
| import { mapState } from 'vuex'; | |
| export default { | |
| name: 'Player', | |
| computed: mapState('player', { | |
| currentState: 'currentState', | |
| currentMedia: 'currentMedia', | |
| progress: 'progress' | |
| }), | |
| methods: { |
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
| delete_booking(code) { | |
| this.get_id_by_code(code, (id) => { | |
| this.$store.dispatch('delete_booking', id) | |
| .then(() => { | |
| this.$toasted.show('Deleted successfully'); | |
| this.status = false; | |
| }) | |
| .catch(() => this.$toasted.show('Something went wrong')); | |
| }); | |
| }, |
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
| function isOperator(c) { | |
| return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'; | |
| } | |
| function leftAssoc(c) { | |
| return c != '^'; | |
| } | |
| function priority(c) { | |
| if (c == '^') return 3; |
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
| function renderFullPage(html, preloadedState) { | |
| return ` | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Redux Universal Example</title> | |
| </head> | |
| <body> | |
| <div id="root">${html}</div> | |
| <script> |
Nginx
Install
sudo apt-get install nginx
CMD
sudo systemctl status nginxsudo systemctl start nginxsudo systemctl restart nginxsudo nginx -t# Check nginx syntax.
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
| sudo service php7.2-fpm restart | |
| for display enabled php version in terminal by php -v. we need to set update cli version of php. | |
| use below command to update php cli version | |
| // change terminal (cli) version (7.2 to 7.1) | |
| sudo update-alternatives --set php /usr/bin/php7.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
| // routerlink-with-string-interpolation-in-vue | |
| <router-link :to='`/patients/detail/${props.row.id}`'> | |
| <i class="fa fa-eye" aria-hidden="true"></i> | |
| </router-link> |
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
| $faker = \Faker\Factory::create(); | |
| $tomorrow = Carbon::createFromTimeStamp($faker->dateTimeBetween('now', '+01 days')->getTimestamp()); | |
| $end_time = Carbon::createFromFormat('Y-m-d H:i:s', $tomorrow)->addHours(3); |