Skip to content

Instantly share code, notes, and snippets.

📓
Preparing E-Health/drishti for SEH @ ICSE-2019

Bell Eapen dermatologist

View GitHub Profile
@dermatologist
dermatologist / NLP_Demo.py
Created Feb 11, 2019 — forked from narulkargunjan/NLP_Demo.py
Topic Modeling (LDA/Word2Vec) with Spacy
View NLP_Demo.py
import os
import codecs
data_directory = os.path.join('..', 'data',
'yelp_dataset_challenge_academic_dataset')
businesses_filepath = os.path.join(data_directory,
'yelp_academic_dataset_business.json')
with codecs.open(businesses_filepath, encoding='utf_8') as f:
@dermatologist
dermatologist / install.sh
Created Feb 10, 2019 — forked from cwant/install.sh
This is a script that takes a fresh Compute Canada Ubuntu 16.04 cloud instance, installs docker, docker-compose, ruby, grabs avalon source, and starts services
View install.sh
#!/bin/bash
BIND_NETWORK='192.168'
RUBY_VERSION='2.4'
BUNDLER_VERSION='1.14'
AVALON_REPO='https://github.com/cwant/avalon'
AVALON_BRANCH='cwant/docker-refactor'
SRC_DIR=$HOME/gitwork
AVALON_DIR=$SRC_DIR/avalon
View citing-github-repo.bib
@misc{Eapen2016,
author = {Eapen, BR.},
title = {Behavioural Research support tools in Python including Grounded Theory Dictionary Generator.},
year = {2016},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/dermatologist/nlp-qrmine}},
commit = {4f57d6a0e4c030202a07a60bc1bb1ed1544bf679}
}
@dermatologist
dermatologist / camel-raw-oauth.java
Created Nov 5, 2018 — forked from rafaeltuelho/camel-raw-oauth.java
camel snippet using oauth to get an auth token and use it to request a secured rest service
View camel-raw-oauth.java
from("timer://scheduler?period=30s")
.log("get access token")
.to("direct:authService");
from("direct:authService").tracing()
.setHeader(Exchange.HTTP_PATH)
.simple("<auth service context>/oauth2/token")
.setHeader("CamelHttpMethod")
.simple("POST")
.setHeader("Content-Type")
@dermatologist
dermatologist / sem-latex.R
Created Oct 17, 2018
Structural Equation Modeling in R with output as LaTeX tables.
View sem-latex.R
library("lavaan")
library(xtable)
options(xtable.floating = FALSE)
options(xtable.timestamp = "")
DM.data = read.csv("C:\\data.csv", header = TRUE)
DM.model <- '
# Measurement model Ref: http://lavaan.ugent.be/
# Model: http://lavaan.ugent.be/tutorial/figure/sem.png
@dermatologist
dermatologist / gist:6a110d32b2b21eb94d819a598000566f
Created Oct 17, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:6a110d32b2b21eb94d819a598000566f

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dermatologist
dermatologist / oscar.js
Last active Oct 4, 2018
Add name next to all input and select fields
View oscar.js
var $input_fields = $("input, select");
$.each($input_fields, function() {
$(this).after('<span style="color:red;">' + $(this).prop("name") + '</span>');
$(this).show();
});
@dermatologist
dermatologist / csvtomap.go
Created Sep 29, 2018 — forked from drernie/csvtomap.go
Golang Convert CSV Records to Dictionaries using Header Row as Keys
View csvtomap.go
// CSVToMap takes a reader and returns an array of dictionaries, using the header row as the keys
func CSVToMap(reader io.Reader) []map[string]string {
r := csv.NewReader(reader)
rows := []map[string]string{}
var header []string
for {
record, err := r.Read()
if err == io.EOF {
break
}
View metabas_embed.java
package com.example.controllers.dashboard;
import org.springframework.security.jwt.Jwt;
import org.springframework.security.jwt.JwtHelper;
import org.springframework.security.jwt.crypto.sign.MacSigner;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@dermatologist
dermatologist / Apache Tomcat 8 Start stop script init.d script
Created May 5, 2018 — forked from miglen/Apache Tomcat 8 Start stop script init.d script
Apache Tomcat init script (or startup/controll script). Works fine for version 7/8. Read the comments for release history. Feel free to modify, copy and give suggestions. (c) GNU General Public License
View Apache Tomcat 8 Start stop script init.d script
#!/bin/bash
#
# description: Apache Tomcat init script
# processname: tomcat
# chkconfig: 234 20 80
#
#
# Copyright (C) 2014 Miglen Evlogiev
#
# This program is free software: you can redistribute it and/or modify it under
You can’t perform that action at this time.