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 plugin = require('tailwindcss/plugin'); | |
const spacing = { | |
auto: 'auto', | |
px: '1px', | |
0.5: '2px', | |
0: '0px', | |
1: '4px', | |
1.5: '6px', | |
2: '8px', |
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 got, { type RequestError } from "got"; | |
import { env } from "~/env"; | |
import { StatusCodes } from "http-status-codes"; | |
const generateAction = async (request, response) => { | |
const result = await got | |
.post(env.HUGGINGFACE_MODEL_URL, { | |
hooks: { | |
afterResponse: [ | |
(result, retryWithMergedOptions) => { |
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
:root { | |
--ps-color-gray-50: #F9FAFB; | |
--ps-color-gray-100: #EEF0F2; | |
--ps-color-gray-200: #DEE4E8; | |
--ps-color-gray-300: #C2CDD6; | |
--ps-color-gray-400: #8E9EAC; | |
--ps-color-gray-500: #5F7482; | |
--ps-color-gray-600: #434F5C; | |
--ps-color-gray-700: #1E2B36; | |
--ps-color-blue-100: #EBF4FB; |
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 { log } = actions; | |
const apolloRequest = (data) => Promise.resolve(data); | |
const MOCK_RETURN_ACTION = { | |
type: 'ADD_VIDEO_TO_YOUR_LIST', | |
variables: { | |
id: "1755", | |
secondsPlayed: 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState |
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
// 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
const inputActions = { | |
CHANGE: "input/change", | |
FOCUS: "input/focus", | |
BLUR: "input/blur" | |
}; | |
const valid = "editing.dirty.valid"; | |
const inputMachine = Machine( | |
{ |
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 USER_HAS_AGREED_TO_WELCOME = false; | |
const USER_IS_LOGGED_IN = false; | |
const conversationMachine = Machine({ | |
id: 'welcomeSequence', | |
initial: 'idle', | |
context: { | |
hasVisitedPrior: null, | |
user: null, | |
conversationSlug: null, |
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
// ==UserScript== | |
// @name BlueJeans Open In App | |
// @namespace https://vinspee.me | |
// @version 0.1 | |
// @license MIT | |
// @description Open BlueJeans meetings in the app | |
// @author Vince Speelman <[email protected]> | |
// @match *://*.bluejeans.com/* | |
// @grant window.close | |
// @require https://cdn.rawgit.com/agnoster/base32-js/91f43b82f19f467ade1270aa4b0e579b201d7efd/dist/base32.min.js |
NewerOlder