Skip to content

Instantly share code, notes, and snippets.

View fkotey's full-sized avatar

Felix Kotey fkotey

  • Discover Financial Services
  • Riverwoods, IL
View GitHub Profile
@fkotey
fkotey / TwoSum.ahk
Created March 4, 2024 05:46 — forked from errorseven/TwoSum.ahk
TwoSum - Solutions: Naive O(n2), Sorted O(nlogn), Hash O(n)
/*
_____ __
/__ \__ _____ / _\_ _ _ __ ___
/ /\/\ \ /\ / / _ \\ \| | | | '_ ` _ \
/ / \ V V / (_) |\ \ |_| | | | | | |
\/ \_/\_/ \___/\__/\__,_|_| |_| |_|
Coded by errorseven @ 1/26/17
The two sum problem is a common interview question, and it is a variation of the
subset sum problem. There is a popular dynamic programming solution for the
@fkotey
fkotey / stats_equations.Rmd
Created July 17, 2022 12:41 — forked from derekmcloughlin/stats_equations.Rmd
Useful Latex Equations used in R Markdown for Statistics
---
title: "Sample Equations used in Statistics"
output: html_document
---
### Summations
### Without Indices
$\sum x_{i}$
@fkotey
fkotey / cctv-startup.bat
Created February 10, 2020 05:12 — forked from arthurzhukovski/cctv-startup.bat
RTSP to HTTP with VLC (Windows)
:: The following line is neccessary if you need an ability to restart the streams with this batch file
:: Kill all existing streams (the command actually suspends ALL the vlc processes):
taskkill /f /im "vlc.exe"
:: Run two instances of VLC. These would transcode MP4 rtsp-stream to Motion JPEG http-stream:
start vlc -vvv -Idummy rtsp://login:password@192.168.0.2/streaming/channels/2/preview --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9911/}
start vlc -vvv -Idummy rtsp://login:password@192.168.0.3/streaming/channels/2/preview --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1},fps=10,width=640,height=360}:standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:9912/}
:: In order to execute VLC with `vlc` as in exapmle above, you have to add corresponding value to the PATH variable.
:: Otherwise you have t
#!/usr/local/bin/python
# extrusion parameters (mm)
extrusion_width = 0.48 # typical: nozzleDiameter * 1.2 (f.e. a 0.4mm nozzle should be set to 0.48mm extrusion width in slicers)
layer_height = 0.2 # max: 50% of your extrusion_width
filament_diameter = 1.73 # manufacturers typically sell 1.73-1.74mm filament diameter (always lower than 1.75 to prevent cloggs) tested with many brands
# print speeds (mm/s)
travel_speed = 150
first_layer_speed = 25
@fkotey
fkotey / README.md
Created November 22, 2019 13:23 — forked from knoopx/README.md
Creality Ender 3 Stock Factory Vref

Creality3D v1.1.2 stock vref values

A4988 Drivers
Vref set to ~90% of stepper rated current
Rs = 0.1ohm

X = 0,58v (0,725A)
Y = 0,58v (0,725A)
Z = 0,58v (0,725A)

Learning Object Oriented Python

I wrote this as a guide for a financial analyst friend of mine looking to learn Python. He is already fairly well versed in doing Project Euler problems in Ruby. All italicized text is for the benefit of any other readers, such as yourself.

Each section is divided into a short resource (10 minutes or less), a long resource (days to weeks or more), and a challenge.

~

So what you're looking to do is to be able to recreate financial models in code. And other types of models. This is a noble pursuit.