Skip to content

Instantly share code, notes, and snippets.

View justinmeiners's full-sized avatar

Justin Meiners justinmeiners

View GitHub Profile
#include <iostream>
#include <cmath>
template <class T, class F>
struct double_decorator
{
F func;
double_decorator(F func) : func(func) {}
T operator()(T x)
#!/bin/bash
convert lena.tiff test0.jpg
b=4
for i in `seq 1 360`; do
x=$(($i-1))
if [ $(($i%2)) -eq 0 ];
then
b=$((4))
else
indent -bl -lp -bap -npsl -l160 -nut -ldi1 -di1 -i4 vec_math.h vec_math3.h
#include <stdint.h>
#include <stdio.h>
#include <memory.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#define DDS_MAGIC 542327876
#define FOUR_CC_DXT1 0x31545844