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
using UnityEngine;
using System.Collections;
[RequireComponent(typeof(AudioSource))]
public class PlayerController : MonoBehaviour
{
//public float maxSpeed = 10f;
//bool facingRight = true;
//bool grounded = false;
//bool deathSoundPlay = false;

Keybase proof

I hereby claim:

  • I am ljahier on github.
  • I am ljahier (https://keybase.io/ljahier) on keybase.
  • I have a public key ASBOECW-n6ASkp6IiFPCvmMSU5NCuRsEiMsramUasXX_Rwo

To claim this, I am signing this object:

#include <math.h>
const int B = 4275; // B value of the thermistor
const long Resistance = 100000; // Resistance = 100k
const int pinTempSensor = A0;
void setup()
{
Serial.begin(9600);
pinMode(pinTempSensor, INPUT); // Temperature sensor on A1 pin
@ljahier
ljahier / guide-de-collaboration.md
Created January 5, 2019 13:04 — forked from adrienjoly/guide-de-collaboration.md
Règles permettant de bosser efficacement en équipe

Règles permettant de bosser efficacement en équipe

Outils, et leur usage

  • Trello:
    • pour lister, planifier, s'attribuer, puis archiver les taches (appelées cartes),
    • savoir à tout moment qui bosse sur quoi, et quelle tache en est où,
    • les décisions relatives à chaque tache doivent être intégrées sous forme de commentaires dans la carte correspondante. (afin de garder un historique par tache, facile à retrouver plus tard)
  • Git:
  • pour stocker le code source produit,
@ljahier
ljahier / .sql
Created January 2, 2019 18:46
if problem with mysql 8.x.x authentifications
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
@ljahier
ljahier / arduino.ino
Last active November 30, 2018 15:01
// Inclusion des librairies dont nous avons besoins.
#include "DHT.h"
#include <Bridge.h>
#include <HttpClient.h>
#define DHTPIN A0 // Définition du pin d'entrée du capteur
#define DHTTYPE DHT22 // Définition du type de capteur que l'on à pour que la librairie sache quel calcul faire.
DHT dht(DHTPIN, DHTTYPE); // Définition des entrée en type, le type DHT
HttpClient client; // Définition d'une variable de type HttpClient
#include "DHT.h"
#define DHTPIN A0
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
@ljahier
ljahier / convert.js
Last active September 3, 2018 22:58
Convert xml to json
const xml2js = require('xml2js');
const https = require('https');
const http = require('http');
let url = "https://korben.info/feed"
let parser = new xml2js.Parser();
let userURL = process.argv
// URI Le Monde: https://www.lemonde.fr/rss/une.xml
// Numerama: https://www.numerama.com/discussions/c/sur-numerama.rss
@ljahier
ljahier / my.zsh-theme
Created August 26, 2018 15:34
my zsh theme
local ret_status="%{$fg[cyan]%}$USER@$HOST %(?:%{$fg_bold[green]%}%c:%{$fg_bold[red]%}%c)"
PROMPT='${ret_status}%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@ljahier
ljahier / .sh
Created May 22, 2018 22:29
Ruby on rails
If you have problem with dependencies, install the follow packages:
#installs the tools and libraries for basic development, eg. make.
sudo apt-get install build-essential
#installs the sources for ruby
sudo apt-get install ruby-dev
#installs the libraries and headers for mysql extensions
sudo apt-get install libmysqlclient-dev