This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn primes [m n] | |
(defn filter-non-primes | |
([numbers] (filter-non-primes numbers #{})) | |
([numbers current-prime-set] | |
(let | |
[next-prime (first numbers)] | |
(if (empty? numbers) | |
(filter #(> %1 m) current-prime-set) | |
(recur (doall(remove #(= (mod %1 next-prime) 0) numbers)) (conj current-prime-set next-prime)) | |
)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
AjaxHook.js - A simple utility library for intercepting Ajax calls. | |
This may be useful to inject simple interceptors to analyze pr capture Ajax traffic and may be even useful for automation tests to determine when an Ajax response returns. | |
To use : | |
1>Create a new AjaxHook object | |
var hook = new AjaxHook(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FuzzyComparator (keywords){ | |
var adaptForComparison = function(str){ | |
return str.replace(/\s+/,' ').toLowerCase(); | |
} | |
var bigramize = function(keyword){ |