This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
template <class T, class F> | |
struct double_decorator | |
{ | |
F func; | |
double_decorator(F func) : func(func) {} | |
T operator()(T x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indent -bl -lp -bap -npsl -l160 -nut -ldi1 -di1 -i4 vec_math.h vec_math3.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
NewerOlder