Skip to content

Instantly share code, notes, and snippets.

@abuonomo
abuonomo / vision_infographic.html
Last active January 30, 2026 17:57
Paper Data Linking Vision Infographic
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Paper-Data Linking: Vision</title>
<style>
* {
margin: 0;
padding: 0;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@abuonomo
abuonomo / reflect_submodule.md
Created November 27, 2019 20:33
Organize submodule on local machine to reflect organization on github

Adding a submodule in organized fashion

Motivation

Some find it easier to organize local code, when the structure of code directories matches the structure in a github group. For example, if you belong to a github group called Vogons and you have a repo called Jeltz, the structure in your github will likely look like Vogons/Jeltz. To reflect, one creates a directory on their local machine at something like ~/code/Vogons/Jeltz.

Suppose one has another repo in the Vogons group called Kwaltz, and one wants to make Kwaltz a submodule of Jeltz. To reflect this organiziation of code on github locally, one wants Kwaltz repo to reside at ~/code/Vogons/Jeltz/Kwaltz with a symlink at ~/code/Vogons/Kwaltz.

How to

Fist, assume one already has Jeltz and Kwaltz at their respective local directories, ~/code/Vogons/Jeltz and ~/code/Vogons/Jeltz/Kwaltz.

@abuonomo
abuonomo / venv_to_jupyter_kernel
Last active November 25, 2019 17:05
Small utility for adding current venv as a jupyter kernel
# Installation
# ============
# copy this file to /usr/local/bin and make it executable with
# `chmod +x /usr/local/bin/venv_to_jupyter_kernel`.
# Example Usage
# =============
# With your venv activated, run `venv_to_jupyter_kernel my_awesome_env`.
#!/bin/bash
@abuonomo
abuonomo / venv_to_jupyter_kernel
Created November 25, 2019 16:58
Small utility for adding current venv as a jupyter kernel
#!/bin/bash
export ENV_NAME=$1
echo "Install ipykernel"
pip install ipykernel
echo "Installing current venv as jupyter kernel named ${ENV_NAME}."
python -m ipykernel install --user --name ${ENV_NAME} --display-name "${ENV_NAME}"
echo "================="
echo "Installed current venv as jupyter kernel named \"${ENV_NAME}\"."
echo "Remove with \"jupyter kernelspec uninstall ${ENV_NAME}\""
echo "See all jupyter kernels with \"jupyter kernelspec list\""
import spacy
nlp = spacy.load('en')
text = 'I am testing out gist to see how it would look on my website.'
doc = nlp(text)
for wd in doc:
print('{} | {}'.format(wd.lemma_, wd.pos_))