List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
| <?php | |
| return PhpCsFixer\Config::create() | |
| ->setRules(array( | |
| '@PSR2' => true, | |
| 'array_indentation' => true, | |
| 'array_syntax' => array('syntax' => 'short'), | |
| 'combine_consecutive_unsets' => true, | |
| 'method_separation' => true, | |
| 'no_multiline_whitespace_before_semicolons' => true, | |
| 'single_quote' => true, |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
Vue.js is an amazing framework, which can be as powerful as Angular or React, the two big heavy hitters in the world of front-end frameworks.
However, most of Vue's ease-of-use is due to the use of Observables - a pattern that triggers re-renders and other function calls with the reassignment of a variable.
| body { | |
| font-family: tahoma; | |
| color:#282828; | |
| margin: 0px; | |
| } | |
| .nav-bar { | |
| background: linear-gradient(-90deg, #84CF6A, #16C0B0); | |
| height: 60px; | |
| margin-bottom: 15px; |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Pagination\LengthAwarePaginator; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| public function boot() |
| #!/usr/bin/python3 | |
| import requests | |
| url = "http://127.0.0.1:8000/api/test" | |
| payload={} | |
| headers = { | |
| 'Accept': 'application/json', | |
| 'Authorization': 'Bearer xxxxx' #add your API token |
| #!/bin/bash | |
| # uncomment and fix with appropriate values if you are behind a proxy | |
| #export https_proxy='http://localhost:3128' | |
| sl=en | |
| tl=$(basename $0) | |
| if [[ "${tl}" != "es" ]]; then | |
| sl=es | |
| fi | |
| base_url="https://translate.googleapis.com/translate_a/single?client=gtx&sl=${sl}&tl=${tl}&dt=t&q=" | |
| ua='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36' |