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
| #!/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" |
| <?php | |
| class Skyscanner | |
| { | |
| public function getFlightsTest() | |
| { | |
| $apikey = ''; // enter your api key | |
| $url = 'http://business.skyscanner.net/apiservices/pricing/v1.0/'; | |
| $params = array( | |
| "country" => "GB", |
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
| // ./__mocks__/localStorage.js | |
| let mockStorage = {}; | |
| module.exports = window.localStorage = { | |
| setItem: (key, val) => Object.assign(mockStorage, {[key]: val}), | |
| getItem: (key) => mockStorage[key], | |
| clear: () => mockStorage = {} | |
| }; | |
| <?php | |
| /** | |
| * Existence of Composition class requires that an external object of | |
| * class B is passed in on construction | |
| * | |
| * UML Explanation - The object at this role contains the object at the opposite role. | |
| * | |
| * Alternatively stated, an object of class Composition cannot be created without | |
| * an object of class B (in this case through dependency injection) |
| <?xml version="1.0"?> | |
| <ruleset> | |
| <description>Custom ruleset for Behance code standards</description> | |
| <!-- Rues are imported individually to allow for easy configuration --> | |
| <!-- Property names and values can be found here: http://phpmd.org/rules/index.html --> | |
| <rule ref="rulesets/codesize.xml/ExcessiveMethodLength"> | |
| <properties> |
| /** | |
| * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken | |
| * It was requested to be introduced at as part of the jsonwebtoken library, | |
| * since we feel it does not add too much value but it will add code to mantain | |
| * we won't include it. | |
| * | |
| * I create this gist just to help those who want to auto-refresh JWTs. | |
| */ | |
| const jwt = require('jsonwebtoken'); |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.