Skip to content

Instantly share code, notes, and snippets.

Jason Van Cleave jvcleave

Block or report user

Report or block jvcleave

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:da69dc29c276a01151d9f85126e0c49a
string filePath = “data.csv”;
ofFile file(filePath);
ofLogError(“The file ” + filePath + ” is missing”);
ofBuffer buffer(file);
vector<string> lines;
View fuckme.playground
import UIKit
class Content
var name:String = "DEFAULT"
func setup(_ name:String)
{ = name
jvcleave / openframeworks jetson nano.txt
Last active Oct 24, 2019
openframeworks jetson nano instructions
View openframeworks jetson nano.txt
Nightly required - get link from the bottom of this page (e.g.
Download OF and unpack:
tar -zxvf of_v20190324_linuxarmv7l_nightly.tar.gz
mv of_v20190324_linuxarmv7l_nightly openFrameworks
View AvFoundationH264Decoder.h
#include "ofMain.h"
#include "AvFoundationH264DecoderListener.h"
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <Accelerate/Accelerate.h>
#import <CoreMedia/CoreMedia.h>
#import <AVFoundation/AVPlayer.h>
#import <VideoToolbox/VideoToolbox.h>
View getFitAspectRatioSize
static ofVec2f getFitAspectRatioSize(float maxWidth, float maxHeight, float imgWidth, float imgHeight)
ofVec2f result;
float widthRatio = maxWidth / imgWidth;
float heightRatio = maxHeight / imgHeight;
float bestRatio = min(widthRatio, heightRatio);
result.x = imgWidth * bestRatio;
result.y = imgHeight * bestRatio;
return result;
jvcleave / ofApp.cpp
Last active Dec 26, 2018
videocore fast pixel access
View ofApp.cpp
#pragma once
#include "ofMain.h"
#include "ofAppEGLWindow.h"
#include "user-vcsm.h"
#include "ofxOMXPlayer.h"
#include "TerminalListener.h"
class ofApp : public ofBaseApp, public KeyListener{
View image_fx options
Number of Params: 4
Value Range: 0-255
Description: first value unknown or maybe not 0-255, 1-3 seem to be RGB.
Number of Params: 1
Value Range: 0-1
Description: Switches a mode - possibly an enum?
jvcleave / video.c
Last active Nov 22, 2018
image_fx test
View video.c
Copyright (c) 2012, Broadcom Europe Ltd
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.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
View gist:a4ac1fbf23686ec035767315008538bf
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
You can’t perform that action at this time.