See Block bl.ocks.org/Eleonore9/dff5c03c8f1e681328b07bd4dd71c842
Done using http://bl.ocks.org/d3noob/c2637e28b79fb3bfea13 as an example.
See Block bl.ocks.org/Eleonore9/dff5c03c8f1e681328b07bd4dd71c842
Done using http://bl.ocks.org/d3noob/c2637e28b79fb3bfea13 as an example.
https://www.wikiwand.com/en/Threat_model
I hereby claim:
To claim this, I am signing this object:
Boston Python Meetup (January 2013)
PyCon France 2013
core.matrix
datasets have 3 attributes than can be accessed by treating the dataset as a map.
Let's take this example dataset:
(def dataset-test
(clojure.core.matrix.dataset/dataset [{:a 1 :b 11}
{:a 2 :b 12}
{:a 3 :b 13}]))
remote: -----> Python app detected | |
remote: ERROR:root:code for hash md5 was not found. | |
remote: Traceback (most recent call last): | |
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module> | |
remote: globals()[__func_name] = __get_hash(__func_name) | |
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor | |
remote: raise ValueError('unsupported hash type ' + name) | |
remote: ValueError: unsupported hash type md5 | |
remote: ERROR:root:code for hash sha1 was not found. | |
remote: Traceback (most recent call last): |
-> an implementation of polymorphism in Clojure
What Clojure doc says:
A Clojure multimethod is a combination of a dispatching function, and one or more methods. When a multimethod is defined, using defmulti, a dispatching function must be supplied. This function will be applied to the arguments to the multimethod in order to produce a dispatching value.
Basic GET request in Python:
Replace username
and password
by your own credentials.
Replace url
by the url of your API of interest.
import sys
import urlparse
import requests
;; comp vs juxt | |
;; they both take in function(s) as arguments and associate then in a way | |
;; juxt (http://clojuredocs.org/clojure.core/juxt) returns a function that is a juxtaposition of other functions: | |
(map #((juxt name str/capitalize) %) [:name :location :unit]) ;;=> (["name" ":name"] ["location" ":location"] ["unit" ":unit"]) | |
;; Let's have a pick at the source code: | |
(defn juxt | |
"Takes a set of functions and returns a fn that is the juxtaposition |
###Resources for beginner-ish programmers
####Systems programming @b0rk at PyCon US 2015: Systems programming as a swiss army knife
####Distributed systems @lvh at PyCon US 2015: Distributed systems 101