Skip to content

Instantly share code, notes, and snippets.

View srThibaultP's full-sized avatar
⛩️

Thibault srThibaultP

⛩️
View GitHub Profile
@srThibaultP
srThibaultP / layers_departementsFR.html
Created January 10, 2023 14:54
Exemple de code Leaflet permettant d'afficher les départements selon une couleur spécifique
<!DOCTYPE html>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-ajax/2.1.0/leaflet.ajax.js"></script>
<style>
#map {
height: 500px;
🌞 Morning 108 commits ████████▊░░░░░░░░░░░░ 42.0%
🌆 Daytime 135 commits ███████████░░░░░░░░░░ 52.5%
🌃 Evening 12 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.7%
🌙 Night 2 commits ▏░░░░░░░░░░░░░░░░░░░░ 0.8%
We couldn’t find that file to show.
@srThibaultP
srThibaultP / Commande SQL
Last active January 6, 2022 16:11
Cours SQL 18/11/21
select id_programme, id_tranche, id_batiment, count(*)
from T_ENTREE
group by id_programme, id_tranche, id_batiment
having count(*) > 1
/*SELECT LAST_DAY( ADD_MONTHS(TRUNC(SYSDATE, 'MM'), -1)) FROM DUAL;*/
/*SELECT DATE_NAISS,PRENOM,NOM FROM T_INDIVIDU WHERE TO_CHAR(DATE_NAISS, 'YYYY')<=1998; */
select nom_titulaire, date_sortie
@srThibaultP
srThibaultP / markers.js
Last active August 18, 2021 14:57
Markers custom leaflet
//From : https://stackoverflow.com/questions/23567203/leaflet-changing-marker-color
function customMarkersColor(myCustomColour) {
markerHtmlStyles = `
background-color: ${myCustomColour};
width: 2rem;
height: 2rem;
display: block;
left: -1.5rem;
top: -1.5rem;
@srThibaultP
srThibaultP / config.txt
Last active December 23, 2019 17:43
Raspberry Pi 4 config file for LG 28MT47DC
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=0
@srThibaultP
srThibaultP / Genji Deflect Bash
Last active August 6, 2019 21:36
Add a Deflect Bash to Genji like Brigite Shield Bash. Based on DarwinStreams's Rein Shield Bash.
rule("BASH")
{
event
{
Ongoing - Each Player;
All;
Genji;
}
conditions
@srThibaultP
srThibaultP / Get ultimate on kill
Created August 6, 2019 13:06
Get ultimate on kill
rule("Get ultimate on kill")
{
event
{
Player earned elimination;
All;
All;
}
actions
@srThibaultP
srThibaultP / Invisible Genji
Last active August 6, 2019 11:44
Get only Genji invisible
rule("Invisible all time for Genji")
{
event
{
Ongoing - Each Player;
All;
Genji;
}
conditions