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
#! /usr/bin/env python | |
import sys, os | |
def Usage(): | |
print "Usage: ./binary2header.py <file>" | |
if __name__ == '__main__': | |
if len(sys.argv) < 2: | |
Usage() |
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
#!/usr/bin/env bash | |
CC=clang | |
CCFLAGS="-c -I./libwebp-1.0.2" | |
function compile { | |
local DIR=$1 | |
local NAME=$2 | |
for file in `ls $DIR/*.c`; do | |
echo $file |
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
#!/usr/bin/env bash | |
# | |
# Build and install the cctools the SDK and macports. | |
# | |
# This script requires the OS X SDK and the Clang/LLVM compiler. | |
# | |
pushd "${0%/*}" &>/dev/null |
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/foreign/dlfcn_backup.h 2018-11-18 21:22:45.000000000 +0100 | |
+++ include/foreign/dlfcn.h 2018-11-18 21:23:00.000000000 +0100 | |
@@ -3,7 +3,7 @@ | |
#include_next <dlfcn.h> | |
#include <stdio.h> /* stderr */ | |
#ifdef __CYGWIN__ | |
-typedef struct dl_info { | |
+/*typedef struct dl_info { | |
const char *dli_fname; | |
void *dli_fbase; |
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
#! /usr/bin/env python | |
import os | |
import re | |
import sys | |
import shutil | |
import argparse | |
from collections import defaultdict | |
INDEX_HTML = """ |
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 <stdio.h> | |
#include <stdlib.h> | |
#if defined(STL) | |
#include <vector> | |
int Calc(int count) | |
{ | |
std::vector<int> numbers; |
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
// Touch screen example for arduino using a Nintendo 2ds touch screen | |
// Code is mostly inspired from http://tronixstuff.com/2010/12/29/tutorial-arduino-and-the-ds-touch-screen/ | |
// and the Adafruit touch screen library | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.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
#!/usr/bin/env bash | |
WORK=~/work | |
EXTERNAL=$WORK/external | |
PROJECTS=$WORK/projects | |
if [ ! -e $WORK ]; then mkdir $WORK; fi | |
if [ "" == "`which brew`" ] |
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
# Creating a binary patch with the diff between folders | |
#$ git diff --no-index --binary a/ b/ > diff.patch | |
#$ diff -Naur a/ b/ > diff.patch | |
git diff --no-index --binary $1 $2 |
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
#version 410 | |
#ifdef GL_ES | |
precision mediump float; | |
#define LOWP lowp | |
#else | |
#define LOWP | |
#endif | |
uniform sampler2D texture0; |