Skip to content

Instantly share code, notes, and snippets.

View danoli3's full-sized avatar

Dan Rosser danoli3

View GitHub Profile
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:27
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4
// TEST 0.8
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;
@danoli3
danoli3 / testApp.cpp
Created July 28, 2013 02:30
openframeworks 0.8 develop ofBoxPrimitive efficiency vs 0.7.4 (this one built for 0.7.4)
// TEST
#include "testApp.h"
struct Box {
ofVec3f pos;
float size;
float xScale;
float yScale;
int x;
@danoli3
danoli3 / Create iOS Icons.jsx
Last active December 28, 2015 01:49 — forked from twonjosh/Create iOS Icons.jsx
IOS 7 update for the Icon generator, with proper names
// Photoshop Script to Create iPhone Icons from iTunesArtwork
//
// WARNING!!! In the rare case that there are name collisions, this script will
// overwrite (delete perminently) files in the same folder in which the selected
// iTunesArtwork file is located. Therefore, to be safe, before running the
// script, it's best to make sure the selected iTuensArtwork file is the only
// file in its containing folder.
//
// Copyright (c) 2010 Matt Di Pasquale
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com
AudioChannelLayout channelLayout;
bzero(&channelLayout, sizeof(channelLayout));
channelLayout.mChannelLayoutTag = kAudioChannelLayoutTag_Mono;
int numOfChannels = 1;
if(channelLayout.mChannelLayoutTag == kAudioChannelLayoutTag_Stereo) {
numOfChannels = 2;
}
NSDictionary * audioOutputSettings = nil;
@danoli3
danoli3 / Pinhole Camera
Last active December 29, 2015 17:39
Ray Tracer Stereo Snippets
/**
* Implement the following virtual functions in your camera classes.
*/
/** Pinhole.h */
render_stereo(const World& w, float x, int pixel_offset, const std::vector<Pixel>& pixels);
/** Pinhole.cpp */
@danoli3
danoli3 / AndroidManifest.xml
Created May 27, 2014 07:19
Android Manifest for internet and external
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="cc.openframeworks.AndroidExample"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
@danoli3
danoli3 / AndroidClean
Created August 18, 2014 00:38
Android openFrameworks Clean script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / AndroidBuildRelease
Created August 18, 2014 00:41
Android openFrameworks Build Release script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / AndroidBuildDebug
Created August 18, 2014 00:42
Android openFrameworks Build Debug script
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2014 Daniel Rosser
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danoli3
danoli3 / decode.c
Created September 2, 2014 05:56
LibJXR problem files
//*@@@+++@@@@******************************************************************
//
// Copyright � Microsoft Corp.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// � Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.