Skip to content

Instantly share code, notes, and snippets.

@jalakoo
jalakoo / stop_words.txt
Created January 19, 2022 16:55
General English Stop Words
0o
0s
3a
3b
3d
6b
6o
a
a1
a2
@jalakoo
jalakoo / keywords.csv
Last active January 20, 2022 20:37
PL9Hl4pk2FsvVZaoIpfsfpdzEXxyUJlAYw_keywords
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"word"
"ability"
"absolute"
"absolutely"
"abundantly"
"academy"
"accelerate"
"accept"
"accepted"
"access"
@jalakoo
jalakoo / neo4j_example.py
Last active June 7, 2022 16:03
Neo4j Simple Example
from neo4j import GraphDatabase, unit_of_work
uri = ""
username = ""
password = ""
driver = GraphDatabase.driver(uri, auth=(username, password))
@unit_of_work(timeout=30)
def generic_function(tx, **kwargs):
result = tx.run("MATCH (n) RETURN n", **kwargs)
@jalakoo
jalakoo / neo4j_conn.py
Created June 4, 2022 16:35
neo4j python utility class
from neo4j import GraphDatabase, unit_of_work, Transaction
class Neo4jConnection:
def __init__(self, uri, user, pwd):
"""
Initialize a driver and test for connectivity.
Args:
uri (str): URI for the Neo4j instance to access
@jalakoo
jalakoo / neo4j-5-install.md
Last active September 2, 2023 07:20
neo4j-5-install.md

Neo4j + Raspberry Pi Install Instructions

These steps tested using Raspberry Pi Imager 1.7.4 loading Debian Bullseye with Raspberry Pi Desktop (2023-02-21) onto a 2019 Rasbperry Pi 4 model B. All command examples are for running from a CLI/terminal.

Java

Java is required to run a Neo4j instance on a pi. JDK version 17+ is recommended when using Neo4j v5.5.0+

To check your current version (if any):

java -version
@jalakoo
jalakoo / programming_languages.csv
Last active April 12, 2023 17:29
Programming Languages
language url
@Formula https://en.wikipedia.org/wiki/Formula_language
A-0 System https://en.wikipedia.org/wiki/A-0_System
A# .NET https://en.wikipedia.org/wiki/A_Sharp_(.NET)
A# (Axiom) https://en.wikipedia.org/wiki/A_Sharp_(Axiom)
A+ https://en.wikipedia.org/wiki/A%2B_(programming_language)
A++ https://en.wikipedia.org/wiki/A%2B%2B
ABAP https://en.wikipedia.org/wiki/ABAP
ABC https://en.wikipedia.org/wiki/ABC_(programming_language)
ABC ALGOL https://en.wikipedia.org/wiki/ABC_ALGOL
@jalakoo
jalakoo / star_wars_characters_filtered.csv
Created April 6, 2023 22:49
Star Wars Characters + homeworlds + species
We can't make this file beautiful and searchable because it's too large.
ID,name,description,home_world,species
1,1151,1151 was a clone cadet who was a part of the Clone Youth Brigade during the Clone Wars.,Kamino,Human
2,1174,"1174, nicknamed ""Whiplash,"" was a clone trooper cadet who served in the Clone Youth Brigade during the Clone Wars.",Kamino,Human
9,99,"99 was a human male clone of Jango Fett bred to be a clone trooper for the Grand Army of the Republic. He was malformed in the cloning process, however, and suffered numerous genetic and physical defects. As a result, he was deemed unfit for service in the army and assigned to be a maintenance duty clone, providing janitorial and maintenance work on his home planet of Kamino. During his time on Kamino, he grew attached to clone cadets as they trained to become troopers, viewing them all as brothers and individuals, rather than clone numbers. He befriended Domino Squad during their time training, and stopped Hevy, a member of Domino Squad, from abandoning them. He inspired Hevy and urged him to see himself as a team with hi
@jalakoo
jalakoo / star_wars_systems.csv
Last active April 17, 2023 03:40
Star Wars Planet/System Names
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
name
A-Foroon
Aaeton
Aargau
Aargonar
Abafar
Abbaji
Abhean
Abo Dreth
Abraxas
@jalakoo
jalakoo / famous_star_wars_systems.csv
Created April 12, 2023 17:11
Famous Star Wars Systems
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
name
Alderaan
Bespin
Corellia
Coruscant
Dagobah
Endor
Geonosis
Hoth
Jakku
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 1 column, instead of 2 in line 6.
region
All Story Regions
AZ-Phoenix
CA-San Diego
CA-Los Angeles
CA-San Francisco
DC-Washington, D.C.
HI-Hawaii (All Islands)
IL-Chicago
LA-New Orleans