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 charset="utf-8"> | |
<title>Modal Dialog</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
</head> |
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
function appendChildren(decorateDivFunction) { | |
var allDivs = [...document.getElementsByTagName("div")]; | |
for (var i = 0; i < allDivs.length; i++) { | |
var newDiv = document.createElement("div"); | |
decorateDivFunction(newDiv); | |
allDivs[i].appendChild(newDiv); | |
} | |
} |
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
# Fig. 19.15: fig19_15.py | |
# Event objects. | |
import threading | |
import random | |
import time | |
class VehicleThread(threading.Thread): | |
"""Class representing a motor vehicle at an intersection""" |
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 zmq | |
PORT = '4545' | |
IP = '10.30.0.25' | |
context = zmq.Context() | |
print("Menghubungkan ke server...") | |
socket = context.socket(zmq.REQ) | |
socket.connect("tcp://{ip}:{port}".format(ip=IP, port=PORT)) | |
tambah = input( | |
"Terhubung dengan server, apakah anda ingin mengirim pesan ? y/n \n") | |
if tambah == 'y': |
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
robots.map((user, i) => { | |
return ( | |
<Card | |
key={i} | |
id={robots[i].id} | |
name={robots[i].name} | |
email={robots[i].email}/> | |
); |
NewerOlder