This file contains 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
{ | |
"attraction": "Attraction", | |
"attractionMap": "Map", | |
"attractionVisitAll": "Yout've visited", | |
"attractionVisitOf": "of", | |
"attractionVisitLocation": "locations", | |
"immersiveView": "View 360 Experience", | |
"teasureHunting": "AR Treasure Hunting", | |
"teasureHuntingStart": "Start Treasure Hunting", | |
"teasureHuntingTarget": "Target View", |
This file contains 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
#include "DHT.h" | |
DHT dht; | |
const int dhtPin = D0; | |
struct DhtValue { | |
float humidity; | |
float celcius; | |
float fahrenheit; |
This file contains 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
server { | |
listen 80; | |
index index.php index.html | |
server_name kiccamtlearning.com; | |
error_log /var/log/nginx/error.log; | |
access_log /var/log/nginx/access.log; | |
root /var/www/html/public; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; |
This file contains 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> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
font-family: "Lato", sans-serif; | |
} | |
.sidenav { |
This file contains 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
CREATE TABLE `products` ( | |
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | |
`created_at` timestamp NULL DEFAULT NULL, | |
`updated_at` timestamp NULL DEFAULT NULL, | |
`code` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`price` decimal(15,2) NOT NULL, | |
`description` text COLLATE utf8mb4_unicode_ci NOT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `products_code_unique` (`code`), |
This file contains 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 App\Http\Controllers\Api; | |
use App\Http\Controllers\Controller; | |
use App\User; | |
use Illuminate\Http\Request; | |
use GuzzleHttp\Exception\GuzzleException; | |
use GuzzleHttp\Client; |
This file contains 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
@extends('layouts.main') | |
@section('title', 'Payment - Result') | |
@section('content') | |
<main> | |
<table> | |
<tr> | |
<td><b>Price Exclude VAT</b></td> | |
<td><span class='blue'>::</span></td> |
This file contains 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 = $request->getParsedBody(); | |
$price = (float)$data['price']; | |
$hasVat = @$data['hasVat']; | |
$hasTax = @$data['hasTax']; | |
$vat = $data['vat']; | |
$tax = $data['tax']; | |
if ($hasVat) { | |
if ($vat == 'included') { | |
$priceExcludeVat = $price * (100 / 107); |
This file contains 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
const ITEMS = [ | |
[ | |
'code' => 'PD001', | |
'name' => 'PHP & Javascript', | |
'categories' => ['CT001', 'CT002'], | |
'price' => 350.00, | |
], | |
[ | |
'code' => 'PD002', | |
'name' => 'Javscript inaction', |
This file contains 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 App\Services; | |
use Illuminate\Support\Facades\Log; | |
use Illuminate\Support\Facades\Http; | |
class LineMessagingService | |
{ | |
public function push($to, $messages) |
NewerOlder