Skip to content

Instantly share code, notes, and snippets.

@lucky-J
lucky-J / gist:768df4f1da5bcdcb30fde108940f01c3
Created August 15, 2019 10:28 — forked from vxnick/gist:380904
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@lucky-J
lucky-J / crawler-edit.php
Created April 26, 2017 14:55 — forked from jakzal/crawler-edit.php
Removing nodes with DomCrawler
<?php
<<<CONFIG
packages:
- "symfony/dom-crawler: ~2.3"
- "symfony/css-selector: ~2.3"
CONFIG;
use Symfony\Component\DomCrawler\Crawler;
$html = <<<HTML
#!/bin/bash
#build php project with composer
APP_ROOT=$(pwd);
SRC='';#put source here
DST='';#put destination here
DIRS=();#put directories here
FILES=();#put files here
START=`date +%s`;