Skip to content

Instantly share code, notes, and snippets.

View ljahier's full-sized avatar
🏡
Working from home

Lucas JAHIER ljahier

🏡
Working from home
View GitHub Profile
@ljahier
ljahier / sketch_jan19a.c
Created January 26, 2017 09:10
capteur d'humidité arduino
/*
* Script de detection et d'affichage de l'humidité,
* le taux d'humidité se doit d'être entre 50% et 70%
**/
// Test code for Grove - Moisture Sensor
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor7
int minHumidity = 50;
int maxHumidity = 70;
int buttonState;
int buttonStateTwo;
int my_time;
void setup() {
// put your setup code here, to run once:
for (int thisPin = 2; thisPin < 5; thisPin++) {
pinMode(thisPin, OUTPUT);
}
pinMode(6, INPUT);
pinMode(7, INPUT);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bonjour youtube</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pierre Feuille Papier Ciseaux</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h1>Shifumi réalisé en JavaScript</h1>
int buttonPin1 = 8;
int buttonPin2 = 13;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(buttonPin1, INPUT);
pinMode(buttonPin2, INPUT);
using UnityEngine;
using System.Collections;
using System.IO.Ports;
public class movePlayer : MonoBehaviour
{
public float speed;
private float amoutToMove;
SerialPort sp = new SerialPort("COM3", 9600);
echo "Uninstalling 3dbuilder"
get-appxpackage *3dbuilder* | remove-appxpackage
echo "Uninstalling alarms"
get-appxpackage *alarms* | remove-appxpackage
echo "Uninstalling appconnector"
get-appxpackage *appconnector* | remove-appxpackage
echo "Uninstalling appinstaller"
@ljahier
ljahier / AppServiceProvider.php
Created December 11, 2017 21:30
For new laravel project, if you want use php artisan migration, you must add on AppServiceProvider.php file a few lines.
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema; // This line must be add
class AppServiceProvider extends ServiceProvider
{
/**
@ljahier
ljahier / blog.html
Created December 14, 2017 00:27
Articles html bootstrap
<div class="col-sm-8 blog-main">
<div class="blog-post">
<h2 class="blog-post-title">Sample blog post</h2>
<p class="blog-post-meta">January 1, 2014 by <a href="#">Mark</a></p>
<p>This blog post shows a few different types of content that's supported and styled with Bootstrap. Basic typography, images, and code are all supported.</p>
<hr>
<p>Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.</p>
<blockquote>
<p>Curabitur blandit tempus porttitor. <strong>Nullam quis risus eget urna mollis</strong> ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
// BY THEO FAUCHER
#include <Wire.h>
#include <SeeedOLED.h>
#include <SPI.h>
void setup()
{
Wire.begin();
SeeedOled.init(); //initialze SEEED OLED display