This file contains 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
#!/usr/bin/python -O | |
import numpy as np | |
from numpy import array | |
A, C, G, T = 0, 1, 2, 3 | |
int_to_char = {0:'A', 1:'C', 2:'G', 3:'T'} | |
#indel = -1 | |
#scoring = array([[1,-1,-1,-1], | |
#[-1,1,-1,-1], |
This file contains 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 "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 |
This file contains 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
import numpy as np | |
def GENP(A, b): | |
''' | |
Gaussian elimination with no pivoting. | |
% input: A is an n x n nonsingular matrix | |
% b is an n x 1 vector | |
% output: x is the solution of Ax=b. | |
% post-condition: A and b have been modified. | |
''' |
This file contains 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
/************************************ | |
* Shader Study 03 : Metaballs * | |
* num3ric - Eric Renaud-Houde * | |
* Summer 2012 * | |
************************************/ | |
#version 120 | |
#extension GL_ARB_texture_rectangle : enable | |
#extension GL_ARB_texture_non_power_of_two : enable |
This file contains 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
' {$STAMP BS2} | |
' {$PBASIC 2.5} | |
' 0 is forward mode (robot is moving) | |
' 1 is rotate mode (robot is rotating to randomAngle) | |
currentState VAR Bit | |
'Random bits for the random angle generation | |
randomBits VAR Word |
This file contains 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
/* | |
* Reviewing ray-tracing basics in glsl. Loosely based on Inigo Quilez's articles. | |
* Éric Renaud-Houde - num3ric.com | |
* December 2012 | |
*/ | |
#ifdef GL_ES | |
precision highp float; | |
#endif |
This file contains 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 "cinder/app/AppNative.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/Quaternion.h" | |
#include "cinder/Timeline.h" | |
#include "cinder/MayaCamUI.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; |
This file contains 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
PVector b0, b1, b2, b3; | |
PVector pos, debutPos, ciblePos; | |
float t_anim, t_debut, t_duree; | |
void setup() { | |
size(400, 400); | |
background(0); | |
smooth(); | |
t_anim = t_duree = 2000.0; | |
This file contains 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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <iterator> | |
#include <assert.h> | |
typedef std::chrono::high_resolution_clock Clock; | |
template<typename T> |
This file contains 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
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' |
OlderNewer