- Установка необходимых пакетов:
sudo apt-get install zsh
Если еще не установлен git, то: sudo apt-get install git
- Клонируем репозиторий oh-my-zsh
<?php | |
namespace CarAdmin\Table; | |
use ZfTable\AbstractTable; | |
class CarBrandTable extends AbstractTable | |
{ |
/** | |
* Convert an image | |
* to a base64 url | |
* @param {String} url | |
* @param {Function} callback | |
* @param {String} [outputFormat=image/png] | |
*/ | |
function convertImgToBase64URL(url, callback, outputFormat){ | |
var img = new Image(); | |
img.crossOrigin = 'Anonymous'; |
/** | |
* Get restaurants around user | |
* | |
* @param $lng | |
* @param $lat | |
* @param $rad | |
* @return array | |
*/ | |
public function getRestaurantsAround($lng, $lat, $rad = 1200) | |
{ |
<?php | |
namespace App\Testing; | |
use Illuminate\Foundation\Testing\ApplicationTrait; | |
use Illuminate\Foundation\Testing\AssertionsTrait; | |
/** | |
* Class LaravelTestCase | |
* @package App\Testing |
# Set cache dir | |
proxy_cache_path /var/cache/nginx levels=1:2 | |
keys_zone=microcache:5m max_size=1000m; | |
# Virtualhost/server configuration | |
server { | |
listen 80; | |
server_name yourhost.domain.com; | |
# Define cached location (may not be whole site) |
server { | |
listen 80 default_server; | |
server_name example.com www.example.com; | |
access_log /srv/www/example.com/logs/access.log; | |
error_log /srv/www/example.com/logs/error.log; | |
root /srv/www/example.com/public; | |
index index.php index.html; |
#!/bin/sh | |
echo "Flushing iptables rules..." | |
sleep 1 | |
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT |
$('#asideRegisterForm').on('submit', function (e) { | |
$.ajax({ | |
type: "POST", | |
url: $(this).attr('action'), | |
data: $(this).serialize() | |
}).done(function () { | |
$('#asideRegisterForm').hide('fast'); | |
$('#asideRegister').show('fast'); | |
}); | |
return false; |
{% extends "VswSystemAdminBundle::layout.html.twig" %} | |
{% block title %} | |
VswSystem - Donors | |
{% endblock %} | |
{% block content %} | |
{% from 'MopaBootstrapBundle::macros.html.twig' import label %} | |
<div class="page-header"> | |
<h1>Donors | |
<small> | |
<hr> |