- Follow this guide to install
jq
- Install Python and
pip
if you haven't already - Install
yq
via pip by runningpip install yq
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
<?xml version="1.0" encoding="utf-8"?> | |
<rbl:kb xmlns:rbl="http://rbl.io/schema/RBLang"> | |
<concept name="person" type="string" /> | |
<concept name="language" type="string" /> | |
<concept name="country" type="string" /> | |
<rel name="speaks" subject="person" object="language" plural="true"> | |
<firstForm>Does %S speak %O</firstForm> | |
<secondFormSubject>Who speaks %O?</secondFormSubject> | |
<secondFormObject>What language does %S speak?</secondFormObject> |
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 saleStatusMachine = Machine({ | |
id: 'saleSatus', | |
initial: 'in_progress', | |
states: { | |
in_progress: { | |
on: { | |
HOLD: 'held', | |
COMPLETE: { | |
target: 'completed', | |
cond: 'isFullyPaid' |
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
module FetchMachine = Machine({ | |
type state = [#idle | #loading | #success | #failure] | |
type event = [#FETCH | #RESOLVE | #REJECT | #RETRY] | |
type context = {retries: int} | |
let id = "fetch" | |
let initial = #idle | |
let states = [ | |
State({ |
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
import { EventObject } from 'xstate'; | |
export function assertEventType< | |
TEvent extends EventObject, | |
TType extends TEvent['type'] | |
>( | |
event: TEvent, | |
type: TType | |
): asserts event is Extract<TEvent, { type: TType }>; | |
export function assertEventType< |
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
type effect | |
@module("use-effect-reducer") | |
external useEffectReducer: ( | |
@uncurry ( | |
'state, | |
'action, | |
@uncurry ((('state, unit, @uncurry ('action => unit)) => option<unit => unit>) => effect), | |
) => 'state, | |
'state, |
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 crypto from "node:crypto"; | |
import type { | |
SessionIdStorageStrategy, | |
SessionStorage, | |
} from "@remix-run/server-runtime"; | |
import { createSessionStorage } from "@remix-run/node"; | |
import { DynamoDB } from "aws-sdk"; | |
interface DynamoDbSessionStorageOptions { | |
/** |
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 { ImageResponse } from "workers-og"; | |
interface Env {} | |
export default { | |
async fetch( | |
request: Request, | |
env: Env, | |
ctx: ExecutionContext |
OlderNewer