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
{ | |
"name": "Timpler", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"a": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug", | |
"android": "react-native run-android", | |
"ios": "react-native run-ios", | |
"start": "react-native start", | |
"test": "jest", |
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 { Node, NodeSpec, AttributeSpec, ParseRule, Fragment, NodeType } from 'prosemirror-model'; | |
import { EditorState, Plugin } from 'prosemirror-state'; | |
import { Decoration, EditorView, NodeView } from 'prosemirror-view'; | |
import { ComponentType } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { createGlobalStyle, css } from 'styled-components'; | |
/** | |
* Props for react component responsible for rendering node view | |
*/ |
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
// Copy this code and paste it into Scriptable code editor on your phone | |
async function loadStats() { | |
const request = new Request("https://your-endpoint-giving-you-revenue-data.com"); | |
const { todayUSD, todayOrders, revenue30USD, orders30 } = await request.loadJSON(); | |
return { todayUSD, todayOrders, revenue30USD, orders30 }; | |
} | |
const usdFormatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }); |
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 iOSPreset = { | |
r1: 0.0586, | |
r2: 0.332, | |
}; | |
function getSmoothSquirclePath(w: number, h: number, r1: number, r2: number) { | |
r1 = Math.min(r1, r2); | |
return ` | |
M 0,${r2} |
OlderNewer