Skip to content

Instantly share code, notes, and snippets.

View cybersiddhu's full-sized avatar

Siddhartha Basu cybersiddhu

View GitHub Profile
@cybersiddhu
cybersiddhu / launch.js
Created February 18, 2021 16:32 — forked from rw3iss/launch.js
browsersync script to hot reload any client project
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");
})
@cybersiddhu
cybersiddhu / build.js
Created February 18, 2021 16:30 — forked from rw3iss/build.js
esbuild.js frontend build script
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';
@cybersiddhu
cybersiddhu / macapp.go
Created February 6, 2021 19:24 — forked from mholt/macapp.go
Distribute your Go program (or any single binary) as a native macOS application
// 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:

❌ ❌ Ontology errors ❌ ❌

File: dicty_pheno.obo

💥Violations💥

  • best of the best
  • error in fun
  • exceptionally fun

File: dicty_env.obo

💥Violations💥

  • no env
🏆 646 Contributions in year 2020
📦 Used NaN undefined in GitHub's Storage
📜 60 Public Gists
🔑 7 Public Keys
💼 Opted to Hire
@cybersiddhu
cybersiddhu / pheno.go
Created June 28, 2019 18:24
phenotype resolver
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) {
{
"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 }]
{
"name": "minio-promise",
"version": "1.0.0",
"description": "using minio with promise",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"husky": {
"hooks": {
const Minio = require("minio")
const yargs = require("yargs")
const bunyan = require("bunyan")
const { Writable } = require("stream")
const filepath = require("path")
const tmp = require("tmp")
const argv = yargs // eslint-disable-line
.usage("Usage: $0 [options] - list all objects in the given path")
.option("host", {
@cybersiddhu
cybersiddhu / frontend-development.md
Last active November 25, 2021 18:53
Frontend development at dictyBase

Frontend development at dictyBase

React javascript framework is currently being used for all development. Below is a list of default tools, setups and configurations that are recommended for development.

React web applications

  • Create-react-app - Default tool for scaffolding a web application. The rest of the setup are mostly derived from this tool.

  • **[Linting with ESLint