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 from "react"; | |
import { h } from "react"; | |
export default | |
class AppDrawer extends React.Component<AppDrawerProps, AppDrawerState> { | |
state: AppDrawerState = { | |
current: [0] | |
}; | |
private entries: Array<MenuItem> = [ |
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 * as React from "preact"; | |
import { h, Fragment } from "preact"; | |
import Match from "preact-router/match"; | |
import { forwardRef } from "preact/compat"; | |
import { Link } from "preact-router/match"; | |
import Slide from "@material-ui/core/Slide"; | |
import Drawer from "@material-ui/core/Drawer"; | |
import Divider from "@material-ui/core/Divider"; | |
import List from "@material-ui/core/List"; | |
import ListItem from "@material-ui/core/ListItem"; |
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
#include <stdio.h> | |
enum { MAX_NUM_OBJECTS = 29 }; | |
typedef struct { | |
union { | |
uint32_t mask; | |
struct { | |
bool available : 1; | |
bool client : 1; |
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
#include <stdbool.h> /* bool, true, false */ | |
#include <stdio.h> /* printf */ | |
#include <string.h> /* strdup */ | |
#include <stdlib.h> /* calloc */ | |
typedef struct hash_t { | |
size_t size, count; | |
size_t bytes; | |
const char **keys; | |
struct hash_t** items; |
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
[robert.butler@mc01 multi_thread]$ cargo build --target wasm32-unknown-unknown | |
Compiling cfg-if v0.1.10 | |
Compiling futures-core v0.3.5 | |
Compiling once_cell v1.4.0 | |
Compiling futures-sink v0.3.5 | |
Compiling pin-utils v0.1.0 | |
Compiling futures-io v0.3.5 | |
Compiling slab v0.4.2 | |
Compiling itoa v0.4.5 | |
error[E0463]: can't find crate for `core` |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"lib": [ "dom", "dom.iterable", "esnext" ], | |
"jsx": "react", | |
"jsxFactory": "React.h", | |
"module": "commonjs", | |
"moduleResolution": "node", |
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
warning Error running install script for optional dependency: "/usr/share/.config/yarn/global/node_modules/bufferutil: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild | |
Arguments: | |
Directory: /usr/share/.config/yarn/global/node_modules/bufferutil | |
Output: | |
gyp info it worked if it ends with ok | |
gyp info using [email protected] | |
gyp info using [email protected] | linux | x64 | |
gyp info find Python using Python version 3.8.3 found at \"/usr/bin/python3\" |
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
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"incremental": true, /* Enable incremental compilation */ | |
"target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | |
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
"lib": [ | |
"es2019", | |
"dom" | |
], /* Specify library files to be included in the compilation. */ |
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
export interface TableInfo { | |
tableId: string; | |
columns: Array<string>; | |
} | |
export interface StorageInfo { | |
[key: string]: string | TableInfo; | |
} | |
interface PageInfo { |