Skip to content

Instantly share code, notes, and snippets.

View FrMnJ's full-sized avatar
💜

José Serratos FrMnJ

💜
View GitHub Profile
@FrMnJ
FrMnJ / main.s
Last active September 30, 2025 18:12
Finding the Minimum in an Array Using x86_64 Assembly (AT&T/GAS Syntax)
.globl _start
.section .data
n:
.quad 10
numbers:
.quad 10, 7, 3, 1, 2, 4, 5, 8, 9, 30
.section .text
_start:
# The numbers of elements in the array
movq n, %rcx
@FrMnJ
FrMnJ / main.s
Last active September 30, 2025 17:21
Finding the Maximum in an Array Using x86_64 Assembly (AT&T/GAS Syntax)
.globl _start
.section .data
n:
.quad 1001
mynumbers:
.quad 5, 20, 33, 80, 52, 102, 10, 11, 35, 99, 100, 101
# This program will find the largest value in the array
.section .text
_start:
# Put the number of elements of the array in %rcx
class Quartiles {
List<double>? _quartiles;
Quartiles(List<double> nums) {
nums = List.from(nums)..sort();
int n = nums.length;
int mid = n ~/ 2;
List<double> lowerHalf, upperHalf;
@FrMnJ
FrMnJ / w1seguydecryptor.go
Created June 25, 2024 18:58
W1seGuy CTF XOR decryptor
package main
import (
"encoding/hex"
"flag"
"fmt"
"log"
)
const KEY_LENGTH = 5