Skip to content

Instantly share code, notes, and snippets.

View romanegloo's full-sized avatar
😀
clean-up

Jiho Noh romanegloo

😀
clean-up
  • University of Kentucky
  • Lexington, KY
View GitHub Profile
@romanegloo
romanegloo / uts_api_client.py
Created September 13, 2019 14:46
UMLS API client
""" UTS (UMLS Terminology Services) API client """
import json
from pathlib import Path
import requests
from lxml.html import fromstring
class UtsClient:
"""All the UTS REST API requests are handled through this client"""
def __init__(self, apikey=None):
@romanegloo
romanegloo / fib.md
Last active October 24, 2019 00:36

(Note. If you missed the "Python Primer" lab and you have no Python experience, please come to Jiho's office hours. We can do this together.)

Fibonacci numbers are defined recursively as below:

f(0) = 0, f(1) = 1
f(n) = f(n-1) + f(n-2)

Implement a fibonacci function fib(n), and use it to print out the Fibonacci numbers where n ranges from 0 to 9 such as:

@romanegloo
romanegloo / README.md
Last active April 20, 2021 02:35
GitHub README template

[title]

project description

Requirements

list of required packages or softwares, versions of systems

Data

@romanegloo
romanegloo / lucene_indexing.py
Created February 2, 2019 17:42
Indexing using PyLucene, example code
'''
Indexing using PyLucene, example code
'''
import os
from pathlib import Path
import lucene
from java.nio.file import Paths
from org.apache.lucene.analysis.standard import StandardAnalyzer
@romanegloo
romanegloo / installation.md
Created February 2, 2019 03:41
PyLucene Installation

On Mac OS

Java

Both of Oracle Java 1.8 and Apple's Java 1.6 are required. You can download Oracle Java 1.8 from here.

For Apple's Java 1.6, download the package from here and install it.