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
import datetime | |
import boto.mturk.connection | |
import boto.mturk.question as mtq | |
import boto.mturk.qualification as mtqu | |
mt = boto.mturk.connection.MTurkConnection(aws_access_key_id='xxx', aws_secret_access_key='yyy') | |
text_en = '''Hello! | |
I am test text message to be translated from English to Russian. | |
If you ask me, I was born in a mind of a crazy web developer, | |
who tests the MTurk API to start a very promising service later. |
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
;; ## Example of timeseries aggregation in cascalog. | |
;; | |
;; (copy paste all of this in at the REPL!) | |
(use 'cascalog.api) | |
(def tseries [["ndvi" 1 0 [1 2 3 4]] | |
["ndvi" 1 2 [2 3 4 5]] | |
["ndvi" 1 1 [4 3 2 1]] | |
["ndvi" 1 4 [1 2 3 4]] |
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 com.snowtide.clojure.memoize) | |
(defn- mutable-memoize | |
[f #^java.util.Map map] | |
(fn [& args] | |
(if-let [e (find map args)] | |
(val e) | |
(let [ret (apply f args)] | |
(.put map args ret) | |
ret)))) |
NewerOlder