Skip to content

Instantly share code, notes, and snippets.

View vanderlin's full-sized avatar

Vanderlin vanderlin

View GitHub Profile
#include "ofApp.h"
// Note:
// You need ofxGui
ofPolyline resampled;
ofPolyline points;
ofParameter<float> resampleLength;
ofParameter<bool> bDrawWireframe;
ofParameter<bool> bDrawExtra;
#include <opencv2/opencv.hpp>
#include <iostream>
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <stdio.h>
/*
To Build on OSX:
#include "ofApp.h"
#include "ofxCv.h"
int clipLimit = 1;
cv::Mat greyImg, labImg, claheImg, tmpImg;
ofVideoGrabber input;
ofImage outputImage;
KinectPV2.JointType_SpineBase
KinectPV2.JointType_SpineMid,
KinectPV2.JointType_Neck,
KinectPV2.JointType_Head,
KinectPV2.JointType_ShoulderLeft,
KinectPV2.JointType_ElbowLeft,
KinectPV2.JointType_WristLeft,
KinectPV2.JointType_HandLeft,
KinectPV2.JointType_ShoulderRight,
KinectPV2.JointType_ElbowRight,
String jointTypeToString(int i) {
if(i == KinectPV2.JointType_SpineBase) {
return "SpineBase";
}
else if(i == KinectPV2.JointType_SpineMid) {
return "SpineMid";
}
else if(i == KinectPV2.JointType_Neck) {
return "Neck";
}
@vanderlin
vanderlin / SassMeister-input.scss
Created September 21, 2015 19:38
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$statement-colors:(
blue: #47E0E4,
magenta: #F3008C,
yellow: #FDF300,
musk: #C8BFBF,
gray: #8396A2,
@vanderlin
vanderlin / vue app
Created August 17, 2015 14:19
Basic Vue app
new Vue({
el:'#app',
props: ['authId'],
data: {
authId:null,
page:'profile-view'
},
ready: function() {
@vanderlin
vanderlin / Sublime Text 3 Command
Last active March 21, 2023 07:49
Create a Sublime Text 3 symbolic link to open a file via command line. paste this into terminal and now you can run `subl .` to open the directory in sublime or `subl file.html`
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
@vanderlin
vanderlin / gist:c36c59f8f7463c24c081
Created February 20, 2015 15:18
Stop Bootstrap from modal shift
.modal {
overflow-y: auto;
}
.modal-open {
overflow: auto;
}
.modal-open[style] {
padding-right: 0px !important;
}
[super viewDidLoad];
[self.navigationController.navigationBar setBackgroundImage:[UIImage alloc] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[UIImage alloc]];
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont fontWithName:APP_FONT_MARK_OT_BOLD size:15], NSForegroundColorAttributeName:[UIColor whiteColor]};
// this is kinda a hack...
UIBarButtonItem *backButton = [[UIBarButtonItem alloc]
initWithTitle: @""