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 / client.py
Created July 17, 2024 10:38
feterated learning
import argparse
import os
from flwr.client import ClientApp, NumPyClient
import tensorflow as tf
from flwr_datasets import FederatedDataset
# Parse arguments
parser = argparse.ArgumentParser(description="Flower")
parser.add_argument("--partition-id", type=int, choices=[0, 1, 2], default=0, help="Partition of the dataset")
args, _ = parser.parse_known_args()
@SirmaXX
SirmaXX / 2d.html
Last active April 21, 2024 09:16
Leafletmap 2d to 3d
<!DOCTYPE html>
<html lang="en">
<head>
<base target="_top">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Marker cluster</title>
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
https://www.google.com/search?q=fair+prosper&oq=fair+prosper&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIGCAEQLhhA0gEIMjk0NGowajGoAgCwAgA&sourceid=chrome&ie=UTF-8
https://fonts.google.com/specimen/Playfair+Display
https://fonts.google.com/specimen/Lato
https://www.solopress.com/blog/tutorials/how-to-add-fonts-in-photoshop/
@SirmaXX
SirmaXX / hdrlinki
Last active February 24, 2024 09:52
beckman shader
hdr dosyası buradan indirebilirsiniz
https://threejs.org/examples/webgl_loader_gltf/textures/equirectangular/royal_esplanade_1k.hdr
sudo apt-get purge fail2ban modoboa automx amavis clamav dovecot postfix postwhite spamassassin radicale opendkim backup nginx
sudo rm -r /srv/automx
sudo rm -r /srv/radicale
sudo rm -r /run/opendkim
sudo rm -r /srv/vmail
sudo rm -r /srv/modoboa
@SirmaXX
SirmaXX / inverschi.py
Last active January 25, 2024 00:02
code snippets for inverse chi-square distribution
from scipy.stats.distributions import chi2
chi2.ppf(0.95, df=5) # 11.07
Merhaba,
15/01/2024 tarihi saat 13:15' de gerçekleştireceğimiz sınavımız Mühendislik Fakültesi Makine Mühendisliği Bölümü MAK117 & MAK118 dersliklerinde gerçekleşecektir.
Bilginize.
https://drive.google.com/drive/u/0/folders/1FsVgXhGOL7Kqo4j5lcZkyqgH9MmHne_a
@SirmaXX
SirmaXX / exercise.R
Last active December 2, 2023 13:08
alıştırma için örnek simülasyon,n sayısı değişken
library(ggplot2)
library(dplyr)
set.seed(100)
#örneklem sayısı tanımlayınız.
n<-50
x_values <- round(runif(n, min = -1, max = 1), 4)
########### ########### olasılık yoğunluk fonksiyonu ###########
expdf <- function(xvalue) {
stopifnot(all(xvalue >= -1), all(xvalue <= 1))
@SirmaXX
SirmaXX / index.html
Created November 17, 2023 06:12
boostrap 5 accordion change icon
<div class="row gx-5">
<div class="col-xl-8">
<!-- FAQ Accordion 1-->
<h2 class="fw-bolder mb-3">Account &amp; Billing</h2>
<div class="accordion mb-5" id="accordionExample">
<div class="accordion-item">
<h3 class="accordion-header" id="headingOne"><button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">Accordion Item #1</button></h3>
@SirmaXX
SirmaXX / xai.R
Created October 31, 2023 01:27
xai examples codes
library("rms")
library("randomForest")
library("gbm")
library("DALEX")
set.seed(1)
library("DALEXtra")
library("lime")
#https://medium.com/analytics-vidhya/a-beginners-guide-to-learning-r-with-the-titanic-dataset-a630bc5495a8