Skip to content

Instantly share code, notes, and snippets.

{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
["@semantic-release/npm", { "npmPublish": false}],
["@semantic-release/git",
{
"assets": ["package.json", "package-lock.json", "compiled/index.js", "CHANGELOG.md"],
const useQuery = (): URLSearchParams => {
return new URLSearchParams(useLocation().search);
};
const Home = (): JSX.Element => {
const query = useQuery();
const wowUrl = query.get("wow");
const githubUser: string = query.get("gh_user") ? query.get("gh_user") : "wowlink";
const githubRepository: string = query.get("gh_repo") ? query.get("gh_repo") : "default-profile";
const [progress, setProgress] = useState({ msg: "init" });
useEffect(() => {
import {
UrlTranslatorRequest,
UrlTranslatorResponse,
UrlTranslator,
UrlTranslatorConfig,
} from "@wowlink/wow-interface";
class BasicUrlTranslator implements UrlTranslator {
config_: UrlTranslatorConfig;
constructor(config: UrlTranslatorConfig) {
import {
LookupFetcher,
LookupFetcherConfig,
LookupFetchRequest,
LookupFetchResponse,
} from "@wowlink/wow-interface";
import { Octokit } from "@octokit/rest";
import yaml from "js-yaml";
class GitHubLookupFetcher implements LookupFetcher {
export interface LookupFetchResponse {
wowMapping: Record<string, string>;
}
export interface UrlTranslatorRequest {
wowUrl: string;
}
export interface UrlTranslatorResponse {
fullUrl: string;
export interface LookupFetchRequest {}
export interface LookupFetchResponse {
mapping: Record<string, string>;
}
export interface LookupFetcherConfig {
githubUser?: string;
githubRepository?: string;
customPayload?: Record<string, string>;
@tianhaoz95
tianhaoz95 / requirements-local.txt
Created March 21, 2021 05:00
Connector dependencies
mysqlclient
mysql-connector-python
@tianhaoz95
tianhaoz95 / docker-compose.yml
Created March 21, 2021 05:00
Configuration for double MySQL Superset
x-superset-image: &superset-image apache/superset:latest-dev
x-superset-depends-on: &superset-depends-on
- db
- redis
- mysql
- mysqledge
x-superset-volumes: &superset-volumes
# /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
- ./docker:/app/docker
- ./superset:/app/superset
@tianhaoz95
tianhaoz95 / example_mergify_config_for_monorepo.yml
Created October 9, 2020 22:09
Example Mergify configuration that automatically merges experimental and Dependabot changes
pull_request_rules:
- name: auto merge experimental projects
conditions:
- -files~=^(!?playground/)
actions:
merge:
method: squash
- name: auto merge personal documentation
conditions:
- -files~=^(!?docs/personal/)
@tianhaoz95
tianhaoz95 / boring_cyborg_example_config.yml
Created October 9, 2020 19:29
Example configuration file for Boring Cyborg
labelPRBasedOnFilePath:
project_1:
- projects/project_1/**/*
project_2:
- projects/project_2/**/*
experimental_projects:
- playground/**/*
documentation:
- docs/**/*