Create SendWelcomeEmailNotification
notification
php artisan make:notification SendWelcomeEmailNotification
$(document).ready(function() { | |
var cc_4 = $("input[name='cc_4']"); | |
cc_4.blur( function() { // DEV-599 | |
if ( (cc_4.val().length) == 3 ) { | |
var no_amex = "Sorry American Express is not accepted."; | |
if ( $('#cc_number-E').length ) { |
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
authService.login = function(credentials) { | |
// we need this to return a promise but we also want to hook into the promise. | |
return ApiInterface.makeRequest('/api/auth', 'POST', credentials) | |
.then( function(response) { // success | |
Session.setAuthToken(response.data.authToken); | |
Session.initDataStore('order-details', credentials); | |
$rootScope.$emit(AUTH_EVENTS.loginSuccess); | |
}) | |
.catch( function(error) { // failed |
authService.login = function(credentials) { | |
// we need this to return a promise but we also want to hook into the promise. | |
return ApiInterface.makeRequest('/api/auth', 'POST', credentials) | |
.then( function(response) { // success | |
Session.setAuthToken(response.data.authToken); | |
Session.initDataStore('order-details', credentials); | |
$rootScope.$emit(AUTH_EVENTS.loginSuccess); | |
}) | |
.catch( function(error) { // failed |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use PhpAmqpLib\Connection\AMQPStreamConnection; | |
use PhpAmqpLib\Message\AMQPMessage; | |
$connection = new AMQPStreamConnection('jeric.devel.nz', 5672, 'guest', 'guest'); | |
$channel = $connection->channel(); | |
$channel->queue_declare('hello', false, false, false, false); |
<?php | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use PhpAmqpLib\Connection\AMQPStreamConnection; | |
$connection = new AMQPStreamConnection('jeric.devel.nz', 5672, 'guest', 'guest'); | |
$channel = $connection->channel(); | |
$channel->queue_declare('hello', false, false, false, false); |
/** | |
* Validate an input string if it is inside ASCII 32 - 126 range | |
* @param string | |
* @return true if all characters in the string are in range, else false | |
*/ | |
var chkASCII32_126 = function(string) { | |
return !string.match(/[^\x20-\x7e]/g); | |
} | |
$(".chorusASCIIValidation").keyup(function() { |
#!/bin/sh | |
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r |