Skip to content

Instantly share code, notes, and snippets.

View lefuturiste's full-sized avatar
📜
A lot of things going on at the same time!

Le_Futuriste lefuturiste

📜
A lot of things going on at the same time!
View GitHub Profile
<template>
<div id="app">
<no-ssr>
<drawer-menu
:isOpen="$store.state.drawerEnabled"
right>
<a
id="home"
href="#">
<span>Home</span>
@lefuturiste
lefuturiste / morpion.ts
Created December 9, 2018 12:24
Morpion with microbit
/**
* WORK IN PROGRESS
*
* @author lefuturiste <[email protected]>
* @date 2018-12-09
*/
// 0: off
// 1: low luminosity (ennemi points)
// 2: blink quick (cursor)
// 3: full (me)
#include <Arduino.h>
#include <Wire.h>
#include <SoftwareSerial.h>
#include <MeAuriga.h>
MeGyro gyro(0, 0x69);
void setup() {
Serial.begin(9600);
Serial.println("Start...");
@lefuturiste
lefuturiste / esp8266-dh11-sensor-wifi-http-server.ino
Created January 31, 2019 15:39
A simple http server to get temperature and humidity with DHT-11 sensor and esp8266
#include <ESP8266WiFi.h>
#include "DHT.h"
#define DHTTYPE DHT11
const char* ssid = "xxx";
const char* password = "xxx";
WiFiServer server(80);
#include <MeAuriga.h>
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(A13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
@lefuturiste
lefuturiste / fibo.js
Created March 18, 2019 21:17
Fibonacci
let len = process.argv[2] == undefined ? 100 : process.argv[2]
let terms = [1, 1]
for(let i = 2; i < len; i++) {
terms.push(terms[i-2] + terms[i-1])
}
console.log(terms)
<div id="app">
<v-app>
<v-content>
<v-container grid-list-xl>
<v-layout justify-center class="mb-5">
<div class="headline">
La vie d'une dorsale
</div>
</v-layout>
<v-timeline align-top>
<!DOCTYPE html>
<head>
<title>La vie d'une dorsale, 1S1</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vuetify/1.5.7/vuetify.min.css" />
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons' rel="stylesheet">
</head>
<body>
<div id="app">
<v-app>
@lefuturiste
lefuturiste / Robot.py
Created March 29, 2019 11:05
C'est du gros code...
import Adafruit_PCA9685
import time
import pypot.dynamixel
import pypot.robot
from Controller import Controller
class Robot:
# LESC = (6,5,0,1) # liste des ESC (avant gauche, avant droit, arrière gauche, arrière droit)
escSlots = {
import serial
import time
from math import *
from src.Mouse import Mouse
import io
from multiprocessing import Process
import asyncio
# position, orientation robot, distance robot-target, position target, vitesse moteur