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
const { SchemaConverter } = require("pg-tables-to-jsonschema"); | |
(async () => { | |
const converter = new SchemaConverter({ | |
pg: { | |
host: "::1", | |
port: 5432, | |
user: "user", | |
password: "pass", | |
database: "db", |
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
// Type definitions for react-table 7.0 | |
// Project: https://github.com/tannerlinsley/react-table | |
// Definitions by: Guy Gascoigne-Piggford <https://github.com/ggascoigne>, | |
// Michael Stramel <https://github.com/stramel> | |
// Rohit Garg <https://github.com/gargroh> | |
// Jason Clark <https://github.com/riceboyler> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// TypeScript Version: 3.5 | |
// reflects react-table@7.0.4 |
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 path from "https://deno.land/std@0.97.0/path/mod.ts"; | |
import { readZip } from "https://deno.land/x/jszip@0.9.0/mod.ts"; | |
const dirPath = Deno.args[0] || "."; | |
for await (const entry of Deno.readDir(dirPath)) { | |
if (entry.isFile && entry.name.endsWith(".epub")) { | |
const epubPath = path.resolve(dirPath, entry.name); | |
const folderName = entry.name.substring(0, entry.name.lastIndexOf(".")); |
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
#!/bin/bash | |
# 使用方式:./upload-to-mirror.sh k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 | |
sudo docker pull $1 | |
name=$1 | |
name=${name////-} | |
tag="registry.cn-beijing.aliyuncs.com/${REGISTRY_NAME}/${name#*-}" | |
echo "tag image as ${tag}" | |
sudo docker tag $1 $tag | |
sudo docker login --username=${USER_NAME} --password=${PASSWORD} registry.cn-beijing.aliyuncs.com |
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
package com.flatgeobuf; | |
import com.google.common.io.ByteStreams; | |
import com.google.common.io.LittleEndianDataInputStream; | |
import org.locationtech.jts.geom.Envelope; | |
import org.locationtech.jts.geom.Geometry; | |
import org.locationtech.jts.geom.GeometryFactory; | |
import org.wololo.flatgeobuf.ColumnMeta; | |
import org.wololo.flatgeobuf.GeometryConversions; | |
import org.wololo.flatgeobuf.HeaderMeta; |
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
/** | |
* @typedef Env | |
* @property {D1Database} DATABASE | |
*/ | |
/** | |
* @typedef User | |
* @property {string} username | |
* @property {string} password | |
*/ |
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
/** | |
* @typedef AuthenticateRealm | |
* @property {string} realm | |
* @property {string} service | |
*/ | |
/** | |
* @typedef Env | |
* @property {string} API_DOMAIN | |
*/ |