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
import React, {useState, useEffect}from 'react'; | |
import kuzzle from './services/kuzzle'; | |
import './App.css'; | |
const Message = ({ message, username }) => { | |
return ( | |
<div className={(message.username === username ? 'fromMe' : 'fromOthers') + ' messages'}> | |
<span> User: <b>{message.username}</b> (</span> | |
<span> {new Date(message.createdAt).toLocaleString().split("GMT")[0]} )</span> |
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
pragma solidity ^0.5.0; | |
contract ChargingStationDeviceDemo { | |
uint constant IMPOSSIBLE_INDEX = 99999999999; | |
address owner; | |
struct ChargingStationDeviceDemoStruct { | |
string status; |
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
# This my current application code (Booking system have not been implemented) | |
# The Current Flow of this version: | |
# 1. The user selects the food/drinks. | |
# 2. The user enters his table number. | |
# 3. The user makes payment | |
# 4. The kiosk process the order. (POST to ORDER then POST to ORDERDETAIL). | |
# If Failed (The QTY is not sufficient), the KIOSK return the user's money. | |
# If success then continue to the next step. | |
# 5. Order is done. The kiosk print the receipt. |
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
/* | |
* Percobaan 1 | |
*/ | |
public class Dog { | |
// Instance Variables | |
String breed; | |
String size; | |
int age; |