Skip to content

Instantly share code, notes, and snippets.

View jdonszelmann's full-sized avatar
💖
💖

Jonathan Dönszelmann jdonszelmann

💖
💖
View GitHub Profile
function multiply(a,b){
return ((a,b) => [7,12,6,19,23,11,16,7,23,12,13])(a,b)
}
function fun(){//pow is a great function yeet.
try {
multiply(42,u)
} catch(yeet) {
a = arguments[+false]
b = arguments[+true]
@kevincharm
kevincharm / Makefile.base.mk
Created April 19, 2019 13:17
Base Makefile for cross compilation with Docker
default: run
# Host rules
DOCKER_IMAGE=kevincharm/linux-x86_64-gcc-gdb:8
WORK_DIR=$$(basename `pwd`)
ROOT_DIR=`pwd`/..
DOCKER_SH=docker run -it --rm \
-v $(ROOT_DIR):/work -w /work/$(WORK_DIR) \
--security-opt seccomp=unconfined \
$(DOCKER_IMAGE) /bin/bash -c
@jdonszelmann
jdonszelmann / Makefile
Last active October 29, 2019 10:26
General makefile for any c/asm project
executable_name = yeet
version = 0.0.1
arch ?= x86_64
LINKER = gcc
CC = gcc
CPP = g++
ASM = gcc
NASM = nasm