Skip to content

Instantly share code, notes, and snippets.

View DylanDelobel's full-sized avatar
Coffee 😎

Dylan Delobel DylanDelobel

Coffee 😎
View GitHub Profile
@DylanDelobel
DylanDelobel / Dockerfile
Created January 17, 2023 23:44
prisma js discord docker
FROM node:alpine
WORKDIR /app
# COPY package.json and package-lock.json files
COPY package*.json ./
# generated prisma files
COPY prisma ./prisma/
@DylanDelobel
DylanDelobel / resume_en.json
Last active January 11, 2022 10:49
JSON Resume
{
"basics": {
"label": "Fullstack Developer",
"characterClass": "Programmer",
"website": "https://dylandelobel.com",
"phone": "+33 6 10 62 56 57",
"email": "dylandelobel66@gmail.com",
"name": "Dylan Delobel",
"summary": "Rigorous, autonomous, curious and passionate about computers.",
"picture": "dylan.png",
@DylanDelobel
DylanDelobel / AutoCreatorPatient.user.js
Last active October 18, 2021 12:25
AutoCreatorPatient.user.js
// ==UserScript==
// @name AutoCreatorPatient
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author @DylanDelobel
// @match https://dev.alaxione.fr/point-vision/*
// @icon https://www.google.com/s2/favicons?domain=alaxione.fr
// @require https://cdnjs.cloudflare.com/ajax/libs/Faker/3.0.1/faker.min.js
// @require https://code.jquery.com/jquery-3.4.1.min.js
@DylanDelobel
DylanDelobel / elobrawl.js
Created April 16, 2019 13:22
Elo calculator
function GetGloryFromWins(totalwins) {
if (totalwins <= 150)
return 20 * totalwins;
return Math.floor((10 * (45 * Math.pow(Math.log10(totalwins * 2), 2))) + 245);
}
function GetGloryFromBestRating(bestrating) {
var retval = 0;
if (bestrating < 1200)
retval = 250;
@DylanDelobel
DylanDelobel / security.yaml
Created February 7, 2019 14:54
security easy
security:
encoders:
Symfony\Component\Security\Core\User\User:
algorithm: bcrypt
cost: 12
providers:
in_memory:
memory:
users:
admin:
main[-1u]={1};