Skip to content

Instantly share code, notes, and snippets.

View choutianxius's full-sized avatar
🎯
Overengineering

Tianxiu (Tyson) Zhou choutianxius

🎯
Overengineering
View GitHub Profile
@slowkow
slowkow / needleman-wunsch.py
Last active January 30, 2025 04:23
A simple version of the Needleman-Wunsch algorithm in Python.
#!/usr/bin/env python
"""
The Needleman-Wunsch Algorithm
==============================
This is a dynamic programming algorithm for finding the optimal alignment of
two strings.
Example
-------
@jimrok
jimrok / TestMQTT.java
Last active February 2, 2025 23:23
A simple java code for SSL/TLS connection from Paho java client to mosquitto MQTT broker
package test_mqtt;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileReader;
import java.security.KeyPair;
import java.security.KeyStore;
import java.security.Security;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;