Skip to content

Instantly share code, notes, and snippets.

View angelo-moreira's full-sized avatar
🚀
Ship it!!!

Angelo Moreira angelo-moreira

🚀
Ship it!!!
View GitHub Profile
@angelo-moreira
angelo-moreira / interview.php
Created April 27, 2018 13:14
interview file
<?php
/*
You will write some functions related to calendar dates. In all problems, a “date” is an array of type [int*int*int], where the first part is the year, the second part is the month, and the third part is the day. A “reasonable” date has a positive year, a month between 1 and 12, and a day no greater than 31 (or less depending on the month).
Your solutions need to work correctly only for reasonable dates, checking for reasonable dates it's not required.
1 - Write a function is_older that takes two dates and evaluates to true or false. Use the $dates array as input.
It evaluates to true if the first argument is a date that comes before the second argument. (If the two dates are the same, the result is false.)
@angelo-moreira
angelo-moreira / .kitchen.yml
Created December 13, 2016 19:17 — forked from maxim/.kitchen.yml
A hack to easily launch and test multiple nodes with test kitchen 1.0
# We need each node defined as a separate platform in order to give them different ip addresses on the private network
---
driver_plugin: vagrant
driver_config:
require_chef_omnibus: true
box: opscode-ubuntu-12.04
box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box