Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Sorry!</title>
<style>
html {
font-size: 22px;
}
@chickencoder
chickencoder / react-static-generation.md
Last active March 6, 2020 11:40
Statically generating React sites

Process

Static generation requires two bundles to be generated from the React source. The first is the server bundle, which is bundled to target node. This bundle is required by the build script that calls the react-dom/server package's renderToString function.

The renderToString function should be called once per page and should be passed the root React component for that page.

The second bundle is the client bundle which targets the browser.

In Short

@chickencoder
chickencoder / REALM.md
Last active February 19, 2020 08:24
REALM

Realm

Realm is an opinionated React Framework for Web Artisans

  • Isomorphic
  • Serverless
  • Monolithic
  • SSR data

A Project

@chickencoder
chickencoder / bible.txt
Last active January 18, 2023 01:02
Plain text list of all the books of the bible. Line separated and capitalised.
Genesis
Exodus
Leviticus
Numbers
Deuteronomy
Joshua
Judges
Ruth
1 Samuel
2 Samuel
@chickencoder
chickencoder / gist:71cae2e785c41ed34f501f138f64310f
Created November 13, 2019 22:50
Serverless storage service for JAMStack/Serverless Apps
1. Create a store in the app
2. Get an API key for that store
3. Post off to any collection endpoint
4. Rest out of the box
Feels as simple as a google sheet, as reliable as a real database
```
const store = require('cute-store')()
```

Connect with the Creative Church

Showcasing the people and projects who are redefining what it looks like to be Church [img](illustration of creatives)

What is Bread?

Bread is an attempt to unite creators in the Church globally to encourage the Church to use their gifts to reach the ends of the world.

  1. Share a Project
  2. Discover Projects (keep up to date)
  3. Meet other creators (collaborate)

Creative Church Community

Showcasing the people and projects who are redefining what it looks like to be Church [img](illustration of creatives)

What is Bread?

Bread is an attempt to unite creators in the Church globally to encourage the Church to use their gifts to reach the ends of the world.

  1. Share a Project
  2. Discover Projects (keep up to date)
  3. Meet other creators (collaborate)
@chickencoder
chickencoder / README.md
Created August 15, 2019 21:42
RFC: Public Spaces APIs

Public Spaces API

Public Spaces are areas and resources on public websites that the server owner decides to open up to the public - just like a park or library (IRL).

For instance, if twitter.com decided to open up a Public Space, they would designate https://twitter.com/.public-spaces/ to be the root of the Public Spaces API.

Public Spaces are federated APIs that can communicate with any other ActivityPub (server-to-server) service, such as Mastodon. They provide simple message services for direct messaging, group messaging and public forum messaging. Public Spaces can be utilised many different ways.

Public Spaces can also provide media storage, webhooks and other integrations.

A simple types.gql to define basic content types...

type Post @options("where", "limit", "order") {
  title: String!
  content: String
}

The resulting schema...

type Post {}