View UILogger.h
#pragma once
#include "cinder/Log.h"
#include "CinderImGui.h"
namespace ImGui {
class Logger : public ci::log::Logger {
private:
ImGuiTextBuffer m_buffer;
ImGuiTextFilter m_filter;
View hash_manager.js
(function( exports ) {
var onDOMReady = function( fn ) {
if ( document.readyState !== 'loading' ) {
fn();
} else {
document.addEventListener( "DOMContentLoaded", fn );
}
};
exports.onDOMReady = onDOMReady;
View keras-char-rnn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cv_median.cpp
namespace cv {
// calculates the median value of a single channel
// based on https://github.com/arnaudgelas/OpenCVExamples/blob/master/cvMat/Statistics/Median/Median.cpp
double median( cv::Mat channel )
{
double m = (channel.rows*channel.cols) / 2;
int bin = 0;
double med = -1.0;
int histSize = 256;
View pbhi.sh
#!/bin/bash
# brew install highlight
pbpaste | highlight --syntax bash -k 'Andale Mono' -s molokai -O rtf | pbcopy
View DeferredRenderer.cpp
#include "DeferredRenderer.h"
#include "cinder/gl/gl.h"
#include "cinder/Log.h"
#include "cinder/Buffer.h"
#include "DeferredRendererShaders.h"
#include "DeferredRenderer_random_png.h"
using namespace ci;
using namespace std;
View gifify.sh
#!/bin/bash
in="$1"
out="$2"
fps=6
delay=$(printf "%0.f" $(echo "scale=2;100 / $fps" | bc))
mkdir gif
cd gif
ffmpeg -i $in -r $fps frame%05d.png
View three.orbitcontrols.js
/**
* @author qiao / https://github.com/qiao
* @author mrdoob / http://mrdoob.com
* @author alteredq / http://alteredqualia.com/
* @author WestLangley / https://github.com/WestLangley
*/
THREE.OrbitControls = function ( object, domElement ) {
THREE.EventDispatcher.prototype.apply( this );
View Config.cpp
#include "Config.h"
using namespace std;
using namespace ci;
Config::ref_t Config::sInstance = nullptr;
void Config::load( const string &assetName, const string &defaultAssetName, const std::string &paramsPrefix )
{
View BlurFilter.cpp
#include "BlurFilter.h"
#include "Resources.h"
using namespace std;
using namespace ci;
BlurFilter::BlurFilter( int w, int h ) :
mFboA( w, h ),
mFboB( w, h )