Sure, I'm trying something a bit different, here's example usage:
class TodoList extends Store<{
id: number
}> {
items: Todo[] = [{ text: 'hi', done: false }]
get itemsDiff() {
return this.items.map((x, i) => i)
// Use your MDX content with this component. | |
import React from 'react' | |
import MDX from '@mdx-js/runtime' | |
import components from '../utils/markdown/markdown' | |
// Renders a cimple loading spinner as a test | |
import Loading from './Loading' | |
const mdxComponents = { |
// src/routes.tsx | |
import { Fragment, lazy, Suspense } from 'react' | |
import { Routes as BrowserRoutes, Route } from 'react-router-dom' | |
const PRESERVED = import.meta.glob('/src/pages/(_app|404).tsx', {eager: true}) | |
const ROUTES = import.meta.glob('/src/pages/**/[a-z[]*.tsx') | |
const _ROUTES = { | |
'/src/pages/index.tsx': { default: ƒ Index(), ... }, |
var context=new AudioContext(); | |
var o=null; | |
var g=null; | |
var note | |
var notes = [130.8, 138.6, 146.8, 155.6, 164.8, 174.6, 185.0, 196.0, 207.7, 220.0, 233.1, 246.9, 261.6, 277.2, 293.7, 311.1, 329.6, 349.2, 370, 392, 415.3, 440, 466.2, 493.9] //, 523.3, 554.4, 587.3, 622.3, 659.3, 698.5, 740, 784, 830.6, 880, 932.3, 987.8] | |
var swaras = ['Sa','re','Re','ga','Ga','Ma','MA','Pa','dha','Dha','ni','Ni','Sa*','re','Re*','ga*','Ga*','Ma*','MA*','Pa*','dha*','Dha*','ni*','Ni*', 'Sa**'] | |
function playNote(frequency) { |
npm i -g eslint eslint-config-universe eslint-plugin-import eslint-plugin-prettier @typescript-eslint/eslint-plugin eslint-plugin-babel prettier @typescript-eslint/parser babel-eslint eslint-plugin-react eslint-plugin-react-hooks eslint-config-prettier |
Sure, I'm trying something a bit different, here's example usage:
class TodoList extends Store<{
id: number
}> {
items: Todo[] = [{ text: 'hi', done: false }]
get itemsDiff() {
return this.items.map((x, i) => i)
const fs = require("fs"); | |
const bundle = fs.readFileSync("path-to-webpack-bundle.html", "utf8"); | |
const escaped = JSON.stringify(bundle); | |
const js = `export default ${escaped}`; | |
fs.writeFileSync("javascript-output-file.ts", js); |
license: gpl-3.0 |
{ | |
"$schema": "https://vega.github.io/schema/vega/v5.json", | |
"width": 400, | |
"height": 400, | |
"padding": 5, | |
"signals": [ | |
{ | |
"name": "method", | |
"value": "squarify", | |
"bind": { |
/* | |
expo-firestore-persistence-hack | |
A fragile weaving of various modules together to convince the Firestore | |
web SDK to use persistence in an un-ejected Expo app. | |
To use, first: | |
``` | |
$ expo install expo-sqlite |
import { useCount, useIncrement, useDecrement } from './store.Count' | |
export default function Counter () { | |
const count = useCount() | |
const increment = useIncrement() | |
const decrement = useDecrement() | |
return ( | |
<div> | |
<div>Count: {count}</div> |