Skip to content

Instantly share code, notes, and snippets.

import crypto from "crypto";
import { renderToStaticMarkup } from "react-dom/server";
import createMailgun from "mailgun-js";
import type { ActionFunction, LoaderFunction, Session } from "remix";
import { createCookieSessionStorage, json, redirect } from "remix";
/*******************************************************************************
* Before we can do anything, we need to make sure the environment has
* everything we need. If anything is missing, we just prevent the app from
* starting up.

Slow Speed, Short Rope

  • Surface 180s (Jet ski)
    • Push with back foot to release fins
    • upper body shouldn't really move
  • Surface 360s both TS/HS (jet ski)
    • lean against the line
    • sqaut to get good advance
    • pull with two hands
  • traveling
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
import { createCookieSessionStorage } from "remix";
let { getSession, commitSession, destroySession } = createCookieSessionStorage({
cookie: {
name: "__session",
secrets: ["r3m1xr0ck5"]
}
});
export { getSession, commitSession, destroySession };
const pageMachine = Machine({
id: 'pageTransition',
initial: 'idle',
context: {
location: '/',
nextLocation: null,
data: {},
forms: new Map(),
error: null
@ryanflorence
ryanflorence / fasdfas
Created April 23, 2021 19:35
Created from Remix Form!
asdfasdf
@ryanflorence
ryanflorence / more stuff
Created April 23, 2021 19:35
Created from Remix Form!
blah blah
@ryanflorence
ryanflorence / no js
Created April 23, 2021 19:34
Created from Remix Form!
hey hey
@ryanflorence
ryanflorence / mutations.md
Created April 23, 2021 19:33
Created from Remix Form!

hello hello

@ryanflorence
ryanflorence / blah.md
Created April 23, 2021 19:32
Created from Remix Form!

hello hello