Skip to content

Instantly share code, notes, and snippets.

View cheroliv's full-sized avatar

cheroliv cheroliv

View GitHub Profile
@cheroliv
cheroliv / GitDeleteCommands.ps1
Created October 15, 2020 20:46 — forked from cmatskas/GitDeleteCommands.ps1
Git Delete Branch commands
## Delete a remote branch
$ git push origin --delete <branch> # Git version 1.7.0 or newer
$ git push origin :<branch> # Git versions older than 1.7.0
## Delete a local branch
$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D <branch> # Force delete un-merged branches
## Delete a local remote-tracking branch
@cheroliv
cheroliv / .zsh_create_alias
Created November 3, 2020 17:02 — forked from prathik/.zsh_create_alias
create alias, make alias and remove alias shortcut for zsh
alias showalias='cat ~/.zsh_alias'
#Add source ~/.zsh_alias in your ~/.zshrc
#Type ma <aliasname> in a directory and it will create an alias to cd into that directory
makeAlias()
{
curDir=`pwd`
echo "alias $1='cd $curDir'" >> ~/.zsh_alias
source ~/.zshrc
}
package kofu
import org.slf4j.Logger
import org.slf4j.LoggerFactory.getLogger
import org.springframework.core.io.ClassPathResource
import org.springframework.fu.kofu.configuration
import org.springframework.fu.kofu.webflux.security
import org.springframework.fu.kofu.r2dbc.dataR2dbc
import org.springframework.fu.kofu.r2dbc.r2dbc
import org.springframework.fu.kofu.webflux.webFlux
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
//<?xml version="1.0" encoding="UTF-8" standalone="no"?>
// <person>
// <sex>female</sex>
// <firstname>Anna</firstname>
//<lastname>Smith</lastname>
// </person>
const FORM_ID = "1DmEbk9VJlJ6HDHHnhSEdipxudWtAAxp3KeZpNHgHPjo";
const SPREADSHEET_URL = "https://docs.google.com/spreadsheets/d/1qv_4HN-MM6OhRG0W1m7RFJ8Ryu0Ob1DapjwSIiBk9k4/edit?usp=drive_link";
/*=================================================================================*/
const onSubmit = () => Logger.log("Cycle de vie de la Form: A la soumission du QCM");
/*=================================================================================*/
const onStartUp = () => EvaluationManager
@cheroliv
cheroliv / fact.py
Last active January 5, 2024 22:00
python functional factorial
from functools import lru_cache
from pydantic import BaseModel
from pymonad.either import Left, Right
class Error(BaseModel):
message: str
def curry(func):
@cheroliv
cheroliv / test_fact.py
Last active January 5, 2024 22:38
test factorial in python fact.py
import pytest
from unittest.mock import patch
from fact import run_computation, fact, Error
def test_run_computation_valid_input():
with patch('builtins.input', return_value='5'):
assert run_computation(5) == 120
@cheroliv
cheroliv / puml
Created June 12, 2024 17:12
courtier_formation_usecase
@startuml
skinparam actorStyle awesome
left to right direction
title: Cas d'utilisation Formation Assu-CRM
'Acteurs
actor "Formateur" as trainer #pink;line:red;text:red
@cheroliv
cheroliv / puml
Created June 12, 2024 17:30
courtier_state
@startuml
[*] --> Prospection : Activité du courtier en assurance
state Prospection {
[*] --> IdentifierClientsPotentiels : Recherche de prospects
IdentifierClientsPotentiels --> ContacterClients : Prise de contact initiale
ContacterClients --> PresenterProduits : Présentation des produits d'assurance
PresenterProduits --> ProspectionTerminee : Évaluation de l'intérêt
ProspectionTerminee --> [*] : Prospection terminée
@cheroliv
cheroliv / puml
Created June 12, 2024 17:34
courtier_activity
@startuml
|Courtier en Assurance|
start
:Identifier les clients potentiels;
:Contacter les clients;
:Présenter les produits d'assurance;
if (Prospect intéressé?) then (oui)
:Évaluer les besoins;