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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="new.js"></script> | |
<script> | |
function deneme(){ | |
alert("deneme"); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 asyncio | |
import websockets | |
import json | |
async def hello(): | |
async with websockets.connect('ws://localhost:8001/ws') as websocket: | |
message = {"user_id_foreginkey": 0, "message": "sson123", "game_room_foreignkey": 0, "game_date": "2023-03-29"} | |
await websocket.send(json.dumps(message)) | |
response = await websocket.recv() | |
print(response) |
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
+---------------------------------------------+------------------------------------------------+ | |
| Avantajları | Dezavantajları | | |
+---------------------------------------------+------------------------------------------------+ | |
| Kolay konfigürasyon | Arayüze sahip olmaması(konsol üzerinden | | |
| | sistemimizi yapılandıracağız.) | | |
+---------------------------------------------+------------------------------------------------+ | |
| Birçok farklı yapıyı bir arada kullanabilme | Daha fazla ram kullanımı | | |
+---------------------------------------------+------------------------------------------------+ | |
| Daha az disk alanı kullanımı | Disk yönetimini daha zorlu (dockerda volumelar | | |
| | yani sanal diskler kullanılıyor) | |
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> | |
<body> | |
<head> | |
<style> | |
#demo1{ | |
background-color: tomato; | |
color: aliceblue; | |
width: 150px; | |
height: 150px; |
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 | |
// update job | |
$data_file='Json_Folder/products.json'; | |
$id =15; | |
$data = file_get_contents($data_file); | |
$json = json_decode($data, true); | |
foreach($json as &$a){ |
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
values <- c(1:5) | |
# define area for the histogram | |
par(fig=c(0.1,0.7,0.3,0.9)) | |
barplot(values) | |
# define area for the boxplot | |
par(fig=c(0.8,1,0,1), new=TRUE) | |
stripchart(values, method="jitter") | |
# define area for the stripchart | |
par(fig=c(0.1,0.67,0.1,0.25), new=TRUE) |
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
startTime <- Sys.time() | |
y<-c(10,8,6,4,2) | |
x<-c(5,4,3,2,1) | |
n<-length(y) | |
toplam=0 | |
i <- 1 | |
while (i <= n) { |
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
startTime <- Sys.time() | |
y<-c(10,8,6,4,2) | |
x<-c(5,4,3,2,1) | |
n<-length(y) | |
toplam=0 | |
for (i in 1:n) { | |
diff=y[i]-x[i] |
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
class Log: | |
global date_time | |
now = datetime.now() | |
date_time = now.strftime("%m/%d/%Y, %H:%M:%S") | |
def __init__(self,severity,message,user): | |
self.severity=severity |