Skip to content

Instantly share code, notes, and snippets.

View OkiStuff's full-sized avatar
🛩️
Student Pilot

Frankie A OkiStuff

🛩️
Student Pilot
View GitHub Profile
@OkiStuff
OkiStuff / MapTransformer.java
Created July 1, 2024 23:50
updated map transformer
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class MapTransformer<K, V>
{
private Transformation<K> keyTransformation;
private Transformation<V> valueTransformer;
public MapTransformer(Transformation<K> keyTransformation, Transformation<V> valueTransformer)
@OkiStuff
OkiStuff / MapTransformer.java
Created June 23, 2024 17:51
Helper class to transform values in map
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class MapTransformer<K, V>
{
private Transformation<K> keyTransformation;
private Transformation<V> valueTransformer;
public MapTransformer(Transformation<K> keyTransformation, Transformation<V> valueTransformer)
@OkiStuff
OkiStuff / OpenGLSpecialVertexAttributePointerFunctions.md
Created June 11, 2024 23:04
OpenGL Special Vertex Attribute Pointer Functions

OpenGL Special Vertex Attribute Pointer Functions

The commonly used Vertex Attribute Pointer Function is the standard glVertexAttribPointer, however dispite supporting multiple types of inputs, it should only be used for floats.

It will attempt to cast your value to float and then back to the original type which will likely result in broken values.

Integers

You should use glVertexAttribIPointer

@OkiStuff
OkiStuff / fizzbuzz.il
Created December 1, 2023 23:14
Fizzbuzz in CIL (.NET Bytecode)
.assembly FizzBuzz
{
}
.module FizzBuzz.exe
.class private FizzBuzz.Program
{
.method private hidebysig static void Main(string[] args) cil managed
{
@OkiStuff
OkiStuff / linked-list-cli.ps1
Last active June 21, 2023 23:41
Doubly Linked List in Powershell
param($ArrayIn)
class Node {
$Value
[Node]$Next
[Node]$Previous
Node($value, [Node]$next, [Node]$previous) {
$this.Value = $value
$this.Next = $next
@OkiStuff
OkiStuff / bitwise.md
Created October 12, 2022 19:56
Resource to learn more about Bitwise Operators

Title: Bitwise Operators Description: Bitwise Operators in Computer Science Date Created: 2022-10-12 License: GNU General Public License v3.0 Author: Frankie A. / OkiStuff Tags: #bitwise

NOT Operator

Bitwise NOT (also known as bitwise complement) is an operation which is effectively outputting the negative of the binary bit.

@OkiStuff
OkiStuff / anti-afk.lua
Last active September 22, 2022 23:14
Undetectable Anti AFK Cheat/Script for Synapse X or krnl (untested on krnl)
-- Licensed under GNU v3.0
-- https://github.com/OkiStuff/synapse-x-cheats/blob/main/LICENSE
-- Made by OkiStuff / Frankie A.
anti_afk = true
KEY_W = 87
KEY_S = 83
key = 0
warn("Anti AFK Loaded")
dup {
set dil_minimum_standard "1.0"
set dil_force_backcomp true
modules {
git
shell
}
if dil_host_type eq "windows" {
#!/bin/bash
## GNU Make and Git are needed for this script
## Install them through the websites or apt
## If not on debian, change these to your distro's package managers
sudo apt-get install libxi-dev
sudo apt-get install libxcursor-dev
sudo apt-get install libxinerama-dev
sudo apt-get install libxrandr-dev

Error Correction

Parity is a bit that says if a string of binary should have an even or odd amount of ones

  • 0 is even
  • 1 is odd

Hamming Distance

Hamming Distance is (in this context) basically the amount of bits need to be flipped until error detection fails

Example