Skip to content

Instantly share code, notes, and snippets.

View KongClient.php
<?php
declare(strict_types=1);
namespace Infrastructure\ApiGateway\Kong;
use Domain\Assert;
use Ramsey\Uuid\Uuid;
use Ramsey\Uuid\UuidInterface;
use Symfony\Component\HttpFoundation\Response;
View FacebookLoginVue3.vue
<template>
<button class="button" @click="logInWithFacebook"> Login with Facebook</button>
</template>
<script>
export default {
setup() {
const logInWithFacebook = async () => {
await loadFacebookSDK(document, "script", "facebook-jssdk")
initFacebook().then(r => {
View Global_gitignore.md

Créer un gitignore global

Linux

    git config --global core.excludesfile ~/.gitignore_global

La configuration a été ajouté dans le ~/.gitconfig

    [core]
@BenjaminRqt
BenjaminRqt / Makefile-help.md
Last active Jan 9, 2020
Afficher l'aide sur un Makefile
View Makefile-help.md

Créer une commande "make help" pour afficher les commentaires d'une commande

.PHONY: help
help: ## This help
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(TARGETS) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m%s\n", $$1, $$2}'
@BenjaminRqt
BenjaminRqt / .gitconfig
Created Oct 4, 2019 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls