This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = '[{"id":1,"first_name":"Halli","last_name":"Serridge","date":"2017-01-31","location":"Prosyana"}, | |
{"id":2,"first_name":"Henrieta","last_name":"Salzburg","date":"2016-08-20","location":"Antalaha"}, | |
{"id":3,"first_name":"Matteo","last_name":"Fogt","date":"2016-04-15","location":"Fucheng"}, | |
{"id":4,"first_name":"Gray","last_name":"Trosdall","date":"2016-08-15","location":"Yinglong"}, | |
{"id":5,"first_name":"Jerome","last_name":"Edmonson","date":"2017-05-24","location":"San Jose"}, | |
{"id":6,"first_name":"Else","last_name":"Massie","date":"2016-07-14","location":"Tours"}, | |
{"id":7,"first_name":"Marleah","last_name":"Tamblyn","date":"2017-07-29","location":"Kazimierz Dolny"}, | |
{"id":8,"first_name":"Richy","last_name":"Nowaczyk","date":"2017-05-24","location":"Torsby"}, | |
{"id":9,"first_name":"Yuma","last_name":"Torn","date":"2016-10-20","location":"Veruela"}, | |
{"id":10,"first_name":"Leann","last_name":"Giberd","date":"2017-05-31","location":"Najin"}]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>consul</short> | |
<description>Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. Register external services such as SaaS providers as well.</description> | |
<port protocol="tcp" port="8300"/> | |
<port protocol="tcp" port="8301"/> | |
<port protocol="tcp" port="8302"/> | |
<port protocol="tcp" port="8400"/> | |
<port protocol="tcp" port="8500"/> | |
<port protocol="tcp" port="8600"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Header always set Access-Control-Allow-Origin "*" | |
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" | |
Header always set Access-Control-Max-Age "15552000" | |
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" | |
# and after RewriteEngine On | |
RewriteCond %{REQUEST_METHOD} OPTIONS | |
RewriteRule ^(.*)$ $1 [R=200,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!Doctype html> | |
<html> | |
<head> | |
<title>Easy Gallery by Fabrice Kabongo</title> | |
</head> | |
<body> | |
<div class="carousel-item" style="display: block"> | |
<img src="http://lorempixel.com/200/200/sports" width="100" /> | |
</div> | |
<div class="carousel-item" style="display: none"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Based on Rick Strahl code | |
http://www.west-wind.com/weblog/posts/2008/Mar/18/A-simple-formatDate-function-for-JavaScript | |
Contributors: | |
Clauber Stipkovic - @clauberhalic | |
Mário Rinaldi - @MarioRinaldi | |
*/ | |
Date.prototype.formatDate = function (format) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try{ | |
$em->flush(); | |
}catch(InactiveScopeException $ex){ | |
/* | |
* if the request scope is not yet created in another command | |
* we create a new request | |
* and try to save | |
*/ | |
if (PHP_SAPI == 'cli') { | |
$request = new Request(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sacoza\ClientBundle\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Sacoza\CoreBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use Sacoza\ClientBundle\Entity\CompanyAuditor; |