Create SendWelcomeEmailNotification notification
php artisan make:notification SendWelcomeEmailNotification
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: Create a basic Amazon Linux Server with security group in existing VPC and subnet | |
| Parameters: | |
| KeyName: | |
| Description: Key Pair name | |
| Type: 'AWS::EC2::KeyPair::KeyName' | |
| Default: keyPair | |
| VPC: | |
| Description: Select a VPC | |
| Type: 'AWS::EC2::VPC::Id' |
| export default async function ({ store, route, redirect }) { | |
| store.dispatch('auth/loadToken') | |
| const hasToken = Boolean(store.state.auth.token) | |
| const isLoggedIn = store.state.auth.loggedIn | |
| // if have a token | |
| if (hasToken) { | |
| if (route.path === '/login') { | |
| redirect('/') | |
| return |
| version: '2' | |
| services: | |
| db: | |
| container_name: database | |
| image: mariadb # Pull mysql image from Docker Hub | |
| ports: # Set up ports exposed for other containers to connect to | |
| - "3306:3306" | |
| volumes: | |
| - ./dep/mysql:/docker-entrypoint-initdb.d |
| const component = Vue.extend({ | |
| template: `<input v-deep-model="'one.two.three'">`, | |
| data() { | |
| return { | |
| one: { two: { three: 'foo' } } | |
| }; | |
| } | |
| }); |
| version: '3' | |
| services: | |
| web: | |
| image: 'gitlab/gitlab-ce:latest' | |
| restart: always | |
| hostname: 'gitlab.example.com' | |
| environment: | |
| GITLAB_OMNIBUS_CONFIG: | | |
| external_url 'https://gitlab.example.com' | |
| nginx['listen_port'] = 80 |
| # see https://github.com/cmaessen/docker-php-sendmail for more information | |
| FROM php:5-fpm | |
| RUN apt-get update && apt-get install -q -y ssmtp mailutils && rm -rf /var/lib/apt/lists/* | |
| RUN docker-php-ext-install mysql mysqli sysvsem | |
| RUN pecl install xdebug-2.5.5 \ | |
| && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ |
| // Promise returning functions to execute | |
| function doFirstThing(){ return Promise.resolve(1); } | |
| function doSecondThing(res){ return Promise.resolve(res + 1); } | |
| function doThirdThing(res){ return Promise.resolve(res + 2); } | |
| function lastThing(res){ console.log("result:", res); } | |
| var fnlist = [ doFirstThing, doSecondThing, doThirdThing, lastThing]; | |
| // Execute a list of Promise return functions in series | |
| function pseries(list) { |
| /* Providers */ | |
| provider "aws" { | |
| region = "us-west-2" | |
| } | |
| /* Variables */ | |
| variable "name" { | |
| default = "XXXXX" |
| #!/usr/bin/env bash | |
| declare -i last_called=0 | |
| declare -i throttle_by=2 | |
| @throttle() { | |
| local -i now=$(date +%s) | |
| if (($now - $last_called >= $throttle_by)) | |
| then | |
| "$@" |