Skip to content

Instantly share code, notes, and snippets.

View Hammad-hab's full-sized avatar
📖
learning

Hammad Ali Butt Hammad-hab

📖
learning
View GitHub Profile
@Hammad-hab
Hammad-hab / hn-distance.py
Last active July 14, 2024 16:30
A general and simple implementation of the Hamming Neighbourhood Distance.
def hn_distance(x1:str, x2:str, j=0):
"""
Hamming-Neighbourhood Distance
See more here https://medium.com/p/73997d14706e/
x1: The first comparision string
x2: The second comparision string
j: The ignorance threshold is the minimum difference between
values required for them to be considered as a potential
consideration. It is best to leave this alone unless you
import * as THREE from 'three'
import Img from './Comp/Images/Img2.bmp'
import Img3 from './Comp/Images/Texture.jpg'
import CedarTexture from './Comp/Images/Img3.jpg'
import Debris from './Comp/Images/Debris.jpg'
import { ShaderMaterial } from 'three'
// import Worker from "worker-loader!./Worker.js";
// import * as Physijs from 'physijs'
var Appended = false
var Incre = 1