Skip to content

Instantly share code, notes, and snippets.

View cyrildiagne's full-sized avatar

Cyril Diagne cyrildiagne

View GitHub Profile
int main( )
{
cout << "Hello World :)" << endl;
}
@cyrildiagne
cyrildiagne / config.yml
Last active October 7, 2015 17:18
Super simple html photo emailer using Sinatra, Amazon S3 and Gmail
public_folder : /path/to/your/photos
# Amazon s3
s3_bucket : yourS3bucket
s3_key : yourS3key
s3_secret : yourS3secret
# Mail
mail_options :
:user_name : [email protected]
@cyrildiagne
cyrildiagne / playtime_gallery.pde
Created August 28, 2012 13:21
Live Proce55ing gallery for Playtime
@cyrildiagne
cyrildiagne / (Patch) AppController.mm
Created November 1, 2012 16:44
iOS native video overlay inside a Unity3d app
/*
add this at the end of prepareRunLoop
*/
[_displayLink setPaused:YES];
/*
add this at the end of (void) applicationDidBecomeActive:
*/
video = [[InteractiveVideo alloc] initWithFrame:_window.bounds];
video.delegate = self;
@cyrildiagne
cyrildiagne / osx-screencast.sh
Created November 17, 2012 12:17
OSX Shell script to take a snapshot of the screen every X seconds
while true ; do sleep 2 && echo `date`‘ Capturing screenshot…’ && screencapture -C -m -t jpg -x -f cap.`date +%s`.jpg ; done
@cyrildiagne
cyrildiagne / facette.frag
Created November 19, 2012 22:18
GLSL shader used for my 3dprint / pico projection mapping experiment test02
//
// Description : Array and textureless GLSL 2D/3D/4D simplex
// noise functions.
// Author : Ian McEwan, Ashima Arts.
// Maintainer : ijm
// Lastmod : 20110822 (ijm)
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
// Distributed under the MIT License. See LICENSE file.
// https://github.com/ashima/webgl-noise
//
@cyrildiagne
cyrildiagne / .zshrc
Created November 26, 2012 19:31
My .zshrc config
# DESCRIPTION:
# A simple zsh configuration that gives you 90% of the useful features that I use everyday.
#
# AUTHOR:
# Geoffrey Grosenbach http://peepcode.com
############
# FUNCTIONS
############
@cyrildiagne
cyrildiagne / mapamokStepper.ino
Created April 2, 2013 15:46
The arduino sketch of the Mapamok + Stepper motor experiment
#include <Streaming.h>
#include <SerialCommand.h>
#define DIR_PIN 10
#define STEP_PIN 11
float speed = 0.0;
float rotation = 0.0;
SerialCommand scmd;
@cyrildiagne
cyrildiagne / RailsAppTest.hx
Last active December 16, 2015 21:39
Haxe Test App for a Rails JSON API (with Devise register / login) - (only tested with Flash output)
package;
import flash.display.Shape;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.external.ExternalInterface;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
@cyrildiagne
cyrildiagne / .zshrc
Created May 26, 2013 12:23
My .zshrc
# DESCRIPTION:
# A simple zsh configuration that gives you 90% of the useful features that I use everyday.
#
# AUTHOR:
# Geoffrey Grosenbach http://peepcode.com
############
# FUNCTIONS
############