Skip to content

Instantly share code, notes, and snippets.

Drakakis George drakakisgeo

  • Lollypop Web Services
  • N.Smirni, Greece
Block or report user

Report or block drakakisgeo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
drakakisgeo / gist:3431832d83193465dcd94ac8e53353e9
Created Sep 27, 2019
(ISO 3166-1 alpha-2) inline php Array
View gist:3431832d83193465dcd94ac8e53353e9
$countries = array('AF' => 'Afghanistan', 'AX' => 'Aland Islands', 'AL' => 'Albania', 'DZ' => 'Algeria', 'AS' => 'American Samoa', 'AD' => 'Andorra', 'AO' => 'Angola', 'AI' => 'Anguilla', 'AQ' => 'Antarctica', 'AG' => 'Antigua And Barbuda', 'AR' => 'Argentina', 'AM' => 'Armenia', 'AW' => 'Aruba', 'AU' => 'Australia', 'AT' => 'Austria', 'AZ' => 'Azerbaijan', 'BS' => 'Bahamas', 'BH' => 'Bahrain', 'BD' => 'Bangladesh', 'BB' => 'Barbados', 'BY' => 'Belarus', 'BE' => 'Belgium', 'BZ' => 'Belize', 'BJ' => 'Benin', 'BM' => 'Bermuda', 'BT' => 'Bhutan', 'BO' => 'Bolivia', 'BA' => 'Bosnia And Herzegovina', 'BW' => 'Botswana', 'BV' => 'Bouvet Island', 'BR' => 'Brazil', 'IO' => 'British Indian Ocean Territory', 'BN' => 'Brunei Darussalam', 'BG' => 'Bulgaria', 'BF' => 'Burkina Faso', 'BI' => 'Burundi', 'KH' => 'Cambodia', 'CM' => 'Cameroon', 'CA' => 'Canada', 'CV' => 'Cape Verde', 'KY' => 'Cayman Islands', 'CF' => 'Central African Republic', 'TD' => 'Chad', 'CL' => 'Chile', 'CN' => 'China', 'CX' => 'Christmas Island', 'CC'
drakakisgeo / Postmarkable.php
Last active Apr 9, 2019
Postmark Trait for Laravel Mailable - (Support for Tag and Meta)
View Postmarkable.php
namespace App\Billit\Traits;
trait Postmarkable
* @param array $tags
public function setTag(array $tag): void
drakakisgeo / Upgrading phpmyadmin
Created Feb 6, 2019
Upgrading phpmyadmin for apache php7.2 - Ubuntu 18.04
View Upgrading phpmyadmin
cd /usr/share/
sudo mv phpmyadmin/ phpmyadmin-4.8.5/
sudo wget
sudo unzip
sudo ln -s phpMyAdmin-4.8.5-all-languages phpmyadmin
sudo chown -R www-data:www-data /usr/share/phpmyadmin
sudo chmod -R 755 /usr/share/phpmyadmin
sudo service apache2 restart
drakakisgeo / moneyInput.vue
Last active Oct 19, 2018
Vue input field for money. ( Masks amount and always return a decimal )
View moneyInput.vue
<cleave v-model="money" :options="options"></cleave>
import Cleave from 'vue-cleave-component';
export default {
value: {
drakakisgeo / gist:48dcab1539612c82449b9757940ac7ee
Last active Jan 16, 2019
Print Access Token from Laravel Passport
View gist:48dcab1539612c82449b9757940ac7ee
namespace App\Traits;
use App\User;
use DateTime;
use GuzzleHttp\Psr7\Response;
use Illuminate\Events\Dispatcher;
use Laravel\Passport\Bridge\AccessToken;
use Laravel\Passport\Bridge\AccessTokenRepository;
drakakisgeo / gist:44f54ef8d65380fa228dd595d1281e1a
Created Dec 22, 2017
Working with Init Input and old() data from laravel in VueJs
View gist:44f54ef8d65380fa228dd595d1281e1a
//////---------- in Controller @edit method
// set a variable with all needed initialized input (key value pairs)
$initInput = []
$initInput = setInitInput($initInput);
// The setInitInput helper function, basically merges with old() input
function setInitInput(array $input){
$oldInput = session()->getOldInput();
drakakisgeo / Vue input component setup
Created Nov 20, 2017
Example of how to build a Vue.js input component
View Vue input component setup
<select :value="value" :name="name" class="form-control" v-on:input="updatevalue($" ref="input">
export default {
methods: {
drakakisgeo / select2-remove-border-radius.css
Created Nov 7, 2017
Remove 4px border-radius from Select2
View select2-remove-border-radius.css
.select2 {
border-color:1px solid #cacaca;
box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
.select2-dropdown, .select2-container--default .select2-selection--single ,
.select2-container--default .select2-selection--multiple, .select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--classic .select2-selection--multiple , .select2-container--classic .select2-selection--multiple,
.select2-container--classic .select2-selection--multiple .select2-selection__choice, .select2-dropdown,
drakakisgeo / Zurb foundation 6.4 paginator for Laravel
Created Oct 2, 2017
Zurb foundation 6.4 paginator for Laravel
View Zurb foundation 6.4 paginator for Laravel
@if ($paginator->hasPages())
<ul class="pagination" role="navigation" aria-label="Pagination">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="pagination-previous disabled"></li>
<li class="pagination-previous"><a href="{{ $paginator->previousPageUrl() }}" aria-label="Previous page"></a></li>
{{-- Pagination Elements --}}
drakakisgeo / Greekports.json
Created Sep 25, 2017
Greek Ports destinations-departures pairs from forthcrs
View Greekports.json
"departures": {
"from": [
"code": "PNA",
You can’t perform that action at this time.