Skip to content

Instantly share code, notes, and snippets.

View LeaveNhA's full-sized avatar
👨‍🏫
Yüksek bir ideal için çalış!

Seç LeaveNhA

👨‍🏫
Yüksek bir ideal için çalış!
View GitHub Profile
@LeaveNhA
LeaveNhA / pcr.result.data
Last active May 23, 2022 14:41
PCR Test Results sample data
KOKU KAYBI,TAT KAYBI,BURUN AKMASI,YÜKSEK ATEŞ,KAS AĞRISI,ÖKSÜRÜK,TEST SONUCU
1, 1, 1, 1, 0, 1, 1
1, 0, 1, 1, 0, 1, 1
1, 1, 0, 1, 1, 1, 1
0, 1, 0, 1, 0, 1, 0
0, 0, 0, 0, 1, 1, 0
0, 0, 1, 0, 0, 0, 0
1, 1, 0, 1, 1, 1, 1
1, 0, 0, 0, 0, 1, 0
0, 1, 0, 0, 0, 1, 0
{
"english" [
[
"00000000000000000000000000000000",
"abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about",
"c55257c360c07c72029aebc1b53c05ed0362ada38ead3e3e9efa3708e53495531f09a6987599d18264c1e1c92f2cf141630c7a3c4ab7c81b2f001698e7463b04",
"xprv9s21ZrQH143K3h3fDYiay8mocZ3afhfULfb5GX8kCBdno77K4HiA15Tg23wpbeF1pLfs1c5SPmYHrEpTuuRhxMwvKDwqdKiGJS9XFKzUsAF"
],
[
"7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f",
[
"abbey",
"abducts",
"ability",
"ablaze",
"abnormal",
"abort",
"abrasive",
"absorb",
"abyss",
@LeaveNhA
LeaveNhA / languages.of.mine.js
Last active May 2, 2022 00:53
List of the language I use, yet;
// GH api is so annoying. It might show partial data.
// The structure is;
// [[language name, _, percent in total],,,]
await fetch('https://api.github.com/users/LeaveNhA/repos?per_page=1000')
.then(r => r.json())
.then(rs => rs.map(r => r.languages_url))
.then(rs => rs.map(async (r) => (await (await fetch(r)).json())))
.then(lrs => Promise.all(lrs))
.then(ls => ls.filter(l => !l.hasOwnProperty('message')))
.then(ls => ls.map(l => Object.entries(l)))
@LeaveNhA
LeaveNhA / customer.segmentation.data
Last active April 25, 2022 15:14
UIST602, OMÜ, Data Science Master, W8 homework file, Clustering.
CustomerID,Genre,Age,Annual Income (k$),Spending Score (1-100)
0001,Male,19,15,39
0002,Male,21,15,81
0003,Female,20,16,6
0004,Female,23,16,77
0005,Female,31,17,40
0006,Female,22,17,76
0007,Female,35,18,6
0008,Female,23,18,94
0009,Male,64,19,3
@LeaveNhA
LeaveNhA / cluster.data
Created April 25, 2022 15:12
UIST602, OMÜ, Data Science Master, W8 homework file, Clustering.
X Y
1 4
2 5
3 5
4 7
5 8
6 8
6 5
7 6
8 8
@LeaveNhA
LeaveNhA / patient.data
Created April 14, 2022 14:18
Patient dataset for UIST602 @ OMÜ, Data Science
YAS BOY KILO KOLESTROL SIGARA KAN_GRUBU SONUC
60 176 87 395 EVET B POSITIF
53 167 86 350 EVET o POSITIF
64 170 100 304 EVET A POSITIF
37 173 79 178 HAYIR o NEGATIF
26 170 81 206 HAYIR o NEGATIF
61 165 92 284 EVET o POSITIF
39 174 95 232 HAYIR o NEGATIF
28 171 68 252 PASIF A POSITIF
@LeaveNhA
LeaveNhA / brew-sync.sh
Created October 29, 2021 09:45 — forked from jamiew/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox (including casks)
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
// Developed by Seçkin KÜKRER (@LeaveNhA) for Javascript Topluluğu
// Değerleri isimli alanlara dönüştürmek için:
const mapWithKey = key => values => values.map(value => ({[key]: value}));
// Nesneleri birleştirmek için:
const mergeObjects = (obj1, obj2) => ({...obj1, ...obj2});
// Veri serilerini eşli olarak yapılandırmak için:
const zip = (a, b) => a.map((m, j) => [m, b[j]]);
@LeaveNhA
LeaveNhA / precisionDowner.js
Created February 22, 2021 10:44
Javascript Number Precision Equaliser
// Developed by Seçkin KÜKRER (@LeaveNhA) for Vue Turkiye Community!
// Downs the numbers precision to the lowest precision number of the vector.
const precisionDowner = ns =>
([v => v.map(n => ({count: (n + '').length, value: n})),
v => v.sort((a,b) => a.count > b.count),
v => ({meta: {minCount: v[0].count}, value: v}),
md => md.value.map(n => Number.parseFloat(n.value).toPrecision(md.meta.minCount))