This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="random" | |
# Example aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user_name = 'big-shark'; | |
$client_id = ''; | |
$client_secret = ''; | |
function github($url, $query = array()) | |
{ | |
global $client_id, $client_secret, $user_name; | |
$query['client_id'] = $client_id; | |
$query['client_secret'] = $client_secret; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); | |
$uri = urldecode($uri); | |
$requested = __DIR__.'/public'.$uri; | |
// This file allows us to emulate Apache's "mod_rewrite" functionality from the | |
// built-in PHP web server. This provides a convenient way to test a Laravel | |
// application without having installed a "real" web server software here. | |
if ($uri !== '/' and file_exists($requested)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<<<CONFIG | |
packages: | |
- "lavoiesl/php-benchmark: dev-master" | |
CONFIG; | |
/** | |
* run command "melody run https://gist.github.com/Big-Shark/b8231dde88e3639add70" | |
* | |
*/ |
Все достаточно легко, первое это добавить пропел в проект через композер, все это описано на сайте пропела и не вызывает проблем.
Дальше несколько путей, если есть БД и если нет, я опишу сейчас путь при котором мы будем использовать стандартную авторизацию ларавель 5, а соответственно нам понадобятся его таблицы.
1 Установить пропел, я думаю вы это уже сделали
2 Дальше чтобы не лазить постоянно в папку вендоров к бин файлу, я вынес его в корень проекта, команда
ln -s vendor/bin/propel propel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DecimalFraction | |
{ | |
public $numerator; | |
public $denominator; | |
public $integer = 0; | |
public function __construct($numerator, $denominator, $integer = null) | |
{ | |
if( is_null($integer) ) |
- Первое, о чем нужно позаботиться - это виза. Если вы планируете поробыть в стране не более 30-ти дней, то достаточно туристической визы, которую вам оформят при въезде. Если вы планируете находится в стране более одного месяца, то вам нужно оформить двухмесячную туристическую визу, которую можно продлить еще на месяц находясь в Тайланде. Процесс оформление займет от 2 до 3 недель. Если вы хотите находиться в Тае до полугода, то в этом случае вам понадобится двухкратная туристическая виза. Отличие этой визы от однократной в том, что по истечении первых 3ех месяцев вам нужно будет сделать визаран и активировать второй срок визы.
- Билеты туда и обратно (В распечатаном виде). Без обратного билета нельзя получить визу, и вам могут отказать в посадке в самолет. Если точная дата вылета из пхукета не известна, то можно купить билеты у бюджетных авиаперевозчиков (лоукостеров) в любую другую страну, но учтите, такие билеты практически невозможно
- Create project
composer create-project laravel/laravel test-laravel-5-and-propel2 --prefer-source --dev --stability=dev
- Open dir
cd test-laravel-5-and-propel2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Process\Process; | |
class Install extends Command { | |
/** |
OlderNewer