Skip to content

Instantly share code, notes, and snippets.

View flofy's full-sized avatar

DROYER Florent flofy

  • Florent DROYER
  • France
View GitHub Profile
@flofy
flofy / resume.json
Last active July 21, 2025 05:51
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Florent Droyer",
"label": "Ingénieur Logiciel Senior / Directeur Technique",
"email": "flo.droyer@gmail.com",
"title": "Technical Director / Tech Lead",
"picture": "https://process.filestackapi.com/output=format:png/resize=width:150,height:150,fit:crop/compress/5gPu9GFHTj6nPokYnjOi",
"image": "https://avatars.githubusercontent.com/u/4456580?s=460&v=4",
"url": "https://www.linkedin.com/in/florent-droyer/",
@flofy
flofy / regex
Last active March 16, 2018 16:43
regex
<category category-id="(?!root)(\n|\r|\rn|.)*?<\/category>
(<(.*(it-IT|ja-JP|zh-CN).*(?!<\/).)*<\/[a-zA-Z\-]{0,30}>)
//Day 1
const input = [...document.body.textContent.trim()];
const sum = input.reduce((sum, num, idx) => sum + (num === input[(idx + 1) % input.length] ? +num : 0), 0);
console.log(sum);
//Day 2
const input = document.body.textContent.trim().split('\n');
const rows = input.map(r => r.split('\t').map(Number).sort((x, y) => x - y));
const diff = r => r[r.length - 1] - r[0];
const quot = r => (([x, y]) => y / x)(r.filter(x => r.some(evenDiv(x))));
@flofy
flofy / index.html
Last active March 6, 2024 16:51 — forked from anonymous/index.html
RxJS 5 Operators// source http://jsbin.com/qokunuzixo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>RxJS 5 Operators</title>
<script src="https://npmcdn.com/@reactivex/rxjs@5.0.0-beta.5/dist/global/Rx.umd.js"></script>
</head>
<body>
@flofy
flofy / atlassian-hook.js
Last active February 3, 2017 09:10
Atlassian BranchName Hook
/*
* This is some simple js to provide some way to retrieve quickly branchName
* Use this with cjs plugin :
* https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija?utm_source=chrome-app-launcher-info-dialog
*/
var GetBranchName = function() {};
GetBranchName.init = function() {
$('.list-panel').off().on('dblclick', function(){
var branchName = GetBranchName.getData();
<?php
$sites = "http://www.broadcastsolutions.com.au/
http://www.kvm.com.au/
http://www.ambertech.com.au/";
$sites = preg_split('/\r\n|\r|\n/', $sites);
echo "