This file contains 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
import os | |
import glob | |
import argparse | |
import json | |
import datetime | |
import time | |
from bisect import bisect_left, bisect_right | |
from PIL import Image | |
from pexif import JpegFile |
This file contains 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
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
ignorecase = true | |
precomposeunicode = true | |
[remote "origin"] | |
url = https://github.com/chuckleplant/GGJ2018.git | |
fetch = +refs/heads/*:refs/remotes/origin/* |
This file contains 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
@echo off | |
FOR /F "tokens=*" %%G IN ('dir /b *.m4a') DO ffmpeg -i "%%G" -acodec libmp3lame -ab 128k "%%G.mp3" |
This file contains 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
rem run this in WIN+R | |
ie4uinit.exe -ClearIconCache | |
rem credit : http://superuser.com/a/499079 |
This file contains 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
// | |
// Execute a command and get the results in a CString. (Only standard output) | |
// | |
CStringA ExecCmd( | |
const wchar_t* cmd // [in] command to execute | |
) | |
{ | |
CStringA strResult; | |
HANDLE hPipeRead, hPipeWrite; |
This file contains 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
// GLSL | |
const float pixelDepth = 256.0f; | |
const vec4 bitSh = vec4( | |
pixelDepth * pixelDepth * pixelDepth, | |
pixelDepth * pixelDepth, | |
pixelDepth, | |
1.); | |
const vec4 bitShifts = vec4(1.) / bitSh; | |
vec2 decodeFloats16() |
This file contains 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
void resetWindow() | |
{ | |
ofAppGLFWWindow * glfwWindow = dynamic_cast<ofAppGLFWWindow*>(ofGetWindowPtr()); | |
GLFWwindow* windowP = glfwWindow->getGLFWWindow(); | |
glfwSetWindowShouldClose(windowP, 0); | |
} | |
void removeOfAppListeners() | |
{ | |
ofRemoveListener(ofEvents().setup,ofGetAppPtr(),&ofBaseApp::setup,OF_EVENT_ORDER_APP); |
This file contains 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
bcdedit /set {default} recoveryenabled No | |
bcdedit /set {default} bootstatuspolicy ignoreallfailures |
This file contains 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
#ifndef _WIN32_WINNT | |
# define _WIN32_WINNT 0x500 | |
#endif | |
#include "Winuser.h" | |
class ofxMouse | |
{ | |
public: | |
static enum MouseEventFlags | |
{ |