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
| export CC='gcc -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
| export CXX='g++ -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon' | |
| ./configure --without-snapshot | |
| make -j4 | |
| sudo make install |
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
| #pragma once | |
| #include "ofMain.h" | |
| ofMesh generatePieMesh( float value, float radius = 10.f, float segments = 32 ) { | |
| // Create our mesh. | |
| ofMesh mesh; | |
| mesh.setMode( OF_PRIMITIVE_TRIANGLE_FAN ); | |
| // Add the center point |
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
| var sys = require('sys') | |
| var exec = require('child_process').exec; | |
| var child; | |
| var vpnClientAddrs; | |
| // We can use function pull ups which helps keep things clean. | |
| // The pull up means we can use the function here even though it is below | |
| getIpAddresses( doSomethingWithResults ); |
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
| module.exports = function( grunt ) { | |
| // # Project configuration. | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON( 'package.json' ), | |
| // ## Documentation | |
| docco: { | |
| 'all': { | |
| src: [ 'app.musictomoveto.js', 'public/js/main.js', 'libs/*.js', 'Gruntfile.js' ], | |
| options: { |
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
| (ns sorter.core | |
| (:require [clojure.java.io :refer :all] | |
| [clojure.string :as string] | |
| [clojure.pprint :as pprint])) | |
| (def faces-by-img | |
| "This is a vector containing each image with a nested vector of faces found in the image" | |
| (reduce | |
| (fn [acc [[img] data]] | |
| (merge acc { :img img :faces (reduce |
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
| // From: http://www.cprogramming.com/c++11/c++11-lambda-closures.html | |
| #include <iostream> | |
| using namespace std; | |
| int main() | |
| { | |
| auto func = [] () { cout << "Hello world"; }; | |
| func(); // now call the function |
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
| Setting pipeline to PAUSED ... | |
| Pipeline is PREROLLING ... | |
| (gst-launch-1.0:21526): GStreamer-WARNING **: gstpad.c:4506:store_sticky_event:<gdpdepay0:src> Sticky event misordering, got 'segment' before 'caps' | |
| /GstPipeline:pipeline0/GstGDPDepay:gdpdepay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z0JAKLtAKALb+AokAAADAAQAAAMA8YEAALcbAAtx73vheEQjUA\=\=\,aM44gA\=\=", payload=(int)96, ssrc=(uint)3559254462, timestamp-offset=(uint)3329980361, seqnum-offset=(uint)46515 | |
| /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01424028ffe1002567424028bb402802dbf80a24000003000400000300f1810000b71b000b71ef7be17844235001000468ce3880 | |
| /GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01424028ffe1002567424028bb402802dbf80a240000030004000 |
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
| require 'formula' | |
| class GstPluginsGood < Formula | |
| homepage 'http://gstreamer.freedesktop.org/' | |
| stable do | |
| url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.2.3.tar.xz' | |
| mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.2.3.tar.xz' | |
| sha256 'bfb33536a515bdcc34482f64b8d9cc3e47c753878b254923b419bc2f7485e470' |
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 "ofMain.h" | |
| #include "ofxDMX.h" | |
| #include "ofxUI.h" | |
| #define NUMBER_OF_DMX_CHANNELS 24 | |
| //======================================================================== | |
| #pragma mark - UI Utils | |
| inline void preConfigureCanvas(ofxUICanvas *ui) { |
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
| // # ContentList | |
| // Can be created | |
| ContentList allcontent; | |
| // Can load it from the cms, and write it to disk | |
| allcontent.fetch(); | |
| // Load it from disk and parse it | |
| allcontent.load(); |