Skip to content

Instantly share code, notes, and snippets.

View vinothpandian's full-sized avatar

Vinoth Pandian vinothpandian

View GitHub Profile
@vinothpandian
vinothpandian / base_config.cfg
Created January 12, 2023 17:32
Medical NER - spaCy v3.4 - Config
# This is an auto-generated partial config. To use it with 'spacy train'
# you can run spacy init fill-config to auto-fill all default settings:
# python -m spacy init fill-config ./base_config.cfg ./config.cfg
[paths]
train = null
dev = null
vectors = null
[system]
gpu_allocator = "pytorch"
@vinothpandian
vinothpandian / center_crop_pytorch.ipynb
Created January 22, 2022 16:42
center_crop_pytorch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinothpandian
vinothpandian / profiler_test.ipynb
Created November 9, 2021 08:24
profiler_test.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vinothpandian
vinothpandian / add-react-airbnb-eslint.sh
Created January 5, 2020 00:09
Add eslint airbnb guidelines to create-react-app
yarn add -D eslint-config-airbnb eslint-config-prettier prettier eslint-plugin-{jsx-a11y,prettier,react,react-hooks}
cat <<EOF >./.eslintrc
{
"env": {
"browser": true
},
"extends": [
"react-app",
@vinothpandian
vinothpandian / process_dataset.py
Created July 20, 2019 15:59
This script takes the unprocessed labeled dataset as input and returns labeled close-cropped UI element sketches
""" Automatically crop labelled UI sketch elements """
import argparse
import glob
import os
import cv2
@vinothpandian
vinothpandian / extract_sketches.py
Created July 20, 2019 15:56
Python script to discard extraneous content and extract the rectangular area containing UI element sketches from paper questionnaire scans
"""Automatically crop UI sketch scans from folder and moves them to output folder."""
# import the necessary packages
import argparse
import os
from os.path import basename, splitext
import cv2
from imutils import paths
@vinothpandian
vinothpandian / firebaseToDotENV.js
Last active July 20, 2019 15:48
Convert firebaseConfig to .env
const firebaseConfigMap = {
apiKey: "REACT_APP_APIKEY",
authDomain: "REACT_APP_AUTH_DOMAIN",
databaseURL: "REACT_APP_DATABASE_URL",
projectId: "REACT_APP_PROJECT_ID",
storageBucket: "REACT_APP_STORAGE_BUCKET",
messagingSenderId: "REACT_APP_MESSAGING_SENDER_ID",
appId: "REACT_APP_APP_ID"
};
@vinothpandian
vinothpandian / docker-compose.yml
Created June 10, 2019 21:12
Jupyter docker compose
version: "3"
services:
tf-notebook:
image: jupyter/tensorflow-notebook
volumes:
- /home/user/projects/notebooks:/home/jovyan/
ports:
- 8888:8888
container_name: tf-notebook-container
@vinothpandian
vinothpandian / .eslintrc
Last active May 25, 2019 21:48 — forked from 1natsu172/.eslintrc
My airbnb based ESLint config for "typescript-eslint" with React & prettier
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true
},
"env": {
"browser": true,
"jest/globals": true
},
@vinothpandian
vinothpandian / gist:42e2014a7d0fe9193d8249fe6cd74b47
Created April 30, 2019 09:44 — forked from rduplain/gist:2149194
PyCon 2012 Digest for WillowTree Apps

PyCon 2012 Digest

from DevOps team {rduplain,mattd,teebes}, to mobile developers at WillowTree Apps

Pronunciation