Skip to content

Instantly share code, notes, and snippets.

View bfu4's full-sized avatar
🌸

bfu4 bfu4

🌸
View GitHub Profile
@bfu4
bfu4 / QuadReg.md
Last active December 8, 2020 19:10
[JAVA] Quadratic Regression - Solving for a parabola with 2 points

[JAVA] Quadratic Regression - Solving for a parabola with 2 points

A little bit about this: for the economy aspect of a plugin that I'm writing, I need to determine the price of something based on 1) the initial price and 2) a maximum price.

With this, if we create a parabola (and cut it off where x >= 0) with the axis of symmetry as 0 (x = 0), we can get this value. Since the parabola is dynamic based on the item needing to be charged, we have to create something to return the y of a point when given the x.

Our two points for testing were (0, 100) and (2500, 6000). Where 100 is base, 6000 is max, 2500 is maxLevel and point is the point we want to get. HOWEVER with the idea that this parabola starts at 0, a good idea is to treat this as

@bfu4
bfu4 / aa_dyKNOW.md
Last active September 10, 2021 20:27
dyknow r/e [BRIEF]

due to html failing to want to format, i've migrated this writeup to a gist. also, since by having your extension on the chrome web store you're basically open-source, the files referred to are ATTACHED to this gist. ha!

did you know?

a small writeup on the reverse-engineering of dyknow (school-wide chrome extension

introduction

i felt like doing a little analysis on dyknow, to see what goes on in it.

@bfu4
bfu4 / TRUSTD.md
Last active November 24, 2020 08:01
some trustd thing

gist for trustdissues repository (more detailed! yay!)

a more detailed explanation of how this project even occurred.

repo: trustdissues

twitter and apple insider brought my attention to this. after most of my twitter feed was tweeting about how apple can see what you're opening, when you're opening it (supposedly), the first idea was: how can we prevent this?

the linked article above mentions how it won't send to the ocsp server unless you're connected to wifi. obviously, turning off the wifi every time you launch an app is just annoying. so the thought was - the daemons always running right? if there's not an if statement and it's trying to send information to that server, how can we change it to prevent it?