Skip to content

Instantly share code, notes, and snippets.

View c3r38r170's full-sized avatar
๐Ÿ˜Ž
Busy writing code!

c3r38r170

๐Ÿ˜Ž
Busy writing code!
  • Funes, Rosario, Santa Fe, Argentina
View GitHub Profile
@Liebranca
Liebranca / dice.asm
Last active October 31, 2024 15:33
D&D dice set in flat assembler
; to compile: fasm dice.asm roll
; to run: ./roll 1d20 2d4 4d6 etc.
;
; --- * --- * ---
; info
format ELF64 executable 3;
entry _start;
define VERSION v0.00.6a;
@misiek08
misiek08 / gist:7988b3b9a9911e35d0b3
Created August 10, 2014 11:02
PHP class for parsing HTTP multipart/form-data request body
<?php
class HttpMultipartParser
{
public function parse_multipart($stream, $boundary = null)
{
$return = array('variables' => array(), 'files' => array());
$partInfo = null;