Skip to content

Instantly share code, notes, and snippets.

View poqudrof's full-sized avatar

Jeremy Laviole poqudrof

View GitHub Profile
@poqudrof
poqudrof / stream.rb
Created July 28, 2016 14:17
Stream Gstreamer launch
#!/bin/ruby
## You can take pictures via Entangle, or in command line.
require 'fileutils'
# First argument is starting number
name = "capture"
output_name = "playing/capture000000.jpg"
## Dependences :
libffi lua qscintilla-qt5 sed cmake git qt5-tools supercollider jack2 aubio cadence libgit2 qt5-multimedia
supercollider-with-plugins qwt-qt5
## QWT missing features
# qmake -set QMAKEFEATURES /usr/local/qwt-6.1.2/features
## ruby gems
To make it work on Arch Linux and Manjaro: 
yaourt -S gutenprint foomatic-db-gutenprint-ppds
@poqudrof
poqudrof / robus.rb
Last active August 6, 2017 20:03
Robus Ruby work in progress
# coding: utf-8
require 'rubygems'
require 'rubyserial'
require 'json'
require 'eventmachine'
require 'em-websocket-client'
require 'osc-ruby'
$osc = OSC::Client.new('localhost', 4559 )
$osc.send(OSC::Message.new( "/greeting" , "hullo!" ))
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
@poqudrof
poqudrof / PKGBUILD
Created June 1, 2018 12:35
Build Cura by Dagoma - arch linux x86_64
backup=()
options=()
install=
changelog=
source=("https://dist.dagoma.fr/get/zip/CuraByDagoma/1520506579/58228cce5bbdcf764b7116850956f1e5")
noextract=()
md5sums=()
validpgpkeys=()
prepare() {
@poqudrof
poqudrof / PKGBUILD
Last active February 27, 2019 16:46
PKGBUILD for Orbbec Astra S - Updated to 2.3.0 - 55 the latest version in Feb 2019.
# Maintainer: Jeremy Laviole <laviole@rea.lity.tech>
## Build without integrity check for now makepkg --skipinteg -f
pkgname="openni-astra"
pkgver=2.3.0
pkgrel=55
epoch=
pkgdesc=""
arch=('x86_64')
url="https://orbbec3d.com/develop/"
license=('Unknown')
@poqudrof
poqudrof / package.json
Created April 4, 2019 15:08
Webpack simple configuration to serve and transpile Stimulus code.
{
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.4.0",
"stimulus": "^1.1.1",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.2.1"
},
"name": "development",
"version": "1.0.0",
"description": "",
@poqudrof
poqudrof / ColorTracker.pde
Last active November 5, 2019 16:11
Solution intermediaire
// Inspired by Learning Processing
// Daniel Shiffman
import processing.video.*;
import controlP5.*;
import processing.net.*;
// Variable for capture device
Capture video;
{
"pages": [
{
"name": "configuration",
"elements": [
{
"type": "text",
"name": "id",
"title": "Numéro anonymat",
"valueName": "id",