Skip to content

Instantly share code, notes, and snippets.

View utkuboduroglu's full-sized avatar

Utku Boduroğlu utkuboduroglu

View GitHub Profile
@utkuboduroglu
utkuboduroglu / quick_mail_fill.py
Created August 30, 2023 15:05
A quick script for generating mail body/subject to be sent to landlords :)
#!/usr/bin/env python3
import sys
def main():
# we hardcode the filename for quick use
with open("./mail_boilerplate.txt", "r") as paste_fp:
mail_body = paste_fp.read()
# by convention, we will read input sequentially as follows:
@utkuboduroglu
utkuboduroglu / training_yolov4.ipynb
Last active September 29, 2021 15:04
A sample Colab notebook for training YOLOv4-tiny with Darknet.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@utkuboduroglu
utkuboduroglu / dlearn.ipynb
Last active March 8, 2021 16:11
A very simple convnet cats-dogs classifier.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
# Z(N) defined for base 10, which has divisors
# 2 and 5
def Z(number):
factor = 5
if number < factor:
return 0
rem = np.int(np.floor(number/factor))
return rem + rFactors(rem, factor)
body {
max-width: 65em;
margin: auto;
background: white;
font-family: 'Source Serif Pro' !important;
font-size: large !important;
}
@utkuboduroglu
utkuboduroglu / prelim_ml.md
Last active October 11, 2022 10:55
mathematics revision

list of preliminary topics for foundational mathematics

The following is a list of topics & books that are on calculus, algebra and category theory, ordered in a way to be thorough as possible; intended to be used as preliminary study for any branch of study which has algebra/calculus as prerequisites. This list was first intended as a thorough preliminary study for machine learning, but admittedly, the list still lacks a lot of supplementary topics, most notably:

  • Statistics in general
  • Measure theory in general
  • The topology of R^n
  • Details of commutative algebra

Furthermore, this list is, by no means, complete. These are just listed off of a few undergrad/graduate level mathematics books intended to help me relearn what I have either forgotten or haven't properly learned in the first place. I DO NOT condone anyone use this list as a guide for preliminary topics for any topic requiring calculus/linear algebra. The authors of these books most definitely know what they're doing & what they're w

@utkuboduroglu
utkuboduroglu / Quirks of C.md
Created September 11, 2018 07:34 — forked from fay59/Quirks of C.md
Quirks of C

Here's a list of mildly interesting things about the C language that I learned over time. There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
       int x;
   } baz;
};
@utkuboduroglu
utkuboduroglu / Execve-Stack.nasm
Created March 14, 2018 16:58 — forked from securitytube/Execve-Stack.nasm
Execve /bin/sh using the Stack Method
; Author: Vivek Ramachandran
; Website: http://securitytube.net
; Training: http://securitytube-training.com
;
global _start
section .text
_start: