This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import lru_cache | |
from pydantic import BaseModel | |
from pymonad.either import Left, Right | |
class Error(BaseModel): | |
message: str | |
def curry(func): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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; |
OlderNewer