Coder Social home page Coder Social logo

xor-distance's Introduction

xor-distance

Calculate the xor distance between two buffers as a new buffer and compare computed distances with eachother

npm install xor-distance

build status

Usage

var distance = require('./')

var dist1 = distance(new Buffer('foo'), new Buffer('bar'))
var dist2 = distance(new Buffer('foo'), new Buffer('baz'))

// the following returns true since the distance between foo and bar
// is greater than the distance between foo and baz
console.log(distance.gt(dist1, dist2))

License

MIT

xor-distance's People

Contributors

mafintosh avatar

Stargazers

Ralph Schuler avatar @RandyMcMillan avatar  avatar Joseph Werle avatar Andrew Chou avatar Seth Vincent avatar Julian Gruber avatar Andrew Grathwohl avatar Per Guth avatar tg-z avatar Reed HHW avatar Martín Acosta avatar Mauve Signweaver avatar Cat  avatar kumavis avatar Kevin.Y avatar Shinichi Kogai avatar  avatar João Antunes avatar luandro avatar Josh Gwosdz avatar Jake Burden avatar Josh Miller avatar Yosh avatar Chas Warner avatar Borin Ouch avatar Patrick Hart avatar Md Hashibul Amin avatar Hynek Petrak avatar samy kamkar avatar Jannis R avatar Angus H. avatar Mr.Q avatar Denis Denisov avatar Jonas Hermsmeier avatar  avatar Philipp Burckhardt avatar Athan avatar

Watchers

 avatar James Cloos avatar Mauve Signweaver avatar  avatar

xor-distance's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.