sudo apt-get install python3-pip
sudo pip3 install virtualenv
<?php | |
// You may need to use this classes | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Pagination\Paginator; | |
// Searching in segments Model, with pagination, ordering, sorting and searching. | |
$segments = Segment::where('segmentProviderName', $provider); // first where condition | |
$segmentStatuses = config('constants.segment.status'); |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php | |
pecl version | |
# | |
# Install mcrypt extension | |
# see http://pecl.php.net/package-info.php?package=mcrypt&version=1.0.1 | |
# |
#!/usr/bin/env bash | |
##### | |
# Script to install postfix | |
##### | |
DOMAIN="example.com" | |
EMAIL="[email protected]" | |
PASSWORD="example.com1*" |
#! /bin/sh | |
# postfix and dovecot setup script (instead of sendmail) | |
# based on http://centossrv.com/postfix.shtml | |
echo "### install postfix via yum if not exist" | |
if [ ! -e /etc/postfix/main.cf ] | |
then | |
sudo yum -y install postfix | |
else |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Contracts\Foundation\Application; | |
use Illuminate\Routing\Route; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken; | |
use Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode as Original; |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/
is intended for code that can run as-issrc/
is intended for code that needs to be manipulated before it can be used$(function() { | |
var currentAjaxRequest = null; | |
var searchForms = $('form[action="/search"]').css('position', 'relative').each(function() { | |
var input = $(this).find('input[name="q"]'); | |
input.attr('autocomplete', 'off').bind('keyup change', function() { | |
var term = $(this).val(); | |
var form = $(this).closest('form'); | |
var searchURL = '/search?type=product&q=*' + term + '*'; | |
var resultsList = $('.search-results'); | |
resultsList.perfectScrollbar({ |
// Add a 401 response interceptor | |
window.axios.interceptors.response.use(function (response) { | |
return response; | |
}, function (error) { | |
if (401 === error.response.status) { | |
swal({ | |
title: "Session Expired", | |
text: "Your session has expired. Would you like to be redirected to the login page?", | |
type: "warning", | |
showCancelButton: true, |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |