Country | ქვეყანა | Страна | prefix | iso3 | iso2 |
---|---|---|---|---|---|
Kazakhstan | ყაზახეთი | Казахстан | +7 | KAZ | KZ |
Georgia | საქართველო | Грузия | +995 | GEO | GE |
Azerbaijan | აზერბაიჯანი | Азербайджан | +994 | AZE | AZ |
Afghanistan | ავღანეთი | Афганистан | +93 | AFG | AF |
Aland Islands | ოლანდის კუნძულები | Аландские острова | +358 |
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
if(isset($argv[1]) && $argv[1] == 'list' && isset($argv[2]) && $argv[2] == '--xml') { | |
$argv[2] = '--format=xml'; | |
$_SERVER['argv'] = $argv; | |
} | |
if (isset($argv[1]) && $argv[1] === '-V') { | |
die('Symfony version 3.0.0'); | |
} |
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 | |
return [ | |
'locale' => 'en', | |
'locales' => [ | |
'en' => 'English', | |
'ka' => 'Georgian', | |
'ru' => 'Russian', | |
], |
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
#!/bin/bash | |
LOG=/path/to/logs/COMMAND.log | |
while true; do | |
nohup /path/to/php /path/to/artisan COMMAND >> ${LOG} & | |
PID=$! | |
echo [`date +%Y-%m-%d:%H:%M:%S`] ${PID} STARTED >> ${LOG} |
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
var _ = {}; | |
// | |
_.request = function (url, method, data, successCallback, errorCallback, isJson) { | |
var request = new XMLHttpRequest(); | |
request.open(method, url, true); | |
// | |
request.onload = function() { |
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
# Basic stuff | |
sudo apt-get install git | |
sudo apt-get install unzip | |
# LAMP & Taskel | |
sudo apt-get install tasksel | |
sudo tasksel install lamp-server | |
# CURL for Composer | |
sudo apt-get install curl php-curl php-mcrypt php-mbstring php-gettext |
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 | |
namespace App; | |
class Album { | |
/** | |
* Get all of the orders for the book. | |
* | |
* @return \Illuminate\Database\Eloquent\Relations\MorphToMany |
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 | |
// query builder | |
Model::selectRaw('YEAR(created_at) year, MONTHNAME(created_at) month, COUNT(*) published') | |
->groupBy('year', 'month') | |
->get() | |
->toArray(); | |
// parse month string | |
Carbon::parse('May')->month; |
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 | |
namespace Tests; | |
use App\Exceptions\Handler; | |
use Illuminate\Contracts\Debug\ExceptionHandler; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
abstract class TestCase extends BaseTestCase | |
{ |
OlderNewer