Skip to content

Instantly share code, notes, and snippets.

Avatar

Austin Maddox AustinMaddox

View GitHub Profile
View lattice_take_home.md

Lattice Take Home Exercise

First off, thank you for taking the time to interview with the Lattice team. We know your creativity and time are valuable and we're excited you are willing to share some of it with us.

Project

We would like you to build a small web app for finding information about all of your favorite movies using the The Movie Database API.

Minimum Feature Set

@AustinMaddox
AustinMaddox / TestCase.php
Created Dec 21, 2017
Force the use of only one "test-tenant" in phpunit tests
View TestCase.php
<?php
namespace Tests;
use Hyn\Tenancy\Contracts\Repositories\HostnameRepository;
use Hyn\Tenancy\Contracts\Repositories\WebsiteRepository;
use Hyn\Tenancy\Environment;
use Hyn\Tenancy\Models\Hostname;
use Hyn\Tenancy\Models\Website;
use Illuminate\Foundation\Testing\DatabaseTransactions;
@AustinMaddox
AustinMaddox / reverse_fitment_lookup_service_example.php
Last active Aug 29, 2015
Reverse fitment lookup service PHP example. The WPS reverse fitment web service returns vehicle data given one particular WPS part number. The output format is JSON. Below is a full example of how to do this via PHP using cURL.
View reverse_fitment_lookup_service_example.php
<?php error_reporting(E_ALL | E_STRICT); ?>
<!DOCTYPE html>
<html>
<head>
<title>Reverse fitment example</title>
</head>
<body>
<?php
// Parameters to send the web service program.
// Example: http://www.example.com/reverse_fitment_lookup_service_example.php?DEALER=###&PASSWORD=###&ITEM=2-b9es&OUTPUT=json
@AustinMaddox
AustinMaddox / fitment_part_number_request_service_example.php
Last active Dec 21, 2015
Fitment part number request service PHP example.The WPS Fitment Part Number Request web service is meant to find all the parts associated to a single vehicle. Below is a full example of how to do this via PHP using cURL.
View fitment_part_number_request_service_example.php
<?php error_reporting(E_ALL | E_STRICT); ?>
<!DOCTYPE html>
<html>
<head>
<title>Fitment example</title>
</head>
<body>
<?php
// Parameters to send the web service program.
// Example: http://www.example.com/fitment_part_number_request_service_example.php?DEALER=###&PASSWORD=###&FITMENT=HONDA HON8300 2012&OUTPUT=json
You can’t perform that action at this time.