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
function (user, context, callback) { | |
// console.log('context', context); | |
const namespace = "https://hasura.io/jwt/claims"; | |
const roles = (context.authorization || {}).roles || []; | |
const claims = { | |
'x-hasura-default-role': 'user', | |
'x-hasura-allowed-roles': [ | |
'anonymous', | |
'user', |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
typeof (() => { return })() | |
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 * as React from "react"; | |
import { StyleSheet, SafeAreaView } from "react-native"; | |
import { | |
Div, | |
ThemeProvider, | |
Text, | |
Button, | |
Input, | |
Icon, | |
Image, |
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
#!/usr/bin/env python3 | |
import sys | |
import os | |
import glob | |
import subprocess | |
import multiprocessing as mp | |
import subprocess | |
# change this | |
inputDir = "./input" |
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
#!/bin/bash | |
clear | |
echo "" | |
echo -e "\e[44mHEADLESS RASPBIAN\e[0m" | |
echo "WiFi & SSH setup" | |
echo "" | |
echo "Available partitions:" | |
lsblk -e7 | |
echo "" |
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
{ | |
"headers": [ | |
{ | |
"source": "/(.*)", | |
"headers": [ | |
{ | |
"key": "Permissions-Policy", | |
"value": "interest-cohort=()" | |
} | |
] |
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 { compile } from 'svelte/compiler' | |
/** | |
* @returns {import('vite').Plugin} | |
*/ | |
const vitePluginSvelteDocs = () => { | |
const virtualModuleId = '@virtual:svelte-docs' | |
return { | |
name: 'vite-plugin-svelte-docs', |
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 readline = require("readline"); | |
const { default: faker } = require("@faker-js/faker"); | |
require("isomorphic-fetch"); | |
const API_URL = "http://localhost:4242/api/admin/projects/default/features"; | |
const API_KEY = "<YOUR_ADMIN_TOKEN>"; | |
const pastDate = (min = 0) => new Date(Date.now() - 1000 * 60 * min); | |
const FgGreen = "\x1b[32m"; |