Skip to content

Instantly share code, notes, and snippets.

Avatar
🤗
Hey you! Keep up the great work! 👍

Andrew Liu MrPickles

🤗
Hey you! Keep up the great work! 👍
View GitHub Profile
@MrPickles
MrPickles / bingo.c
Last active Sep 20, 2016
This is a short program written for HACS408E that will generate a victory message for the sharedverbose binary.
View bingo.c
#include <fcntl.h>
#include <string.h>
#include <sys/mman.h>
#include <unistd.h>
/*
* This causes sharedverbose to print "bingo \o/" by modifying the shared
* memory portion to give conditions in which the program will terminate
* and give a victory message.
*
@MrPickles
MrPickles / mystery.ml
Created May 12, 2017
Guess the type of the mysterious OCaml variable!
View mystery.ml
let mystery =
let pair x f = f x x in
let f1 x = pair x in
let f2 x = f1 (f1 x) in
let f3 x = f2 (f2 x) in
let f4 x = f3 (f3 x) in
let f5 x = f4 (f4 x) in
fun z -> (f5 (fun x -> x) z)
;;
View keybase.md

Keybase proof

I hereby claim:

  • I am mrpickles on github.
  • I am liuandrewk (https://keybase.io/liuandrewk) on keybase.
  • I have a public key ASCnacpgumKDOOdlQmfz8q6M94UhuqmHueObo-BuSrNJFwo

To claim this, I am signing this object: