This file contains hidden or 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
[ | |
"3D", | |
"Ad Networks", | |
"Advertising", | |
"Affiliate Marketing", | |
"Animation", | |
"API Tools", | |
"App Launcher", | |
"Application Performance Monitoring", | |
"Automated Testing", |
This file contains hidden or 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
{ | |
"info": { | |
"name": "Permit.io Next.js API Testing", | |
"description": "A collection to test the Permit.io permission check endpoint in Next.js", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Check Permission - GET", | |
"request": { |
This file contains hidden or 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
-- 1. create the function | |
CREATE OR REPLACE FUNCTION log_post_update() | |
RETURNS TRIGGER AS $$ | |
BEGIN | |
NEW.updated_at = NOW(); | |
IF NEW.title <> OLD.title THEN | |
INSERT INTO posts_logs (post_id, log_message) | |
VALUES (NEW.id, 'Updated title'); | |
ELSEIF NEW.description <> OLD.description THEN |
This file contains hidden or 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
"ncomp": { | |
"scope": "javascriptreact,typescriptreact,tsx", | |
"prefix": "ncomp", | |
"body": [ | |
"'use client';", | |
"export default function $TM_FILENAME_BASE() {", | |
"return <div>New component with filename</div>;", | |
"}" | |
] | |
}, |
This file contains hidden or 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 fs = require('fs'); | |
let rawdata = fs.readFileSync('sheets1.json'); | |
let raw1 = JSON.parse(rawdata) | |
let rawdata2 = fs.readFileSync('sheets2.json'); | |
let raw2 = JSON.parse(rawdata2) | |
// let data = JSON.stringify(raw1.filter(x => x !== null)); | |
// fs.writeFileSync('sheets1.json', data); |
This file contains hidden or 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
<script setup> | |
import { reactive } from "vue"; | |
import { defineEmits } from "vue"; | |
import { useApi } from '@/composables/useApi' | |
const { coucou } = useApi(); | |
const emit = defineEmits(["recupereLeForm"]); | |
const props = defineProps({ |
This file contains hidden or 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
{ | |
id: { type: String, unique: true, required: true }, | |
domain: Array, | |
subdomain: { type: String }, | |
file_external_id: Array, | |
contract_external_id: Array, | |
visualFileName: { type: String, default: "document.pdf" }, // n'a pas lieu d'être, nom + type généré à la volée | |
name: { type: String, required: true }, | |
code: { type: String, default: "" }, // internal unique name for file upload ???? | |
desc: { type: String }, |
This file contains hidden or 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
async getPaymentIntent () { // get the payment intent from API | |
const data = { | |
amount: this.formatStripePrice(this.getCurrentCoaching.price), | |
currency: 'eur' | |
} | |
this.isLoading = true | |
await this.$api.payment.getPaymentIntent(data, process.env.NODE_ENV) // call API, env is to switch dev/staging/prod | |
.then(({ client_secret }) => { | |
this.clientSecret = client_secret | |
this.buildCard() // build front module payment |
This file contains hidden or 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
require("dotenv").config() | |
const express = require('express') | |
const app = express() | |
const cors = require('cors') | |
const bodyParser = require('body-parser') | |
const PORT = process.env.PORT || 4000 | |
app.use(cors()); | |
app.use(express.json()); | |
app.use(bodyParser.json(), cors()) |
This file contains hidden or 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
<template> | |
<div> | |
<p>{{ msg }}</p> | |
</div> | |
</template> | |
<script> | |
import { reactive, toRefs } from "vue"; | |
export default { |
NewerOlder