PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
| import { DirectiveBinding, ObjectDirective } from 'vue' | |
| type FocusableElement = HTMLInputElement | HTMLTextAreaElement | |
| type NotificationCallback = (isNowFocused: boolean) => void | |
| type GenericEventHandler = () => void | |
| interface ExtendedDirective extends ObjectDirective { | |
| handleFocus: GenericEventHandler | |
| handleBlur: GenericEventHandler | |
| } |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| export default { | |
| props: { | |
| stripe: { | |
| type: String, | |
| required: true, | |
| }, | |
| options: { | |
| type: Object, | |
| required: true, | |
| } |
| <?php | |
| use App\Account; | |
| use App\User; | |
| use Illuminate\Database\Seeder; | |
| use Symfony\Component\Console\Helper\ProgressBar; | |
| use Symfony\Component\Console\Output\ConsoleOutput; | |
| class LocalUserSeeder extends Seeder | |
| { |
| <?php | |
| use Illuminate\Database\Seeder; | |
| use Symfony\Component\Console\Helper\ProgressBar; | |
| use Symfony\Component\Console\Output\ConsoleOutput; | |
| class UsersTableSeeder extends Seeder | |
| { | |
| /** | |
| * Amount. |
| template> | |
| <span id="outer" :style="outerStyle" @click="toggleActive"> | |
| <img id="img1" v-bind:src="node.attrs.src" style=" width: 100%;"/> | |
| <span id="handle" :style="handleStyle" @mousedown.prevent="handleMouseDown($event)"></span> | |
| </span> | |
| </template> | |
| <script> | |
| export default { |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { | |
| // no easing, no acceleration | |
| linear: t => t, | |
| // accelerating from zero velocity | |
| easeInQuad: t => t*t, | |
| // decelerating to zero velocity |
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.