Skip to content

Instantly share code, notes, and snippets.

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

Seçkin Kükrer LeaveNhA

👨‍🏫
Yüksek bir ideal için çalış!
View GitHub Profile
{
"swagger": "2.0",
"x-id": [
"default"
],
"paths": {
"/math/plus": {
"get": {
"responses": {
"200": {
We can't make this file beautiful and searchable because it's too large.
question_id,bundle_id,explanation_id,correct_answer,part,tags,deployed_at
q1,b1,e1,b,1,1;2;179;181,1558093217098
q2,b2,e2,a,1,15;2;182,1558093219720
q3,b3,e3,b,1,14;2;179;183,1558093222784
q4,b4,e4,b,1,9;2;179;184,1558093225357
q5,b5,e5,c,1,8;2;179;181,1558093228439
q6,b6,e6,d,1,9;2;179;182,1558093231307
q7,b7,e7,d,1,11;7;179;183,1558093233992
q8,b8,e8,b,1,20;21;179;184,1558093236876
q9,b9,e9,c,1,13;2;179;183,1558093239849
@LeaveNhA
LeaveNhA / why_people_letting_python_be_a_major_languıage_questionmark.py
Created July 13, 2022 23:06
In Python, you can merge two nested dicts or apply functions over them even if them nested, yes!
def apply_with(d, fn=lambda x: x):
res = d.copy() # "= dict(d1)" for lists of tuples
for key, val in res.items():
if type(res[key]) is dict:
res[key] = apply_with(res[key], fn)
else:
res[key] = fn(res[key])
return res
def merge_with(d1, d2, fn=lambda x, y: x + y):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LeaveNhA
LeaveNhA / OMUerfi.sh
Last active June 22, 2022 12:19
OMÜ Exam Result Fetcher and Informer!
# Go and login on UBS.
# Use your browser's development tools to get the
# NET_SessionId cookie information.
# Place the information in '!!!' part of the code.
# Run the code on MacOS as it is or replace "say"
# call with something else like ringing the shell or etc.
$LOGINSECRET=!!! watch -n 10 'if [[ $(http https://ubs.omu.edu.tr/Ogrenci/Ogr0201/Default.aspx\?lang\=tr-TR Cookie:ASP.NET_SessionId=$LOGINSECRET |grep "_tdBn" |egrep -o ">[0-9]+<" |cut -c 2-3 |wc -w |egrep -o "[0-9]+") == "10" ]]; then
say "Congrats\! The exams results are online\!"
else
@LeaveNhA
LeaveNhA / UIST624 - GLM, HW.ipynb
Created June 9, 2022 18:15
Homework, postgrad UIST624, OMU - Data Science
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
33 180 90 359 EVET A POSITIF
@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",