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 {expect} from "@jest/globals"; | |
import {map, of} from "rxjs"; | |
function matchesAny(tuples: [string, string][], prefix: string) { | |
return tuples.filter(t => matches(t, prefix)); | |
} | |
function matches(tuple: [string, string], prefix: string) { | |
return tuple[0].startsWith(prefix) | |
} |
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
// couche de présentation | |
public class TaskController { | |
private TaskService taskService; | |
public void addTask(String title, String description) { | |
Task task = new Task(title, description); | |
taskService.addTask(task); | |
} | |
public List<Task> getTasks() { |
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
<button mat-flat-button class="download-btn" onDownloadFile | |
[downloadFunc]="downloadCsr.bind(this)" | |
[contentType]="'application/pkcs10'" | |
[fileName]="cert.commonName + '.pem'"> | |
{{'certificate.detail.downloadCSR' | translate}} | |
</button> |
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
// configure with spring | |
@Configuration | |
public class MetricsContractConfiguration { | |
@Bean | |
public MetricContractManager sepiaMetricContractManager(MetricContractManager metricContractManager) { | |
metricContractManager.addContract("dss_signature_sign", "docType", "signType", "responseCode", "errorType", "callOrigin", "enterpriseNumber", "signProfile"); | |
metricContractManager.addContract("dss_signature_timestamp"); | |
return metricContractManager; |
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
// metriques de base | |
@Timed(value = "sign_document_request_duration", description = "The duration of sign document request processing") | |
public String signDocument(String id, String messageDigest, String signAlgorithm) { | |
// Your processing code here | |
} | |
// afficher les signatures par type d'erreur | |
@Counted(value = "sign_document_response_status", description = "The number of sign document response by HTTP status code") | |
public String signDocument(String id, String messageDigest, String signAlgorithm) { |
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
// example page https://www.mtgtop8.com/archetype?a=816&meta=51&f=MO | |
function parseData() { | |
var data = []; | |
[].forEach.call(document.querySelectorAll(".page table td:first-child .hover_tr"), function(el) { | |
var tokens = el.textContent.split(/\r?\n/).filter(l => l.trim()).map(l => l.trim()); | |
if (tokens.length == 2) { | |
data.push({y: parseFloat(tokens[1].replace(" %", "")), label: tokens[0] }); | |
} | |
}); |
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
@echo off | |
REM input.conf structure : | |
REM sub_folder_1,1.1.0,1.2.0 | |
REM sub_folder_2,1.2.0,1.3.0 | |
REM here we checkout a project a create a new branch | |
for /F "tokens=*" %%r in (input.conf) do ( | |
for /F "tokens=1,2,3,4 delims=," %%A in ("%%r") do ( | |
cd %%A |
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
format | deck | cards | |
---|---|---|---|
oldschool | ernhamgeddon | sylvan library | |
oldschool | burngeddon | (https://www.bazaarofmagic.eu/en-WW/decks/erhnam-burnyem-old-school-93-94/50305) | |
modern | copycat | 4x Invasion of Alara, 4x Invasion of Ergamon | |
modern | u/w control | 4x Temporary Lockdown | |
modern | as foretold | 4x as foretold, 4x restore balance, 2x ancestral vision | |
legacy | u/w polymorph | 4x Staff of the storyteller | |
legacy | u/w polymorph | 4x Polymorph | |
legacy | cephalid bfast | 3x Narcomoeba | |
pioneer | u/b control | 3x Sheoldred's Edict |
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
#title: Mono Blue Delver | |
#builder: Beest | |
#MTGO - Magic Online 1st (5-0) in MTGO Legacy League — 23-Jan-2021 | |
2 Brazen Borrower | |
4 Delver of Secrets | |
4 Ethereal Forager | |
4 Nivmagus Elemental | |
1 Force of Negation | |
3 Stifle | |
3 Gut Shot |
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
date | format | deck | link | overall result | match 1 | deck 1 | match 2 | deck 2 | match 3 | deck 3 | |
---|---|---|---|---|---|---|---|---|---|---|---|
27/03/2020 | legacy | jund phoenix | https://www.mtggoldfish.com/deck/3786991#paper | 1-2 | 2-1 | monored prison | 1-2 | u/w stoneblad | 2-0 | bomberman | |
23/07/2020 | legacy | jund phoenix | https://www.mtggoldfish.com/deck/4171748#paper | 2-1 | 0-2 | monoblack reanimator | 2-0 | TES | 2-1 | burn | |
30/07/2020 | modern | twiddle storm | https://www.mtggoldfish.com/deck/4190194#paper | 1-2 | 2-1 | ally | 0-2 | Tron | 2-0 | elves |
NewerOlder