Skip to content

Instantly share code, notes, and snippets.

@wgh000
wgh000 / code-review-checklist.md
Last active Aug 18, 2019 — forked from nerandell/code-review-checklist.md
PHP Code Review Guidelines
View code-review-checklist.md

Make sure these boxes are checked before submitting the PR

General

  • The code works
  • The code is easy to understand
  • Follows coding conventions PSR-1 and PSR-2
  • Declared variables are used
  • Variable names are simple, short and spelt correctly
  • No negatively named boolean variables
  • Variable names contain units where applicable
@wgh000
wgh000 / american_states_with_code.php
Created Mar 21, 2017
List of 50 states of United States with code
View american_states_with_code.php
$statesArray = array(
'AL' => 'Alabama',
'AK' => 'Alaska',
'AZ' => 'Arizona',
'AR' => 'Arkansas',
'CA' => 'California',
'CO' => 'Colorado',
'CT' => 'Connecticut',
'DE' => 'Delaware',
'DC' => 'District Of Columbia',
@wgh000
wgh000 / american_states.php
Last active Jun 12, 2020
List of the 50 states of United States
View american_states.php
<?php
$states = array(
'Alabama',
'Alaska',
'Arizona',
'Arkansas',
'California',
'Colorado',
'Connecticut',
'Delaware',
@wgh000
wgh000 / comuni_cap_italia.sql
Created May 5, 2014
Comuni e CAP italiani
View comuni_cap_italia.sql
# ************************************************************
# Generation Time: 2014-05-05 08:24:08 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
@wgh000
wgh000 / countries.php
Created Apr 29, 2014
Nazioni Mondo - Array PHP
View countries.php
<?php
$countries = array(
'AD' => 'Andorra',
'AE' => 'United Arab Emirates',
'AF' => 'Afghanistan',
'AG' => 'Antigua &amp; Barbuda',
'AI' => 'Anguilla',
'AL' => 'Albania',
'AM' => 'Armenia',
'AN' => 'Netherlands Antilles',
@wgh000
wgh000 / province.php
Last active May 18, 2021
Province Italia - Array PHP
View province.php
<?php
$province= array(
'AG' => 'Agrigento',
'AL' => 'Alessandria',
'AN' => 'Ancona',
'AO' => 'Aosta',
'AR' => 'Arezzo',
'AP' => 'Ascoli Piceno',
'AT' => 'Asti',
'AV' => 'Avellino',