Skip to content

Instantly share code, notes, and snippets.

View jojojojojoj5564656465465's full-sized avatar

JONATHAN jojojojojoj5564656465465

View GitHub Profile
@jojojojojoj5564656465465
jojojojojoj5564656465465 / cloudfare-worker-post-to-notion.js
Created July 2, 2022 02:51 — forked from Fredkiss3/cloudfare-worker-post-to-notion.js
Script for cloudfare worker to post to a notion database
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Allow-Credentials': true,
};
const ALLOWED_HOSTS = [
// Put your allowed cors hosts here
// By default localhost is allowed
// Your fetch should have a `mode: cors` enabled for it to work
export async function jsonFetch<T>(
url: string,
options: RequestInit = {}
): Promise<T> {
// Set the default headers correctly
const headers: HeadersInit = new Headers(options.headers);
headers.set('Accept', 'application/json');
headers.set('Content-Type', 'application/json');
return fetch(url, {
@jojojojojoj5564656465465
jojojojojoj5564656465465 / emet.css.json
Last active January 14, 2023 18:01
Code Snippets CSS For responsive - vscode
/* responsive rules to add to the css.json file to enable fast responsive emet */
"Large Screen":{
"prefix": "responsiveRetina",
"body": ["@media (min-width: 1281px){\r\r.$1{$2}\r\r}"],
"description": "Responsive Desktop "
},
"Laptop":{
@jojojojojoj5564656465465
jojojojojoj5564656465465 / settings.json
Last active February 26, 2023 19:23
My vscode Settings.json i use CASCADIA FONT
{
"npm.packageManager": "pnpm",
"files.autoSave": "afterDelay",
"debug.javascript.autoAttachFilter": "disabled", /* pour les etiquettes à la con */
"debug.javascript.codelens.npmScripts": "never",
"editor.fontLigatures": true,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"terminal.integrated.defaultProfile.linux": "zsh",