Skip to content

Instantly share code, notes, and snippets.

View zspine's full-sized avatar
🎯
Focusing

M#3 zspine

🎯
Focusing
View GitHub Profile
@zspine
zspine / Example.php
Created February 22, 2012 17:33
Pimcore Object toArray()
<?php
class Website_Model_Product extends Object_Concrete
{
/**
* Retreive the values in an array
*
* @return array
*/
public function toArray()
@zspine
zspine / nationalities.php
Last active October 24, 2023 08:58
PHP Nationalities Array
$nationals = array(
'Afghan',
'Albanian',
'Algerian',
'American',
'Andorran',
'Angolan',
'Antiguans',
'Argentinean',
'Armenian',
@zspine
zspine / countries.csv
Last active April 6, 2024 19:11
Country Code, ISO and Nationality ( Please use https://mledoze.github.io/countries/ )
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan
@zspine
zspine / MySQL dump Gzip
Created November 1, 2014 15:52
MySQL command line import gzip file
zcat DATABASE_BACKUP.sql.gz | mysql -u DB_USERNAME -p DB_NAME
@import "https://fonts.googleapis.com/css?family=Lato:400,300,400italic,700,700italic";
@import "https://fonts.googleapis.com/css?family=Roboto+Slab:700,400";
#header .aui-header
{
background-color: #343131;
border-bottom: 1px solid #222222;
}
#title-text a
{
@zspine
zspine / world-countries
Last active October 15, 2022 02:29
World Countries - iso2, iso3, nationality, code and phone prefix
{
"AF": {
"name": "Afghanistan",
"iso2": "AF",
"iso3": "AFG",
"nationality": "Afghan",
"code": "004",
"prefix": "93"
},
"AL": {
@zspine
zspine / CallerPermission.php
Created August 30, 2015 16:19
BeatSwitch lock doctrine example
<?php
//src/library/App/Entity/CallerPermission.php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="lock_caller_permission")
*/
@zspine
zspine / .htaccess
Last active July 6, 2019 02:09
htaccess cheatsheet
#Hide directories and files
Options -Indexes
#Set Enviroment Varaibles
SetEnv APPLICATION_ENV "development"
# Enable the rewrite engine
RewriteEngine On
# redirect non www to www
http://blog.anorgan.com/2015/01/15/using-google-analytics-api-with-php/
@zspine
zspine / app.js
Created November 4, 2015 04:19 — forked from jrmoran/app.js
AngularJS - Charting with Flot
var App = angular.module('App', []);