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
Route::get('/', function() | |
{ | |
Event::listen('test', function($user) | |
{ | |
$date = '2014-07-09 15:58:17'; | |
$user = new User(); | |
$user->username = 'admin'; | |
$user->password = 'password'; |
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 | |
function convertTime($date, $convert_from, $convert_to) | |
{ | |
$current_time_zone = $date; | |
if(!empty($date)) | |
{ | |
if(!empty($convert_to)) | |
{ | |
$dt_obj = new \DateTime($date." ".$convert_from); |
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
class A | |
{ | |
function __construct(B $b) | |
{ | |
} | |
} | |
class B |
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 | |
require 'vendor/autoload.php'; | |
$app = new \Slim\Slim(array( | |
'debug' => true | |
)); | |
$app->add(new Category()); | |
// Add Category |
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
test | |
s | |
s | |
sd | |
s | |
d | |
s |
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
{ | |
"Response": { | |
"MetaInfo": { | |
"Timestamp": "2015-04-27T18:05:45.856Z", | |
"AdditionalData": [ | |
{ | |
"value": "2015-04-27T18:05:00.040+0000", | |
"key": "CurrentTrafficLastUpdate" | |
}, | |
{ |
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
{ | |
current_server_time: 1443289612, | |
device_status: { | |
battery: -23, | |
device_events: { | |
moving: 1443279100 | |
}, | |
fw_version: "0.1", | |
received_at: 1443289375, | |
type_of_device: "wifi,gsm,gps" |
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
<VirtualHost tauriel.local:80> | |
ServerName tauriel.local | |
DocumentRoot "/Applications/xampp/htdocs/tauriel/public" | |
<Directory "/Applications/xampp/htdocs/tauriel/public"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> |
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
APP_ENV=local | |
APP_DEBUG=true | |
APP_KEY=aXe6eF4kJy4reKVB9c6dRu2MVJM9kTeN | |
DB_HOST=localhost | |
DB_DATABASE=carpool | |
DB_USERNAME=root | |
DB_PASSWORD= | |
CACHE_DRIVER=file |
OlderNewer