Skip to content

Instantly share code, notes, and snippets.

View marcusziade's full-sized avatar
🦾
Coding fiercely

Marcus Ziadé marcusziade

🦾
Coding fiercely
View GitHub Profile
@marcusziade
marcusziade / hm.py
Last active December 28, 2022 02:22
implement hindley-milner by skynet
# Define a set of basic types
INTEGER = 'INTEGER'
BOOLEAN = 'BOOLEAN'
FUNCTION = 'FUNCTION'
# Define a class for type variables
class TypeVar:
def __init__(self, name):
self.name = name
@marcusziade
marcusziade / webserver.c
Created December 28, 2022 02:03
websever in C by skynet
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#define BUFFER_SIZE 1024
#define NUM_THREADS 5
@marcusziade
marcusziade / gist:5f16755cd409c4cf05fa5e7ffdf159e7
Created September 28, 2022 17:15
Apex API Player request
{
"global": {
"name": "ELPRESADOR",
"uid": 2297593921,
"avatar": "",
"platform": "PC",
"level": 169,
"toNextLevelPercent": 85,
"internalUpdateCount": 3403,
"bans": {
import Foundation
struct KeychainItem {
// MARK: Types
enum KeychainError: Error {
case noPassword
case unexpectedPasswordData
case unexpectedItemData
case unhandledError
{
"workbench.colorTheme": "Visual Studio Light",
"window.zoomLevel": 2
}