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
(ns markov-text.core | |
(:require [clojure.string :as str])) | |
(defn spliter [str] | |
(mapv str/lower-case (str/split str #"\s"))) | |
(defn markov-chain [n-gram-size words] | |
(loop [m-chain {} | |
words words] |
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
(ns logical-db.core | |
(:require [clojure.core.logic :as l] | |
[clojure.core.logic.protocols :refer [walk]] | |
[clojure.core.logic.pldb :as db])) | |
; [org.clojure/clojure "1.8.0"] | |
; [org.clojure/core.logic "0.8.10"] | |
(def db { :city->zip {"City1" [1 2 3 4] "City2" [5 6]} |
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
Show hidden characters
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr" : 50, // {int} Maximum error before stopping | |
// Enforcing | |
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase" : false, // true: Identifiers must be in camelCase | |
"curly" : true, // true: Require {} for every new block or scope |
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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
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
var finalCountDown = (function(){ | |
var end = new Date('01/01/2014 00:00:00'), | |
timer, | |
second = 1000, | |
minute = second * 60, | |
hour = minute * 60, | |
day = hour * 24; | |
return function(textSetter){ | |
timer = setInterval(function() { |
NewerOlder