This file contains hidden or 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
var express = require('express'); | |
var app = express() | |
var server = require('http').Server(app); | |
var io = require('socket.io')(server); | |
app.use(express.json()) | |
server.listen(8080, '0.0.0.0'); | |
app.get('/', function (req, res) { |
This file contains hidden or 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
from gpiozero import DigitalInputDevice | |
from math import pi | |
from threading import Thread | |
class FreeWheel: | |
phaseA = None | |
phaseB = None | |
ticks = 0 | |
diameter = 0 | |
perimeter = 0 |
This file contains hidden or 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
# CONFIG RETROBOX | |
# Enable audio (loads snd_bcm2835) | |
dtparam=audio=on | |
gpu_mem_256=128 | |
gpu_mem_512=256 | |
gpu_mem_1024=256 | |
overscan_scale=1 | |
dtparam=spi=on | |
dtoverlay=waveshare32b |
This file contains hidden or 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
from gpiozero import DigitalInputDevice | |
from threading import Thread | |
from time import sleep | |
from math import * | |
from adafruit_crickit import crickit |
This file contains hidden or 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
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" | |
xmlns:v2="http://v2.pointretrait.geopost.com/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<v2:findRDVPointRetraitAcheminement> | |
<!--Optional:--> | |
<accountNumber>MY_LOGIN</accountNumber> | |
<!--Optional:--> | |
<password>MY_PASSWORD</password> | |
<!--Optional:--> |
This file contains hidden or 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
- pages | |
|_ devices | |
|_ _slug.vue | |
|_ modele | |
|_ _slug.vue |
This file contains hidden or 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
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod4 |
This file contains hidden or 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
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
set $mod Mod4 | |
set $term terminator | |
set $menu "rofi -show drun" |
This file contains hidden or 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 | |
import cv2 | |
import cv2.aruco as aruco | |
import os | |
from picamera.array import PiRGBArray | |
from picamera import PiCamera | |
import time | |
camera = PiCamera() |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0; | |
} | |
#canvas { | |
height: 100vh; | |
} |