Skip to content

Instantly share code, notes, and snippets.

Siddhartha Basu cybersiddhu

Block or report user

Report or block cybersiddhu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cybersiddhu
cybersiddhu / pheno.go
Created Jun 28, 2019
phenotype resolver
View pheno.go
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) {
View .eslintrc
{
"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 }]
View package.json
{
"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": {
View listobj.js
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 Aug 22, 2018
Frontend development at dictyBase
View frontend-development.md

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

View shekol.go
package main
import (
"net/http"
)
type MiddlewareFn func(http.HandlerFunc) http.HandlerFunc
type Chain struct {
middlewares []MiddlewareFn
View router.go
package main
import (
"context"
"net/http"
"github.com/julienschmidt/httprouter"
)
const params = "params"
@cybersiddhu
cybersiddhu / main.go
Created Apr 24, 2017
golang webapp example
View main.go
package main
import (
"context"
"fmt"
"log"
"math/rand"
"net/http"
"os"
"time"
View NOTES.md

Aim

The idea was to have a intermine prototype for dictybase, dictymine running with a basic Genes -> GO -> GO annotation with all the basic features up and running. And then try out a deploy to google cloud using my stack of docker and kuberntes

Progress

  • On the first day saw the new intermine UI redgenes which i set it up with a simple
View order.js
/*
* Return a promise object
* On success, it passes (response, true/false) to the resolve
* passes true if the user exists
* false if the user does not exist
* On error passes the error object, the structure should
* be similar as defined in the JSON AP specification
*
*/
const userExists = (email) => {
You can’t perform that action at this time.