Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View poqudrof's full-sized avatar

Jeremy Laviole poqudrof

View GitHub Profile
@poqudrof
poqudrof / highlight_sidebar_controller.js
Last active October 17, 2023 22:30
Stimulus controller we created to replace ActiveLink .
// 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 / best_in_place.js
Last active January 25, 2023 23:17
Best in place for Rails 6 and Turbo
/*
* BestInPlace (for jQuery)
* version: 3.0.0.alpha (2014)
*
* By Bernat Farrero based on the work of Jan Varwig.
* Examples at http://bernatfarrero.com
*
* Licensed under the MIT:
* http://www.opensource.org/licenses/mit-license.php
*
@poqudrof
poqudrof / list.md
Last active November 2, 2022 15:37
Inkscape 92 on arch linux - November 2022

List of packages required

Install inkscape 0.92 on arch linux.

Dig these files from the archive

https://archive.archlinux.org/packages/

  • inkscape-0.92.5-2-x86_64.pkg.tar.zst
  • gsl-2.6-1-x86_64.pkg.tar.xz
import fr.inria.papart.procam.*;
import fr.inria.papart.procam.camera.*;
import fr.inria.papart.depthcam.*;
import fr.inria.papart.depthcam.devices.*;
import fr.inria.papart.depthcam.analysis.*;
import tech.lity.rea.pointcloud.*;
import org.bytedeco.javacv.*;
import org.bytedeco.opencv.opencv_core.*;
// import org.bytedeco.javacpp.freenect;
# Maintainer: Tassos Natsakis <7712382@eipieq.com>
# Packager: Tassos Natsakis <7712382@eipieq.com>
# Update to 2.1.3 Pouqdrof <poqudrof at gmail dot com>
pkgname="astra-sdk"
pkgver="2.1.3"
_pkgcsum="94bca0f52e"
_pkgtstamp="20210608T062039Z"
pkgrel=1
pkgdesc='SDK for the Astra Camera from Orbbec'
@poqudrof
poqudrof / icon-method-generation.rb
Created July 29, 2020 11:08
RUBY - RAILS - Example on how to generate methods app-wide icons
# 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
]
{
"pages": [
{
"name": "configuration",
"elements": [
{
"type": "text",
"name": "id",
"title": "Numéro anonymat",
"valueName": "id",
@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;
@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 / 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')