yarn add -D vite-tsconfig-paths @tsconfig/recommended
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
| # See https://pre-commit.com for more information | |
| # See https://pre-commit.com/hooks.html for more hooks | |
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v3.2.0 | |
| hooks: | |
| - id: trailing-whitespace | |
| - id: end-of-file-fixer | |
| - id: check-yaml | |
| - id: check-added-large-files |
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 { useRouter } from "next/router" | |
| import { useState, useEffect, useMemo } from "react" | |
| import * as E from "fp-ts/Either" | |
| import * as TE from "fp-ts/TaskEither" | |
| import { pipe } from "fp-ts/lib/function" | |
| import { cloneGithubWiki } from "../../hooks/useGithubWiki" | |
| import { toOutput, WikiContentEither } from "../../components/WikiDisplay" | |
| import FS from "@isomorphic-git/lightning-fs" | |
| export default function Gene() { |
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 bs = require('browser-sync').create(); | |
| // Config params (relative to where npm/script is called from): | |
| const PORT = 3000; | |
| const OUTPUT_DIR = './build'; | |
| bs.watch(`${OUTPUT_DIR}/**/*.js`, function (event, file) { | |
| bs.reload("*.js"); | |
| }) |
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
| var fs = require("fs"); | |
| var path = require("path"); | |
| // Config params (relative to where npm/script is called from): | |
| const APP_BASE = './src'; | |
| const ENTRY_FILE = `index.tsx`; | |
| const OUTPUT_DIR = './build'; | |
| const OUTPUT_FILE = 'app.js'; | |
| const IS_DEV = false; | |
| const TARGET = 'es2018'; |
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 main is a sample macOS-app-bundling program to demonstrate how to | |
| // automate the process described in this tutorial: | |
| // | |
| // https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
| // | |
| // Bundling the .app is the first thing it does, and creating the DMG is the | |
| // second. Making the DMG is optional, and is only done if you provide | |
| // the template DMG file, which you have to create beforehand. | |
| // | |
| // Example use: |
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
| 🏆 646 Contributions in year 2020 | |
| 📦 Used NaN undefined in GitHub's Storage | |
| 📜 60 Public Gists | |
| 🔑 7 Public Keys | |
| 💼 Opted to Hire |
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 main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/dictyBase/go-genproto/dictybaseapis/annotation" | |
| ) | |
| func (r *StrainResolver) Phenotypes(ctx context.Context, obj *models.Strain) ([]*models.Phenotype, error) { |
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
| { | |
| "extends": "airbnb-base", | |
| "rules": { | |
| "quotes": ["error","double"], | |
| "semi": ["error","never"], | |
| "no-console": ["error", {"allow": ["log"]}], | |
| "arrow-body-style": ["error","always"], | |
| "arrow-parens": ["error","as-needed"], | |
| "class-methods-use-this": ["error", { "exceptMethods": ["_write"]}], | |
| "object-curly-newline": ["error", { "multiline": true }] |