Skip to content

Instantly share code, notes, and snippets.

View SirmaXX's full-sized avatar
🏠
Working from home

Deniz Balcı SirmaXX

🏠
Working from home
View GitHub Profile
@SirmaXX
SirmaXX / audionot.ipynb
Last active August 29, 2023 23:50
fonksiyonel veri analizi için hazırlanmış bir örnek
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@SirmaXX
SirmaXX / client.py
Created March 29, 2023 05:00
fastapi websocket and console client
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)
@SirmaXX
SirmaXX / table.txt
Created January 6, 2023 01:08
tables for blog
+---------------------------------------------+------------------------------------------------+
| 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) |
@SirmaXX
SirmaXX / hideorremove.html
Last active October 29, 2022 18:56
its show that hide or remove
<!DOCTYPE html>
<html>
<body>
<head>
<style>
#demo1{
background-color: tomato;
color: aliceblue;
width: 150px;
height: 150px;
<?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){
@SirmaXX
SirmaXX / upsetWithoutlibrary.R
Created August 12, 2022 00:36
Upset plot mechanism
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)
@SirmaXX
SirmaXX / maewhile.R
Last active June 26, 2022 13:36
mae for while
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) {
@SirmaXX
SirmaXX / maefor.R
Last active June 26, 2022 13:35
Mae for two loop
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]
@SirmaXX
SirmaXX / Factory_Log.py
Last active July 1, 2023 06:01
logging system with factory design pattern
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
@SirmaXX
SirmaXX / solution.R
Last active April 27, 2022 19:39
CHAPTER10 Solution power of (-1/2)
---
title: "R Notebook"
output: html_notebook
---
# Chapter 10 Canonical correlation Analysis (CH10 p 539)
Chapter is related to Partitioning the covariance matrix (p73 ch2) .(ABbrevation :kısaltma )