Skip to content

Instantly share code, notes, and snippets.

@nealxyc
nealxyc / a-trie-implementation-in-python.py
Last active August 29, 2015 14:04
A Trie Implementation in Python
class Trie:
def __init__(self):
self.rootNode = TrieNode("")
self.size = 0
#self.
def insert(self, word):
node = self.rootNode
key = ""
for letter in word:
@nealxyc
nealxyc / how-to-use-a-github-reposiroty-as-maven-repository.md
Last active January 14, 2024 20:20
How to use a Github repository as a Maven repository

1. Create a dedicated project to host your Maven repository on Github

For example, you can have a mvn-repo project created.

2. Clone the remote mvn-repo into your local folder

For example, into ~/workspace/mvn-repo folder

3. Build your project and deploy it into your local folder.

In order to do this, you will need to have the following snippet in your pom.xml file

Interceptor.js

Interceptor.js is a small yet powerful JavaScript tool library that provides the ability to intercept a JavaScript function call.