Skip to content

Instantly share code, notes, and snippets.

View andrewmilson's full-sized avatar
🎯
Focusing

Andrew Milson andrewmilson

🎯
Focusing
View GitHub Profile
@andrewmilson
andrewmilson / makefile
Last active March 10, 2016 22:51
CUDA implementation of a totalistic cellular automaton. http://imgur.com/Yp6YwPU 50000 steps
all:
nvcc -o celular totalistic-celular-automaton.cu -lX11
clean:
rm ./celular
@andrewmilson
andrewmilson / game-of-life.cu
Last active November 22, 2018 02:35
A wrapping implementation Conway's Game of Life in C++ CUDA
#include <iostream>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define HEIGHT 32
#define WIDTH 32
using namespace std;
@andrewmilson
andrewmilson / game-of-life.cc
Last active February 25, 2016 11:37
A wrapping implementation Conway's Game of Life in C++
#include <iostream>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define HEIGHT 100
#define WIDTH 300
using namespace std;
@andrewmilson
andrewmilson / file-upload-multipart.go
Last active April 24, 2024 10:27
Golang multipart/form-data File Upload
package main
import (
"net/http"
"os"
"bytes"
"path"
"path/filepath"
"mime/multipart"
"io"
<a href="javascript:mailtoManager('example', 'example.com')">Contact</a>