Skip to content

Instantly share code, notes, and snippets.

@NazarenoL
NazarenoL / gist:846e522e00594e0009b19f23f9475d78
Created September 22, 2016 22:28
Keybase identification
### Keybase proof
I hereby claim:
* I am nazarenol on github.
* I am nazareno (https://keybase.io/nazareno) on keybase.
* I have a public key whose fingerprint is 0518 E970 405D AC4C 262E 4A77 0ADA E658 2137 9AF5
To claim this, I am signing this object:

Bunq Test Chat

Made by Nazareno Lorenzo for Bunq.com code test.

Made using Laravel 4 latest stable release: Laravel

Includes both a RESTful JSON API that handles all the required transactions and business model, and an almost independent web UI, implementing all the available methods in the API.

According to the requirements, user registration/authentication wasn't implemented.

@NazarenoL
NazarenoL / functions.php
Created October 2, 2015 21:20
Coding horror found around #2
function display_output($string = null){
// header('content-type: application/json; charset=utf-8');
header("Access-Control-Allow-Origin: *");
header("Content-Disposition: attachment; filename=output.json");
header("Pragma: no-cache");
header('Content-Type: text/html; charset=utf-8');
header("Expires: 0");
if (!$data) {
redirect(base_url());
} else if ($data) {
$this->load->view('frontend/popup/embed', $data);
} else {
redirect(base_url());
}