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 | |
# Tom Hale, 2016. MIT Licence. | |
# Print out 256 colours, with each number printed in its corresponding colour | |
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
set -eu # Fail on errors or undeclared variables | |
printable_colours=256 |
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 "ofApp.h" | |
int main() { | |
ofSetupOpenGL(1024, 768, OF_WINDOW); | |
ofRunApp(new ofApp()); | |
} |
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
vector<string> joys; | |
for(int j = 0; j < 5; j++){ | |
bool joyOK = glfwJoystickPresent(j); | |
if(joyOK){ | |
int n; | |
const float *data = glfwGetJoystickAxes(j, &n); | |
string thisj = string(glfwGetJoystickName(j)) + "\n axes\n"; | |
//axes | |
for(int i = 0; i < n; i++){ |
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
{ | |
"accession_number": "3.2013.1", | |
"active": true, | |
"applications": [ | |
{ | |
"id": "68765057", | |
"name": "Collections Table", | |
"slug": "collections-table" | |
} | |
], |
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
ofImage img; | |
ofPBO pbo; | |
ofTexture pboTex; | |
void setup(){ | |
//get some pixels from disk | |
img.setUseTexture(false); //no gpu upload | |
img.loadImage("crap8192.jpg"); |
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 "testApp.h" | |
void testApp::setup(){ | |
ofSetFrameRate(60); | |
ofSetVerticalSync(true); | |
ofBackground(22); | |
ofEnableAlphaBlending(); |
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
-- csipttc_unisiwc_ctpttfwttc.app | |
-- Copy Selected Items Path To The Clipboard Unless Nothing Is Selected In Which Case Copy The Path To The Foremost Window To The Clipboard | |
on makeAndCopyLinkFromPath(myPath) | |
if myPath starts with "/Volumes/" then | |
set dirStructure to ((characters 9 thru -1 of myPath) as string) | |
set strHTML to quoted form of ("<a style='font-family:helvetica' href=\"smb://Guest::@lp-vault" & dirStructure & "\">" & myPath & "</a>") --double :: bc otherwise it disappears? | |
--tell application "Finder" to display dialog strHTML | |
do shell script "echo " & strHTML & " | textutil -format html -convert rtf -stdin -stdout | pbcopy -Prefer rtf" | |
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
#!/bin/bash | |
#this is used to make symlinks of the content of one dir to another. | |
#whole point is to allow project generator to use external addons | |
echo "" | |
echo "Use this script to make symlinks of all folders in arg1 into arg2 (arg 1 and arg2 being dirs)" | |
echo "" | |
echo "src dir: $1" | |
echo "destination dir: $2" | |
echo "" |
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
( | |
"Thonburi-Bold", | |
Thonburi | |
) | |
2012-04-16 02:42:59.725 myApp[12412:707] ( | |
"SnellRoundhand-Bold", | |
"SnellRoundhand-Black", | |
SnellRoundhand | |
) | |
2012-04-16 02:42:59.729 myApp[12412:707] ( |
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
find . -type d -name .svn -print0 | xargs -0 rm -rf |