Skip to content

Instantly share code, notes, and snippets.

@BalogunofAfrica
BalogunofAfrica / app.json
Created January 23, 2024 18:48
Expo app.json for expo router `v2`
{
"expo": {
"scheme": "acme",
"userInterfaceStyle": "automatic",
"orientation": "default",
"web": {
"output": "static",
"bundler": "metro"
},
"plugins": [
@BalogunofAfrica
BalogunofAfrica / list-renderer.tsx
Created March 31, 2023 10:37
Simple API for using FlashList as Scrollview
import { FlashList, FlashListProps } from "@shopify/flash-list";
import React, { forwardRef, ReactElement } from "react";
type ListProps<T> = Omit<FlashListProps<T>, "children"> & { as?: "list" };
type ScrollViewProps<T> = Omit<
FlashListProps<T>,
"children" | "data" | "renderItem"
> & {
as?: "scroll-view";
children: React.ReactNode | React.ReactNode[];
@BalogunofAfrica
BalogunofAfrica / streamClient.ts
Last active September 20, 2022 11:25
Initializing the stream client
import { STREAM_API_KEY, STREAM_APP_ID } from "@env";
import { connect, UR } from "getstream";
export type User1Type = { name: string; username: string; image?: string };
export type User2Type = { name: string; avatar?: string };
export type Verbs = "follow" | "save" | "like" | "post" | "publish";
export type ActivityDetail = {
actor: {
created_at: Date;
data: {

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.