Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am reuben-sutton on github.
  • I am reubensutton (https://keybase.io/reubensutton) on keybase.
  • I have a public key ASC8hZrVL1rk2vXGfafaiFsRL7fxtVvmGRsCb88JgHkJdwo

To claim this, I am signing this object:

@reuben-sutton
reuben-sutton / to_string.rb
Created October 26, 2012 09:09 — forked from thehenster/to_string
to_string.rb
########
# Author: Henry Turner, Reuben Sutton
# Project: to_string
# Description: A speedy algorithm to convert a string to a string
# License: MIT
########
def to_string
# process the string
new_string = ""
this_string_converted_to_a_string = "#{self.to_s}"
@reuben-sutton
reuben-sutton / CosineSimilarity.scala
Created June 14, 2012 21:10
Cosine Similarity Scala Object
/*
* Object in scala for calculating cosine similarity
* Reuben Sutton - 2012
* More information: http://en.wikipedia.org/wiki/Cosine_similarity
*/
object CosineSimilarity {
/*
* This method takes 2 equal length arrays of integers