Skip to content

Instantly share code, notes, and snippets.

Jeremy Laviole poqudrof

  • CATIE
  • Bordeaux
View GitHub Profile
@poqudrof
poqudrof / icon-method-generation.rb
Created Jul 29, 2020
RUBY - RAILS - Example on how to generate methods app-wide icons
View icon-method-generation.rb
# Example on how to generate methods app-wide icons
# FAS icons
names = %w[dealership profile home users user
ordered delivered
]
icons = %w[hotel user-circle home users user
box-open truck-loading
]
View staps.json
{
"pages": [
{
"name": "configuration",
"elements": [
{
"type": "text",
"name": "id",
"title": "Numéro anonymat",
"valueName": "id",
@poqudrof
poqudrof / highlight_sidebar_controller.js
Last active Feb 16, 2020
Stimulus controller we created to replace ActiveLink .
View highlight_sidebar_controller.js
// src/controllers/highlight_sidebar_controller.js
import { Controller } from "stimulus"
export default class extends Controller {
onCurrentController() {
let activeLinks = this.data.get("active-on"));
return activeLinks == App.controller;
}
@poqudrof
poqudrof / ColorTracker.pde
Last active Nov 5, 2019
Solution intermediaire
View ColorTracker.pde
// Inspired by Learning Processing
// Daniel Shiffman
import processing.video.*;
import controlP5.*;
import processing.net.*;
// Variable for capture device
Capture video;
@poqudrof
poqudrof / package.json
Created Apr 4, 2019
Webpack simple configuration to serve and transpile Stimulus code.
View package.json
{
"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 / PKGBUILD
Created Jun 1, 2018
Build Cura by Dagoma - arch linux x86_64
View PKGBUILD
backup=()
options=()
install=
changelog=
source=("https://dist.dagoma.fr/get/zip/CuraByDagoma/1520506579/58228cce5bbdcf764b7116850956f1e5")
noextract=()
md5sums=()
validpgpkeys=()
prepare() {
View .emacs
(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
Last active Feb 27, 2019
PKGBUILD for Orbbec Astra S - Updated to 2.3.0 - 55 the latest version in Feb 2019.
View PKGBUILD
# 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 / robus.rb
Last active Aug 6, 2017
Robus Ruby work in progress
View robus.rb
# 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!" ))
View mp150 printer
To make it work on Arch Linux and Manjaro: 
yaourt -S gutenprint foomatic-db-gutenprint-ppds
You can’t perform that action at this time.