This file contains hidden or 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
"use client"; | |
import type { ColumnDef } from "@tanstack/react-table"; | |
import type { ColumnSchema } from "./schema"; | |
import { format } from "date-fns"; | |
export const columns: ColumnDef<ColumnSchema>[] = [ | |
{ | |
accessorKey: "date", | |
header: "Date", |
This file contains hidden or 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
"use client"; | |
import type { ColumnDef } from "@tanstack/react-table"; | |
export interface Schema { | |
region: string; | |
trend: string; | |
p50: number; | |
} |
This file contains hidden or 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
// /app/api/upstash/[[...slug]].ts | |
import { Redis } from "@upstash/redis"; | |
const redis = Redis.fromEnv(); | |
type Params = { slug: string | string[] | undefined }; | |
function createKey(slug: Params["slug"]) { | |
return slug ? [...(Array.isArray(slug) ? slug : [slug])].join(":") : "_root"; | |
} |
This file contains hidden or 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
name: CD | |
# Only trigger, when the ci workflow succeeded | |
# The `workflow_run` will only trigger a workflow run if the workflow file is on the default branch | |
# See: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: |
This file contains hidden or 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 React, { Component } from 'react' | |
import { View, Image, StyleSheet, ScrollView, Text, Animated, StatusBar } from 'react-native' | |
import Icon from 'react-native-vector-icons/MaterialIcons' | |
const IMG_SRC = { uri: "https://pulsations.files.wordpress.com/2010/05/randomdog.jpg" } | |
const IMG_HEIGHT = 200 | |
const NAVBAR_HEIGHT = 64 | |
class Twitter extends Component { | |
constructor(props) { |