Skip to content

Instantly share code, notes, and snippets.

<?php # -*- coding: utf-8 -*-
/**
* Create a nav menu with very basic markup.
*
* @author Thomas Scholz http://toscho.de
* @version 1.0
*/
class T5_Nav_Menu_Walker extends Walker_Nav_Menu
{
/**
@mirr
mirr / README.markdown
Created March 23, 2017 03:36 — forked from marijn/README.markdown
List of nationalities in YAML, CSV and TXT format

List of nationalities

It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.

##List of countries

I've also compiled a list of countries

@mirr
mirr / Skyscanner.php
Created October 12, 2016 06:34
Create session key and pull json data
<?php
class Skyscanner
{
public function getFlightsTest()
{
$apikey = ''; // enter your api key
$url = 'http://business.skyscanner.net/apiservices/pricing/v1.0/';
$params = array(
"country" => "GB",
@mirr
mirr / after.sh
Created September 18, 2016 17:16
php7.0-phalcon [laravel/homestead]
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
#
# Install Phalcon
######################## START ##############################
phalcon_so="`php-config --extension-dir`/phalcon.so"