Skip to content

Instantly share code, notes, and snippets.

View num3ric's full-sized avatar

Éric Renaud-Houde num3ric

View GitHub Profile
@num3ric
num3ric / gluTestApp.cpp
Created October 29, 2011 05:33
Using glu NURBS inside Cinder.
#include "cinder/app/AppBasic.h"
#include "cinder/gl/gl.h"
#include "cinder/Camera.h"
#include "cinder/MayaCamUI.h"
#if defined( CINDER_MAC )
#include <OpenGL/glu.h>
#else
#include <GL/glu.h>
#endif
@num3ric
num3ric / aratio.glsl
Created September 12, 2014 00:12
Multiple aspect ratios alignement - stupeflix
<movie service="craftsman-1.0">
<head>
<filtercode name="averageShift">
<![CDATA[
#version 120
#extension GL_EXT_gpu_shader4 : enable
uniform sampler2D texture0;
uniform sampler2D texture1;
@num3ric
num3ric / ColorPalette.cpp
Last active August 29, 2015 14:05
Color palette generator
#include "ColorPalette.h"
#include "cinder/CinderAssert.h"
#include "cinder/Rand.h"
#include <algorithm>
#include <numeric>
using namespace ci;
using namespace col;
import requests
import json
import operator
companies = [ "adafruit" , "akqa" , "B-Reel" , "thebarbariangroup" , "cinder" , "BBDO" , "breakfastny" , "CLOUDS-Interactive-Documentary" , "deeplocal" , "digitas" , "morethanlogic" , "dreamworksanimation" , "fakelove" , "field" , "google" , "googlecreativelab" , "dataarts" , "MadSciLabs" , "HeliosInteractive" , "hellicarandlewis" , "ideo" , "ideo-digital-shop" , "labatrockwell" , "legworkstudio" , "local-projects" , "msopentech" , "MidnightCommercial" , "mpcdigital" , "otherlab" , "PixarAnimationStudios" , "Psyop" , "razorfish" , "redpaperheart" , "sapient-global" , "sapientnitro" , "sparkfun" , "stopp" , "tbwa" , "therumpusroom" , "warprecords" , "Vidvox" , "warprecords" , "wieden-kennedy" , "YCAMInterlab" , "Your-Majesty" ]
company_stars = {}
for company in companies:
request_string = 'https://api.github.com/users/' + company + '/repos'