-
Finish my current coding projects
-
Improve my website
-
More projects to use Python (and R) for data analysis
-
More projects to use Processing (and D3js) for data visualisation
Member State | State aid measure | EUR_billion | As a percentage of 2011 GDP | Year | |
---|---|---|---|---|---|
Belgium | Recapitalisation measures | 20.4 | 5.5 | 12/31/11 | |
Bulgaria | Recapitalisation measures | 0 | 0.0 | 12/31/11 | |
Czech Republic | Recapitalisation measures | 0 | 0.0 | 12/31/11 | |
Denmark | Recapitalisation measures | 10.77 | 4.5 | 12/31/11 | |
Germany | Recapitalisation measures | 63.24 | 2.5 | 12/31/11 | |
Estonia | Recapitalisation measures | 0 | 0.0 | 12/31/11 | |
Ireland | Recapitalisation measures | 62.78 | 40.1 | 12/31/11 | |
Greece | Recapitalisation measures | 6.3 | 2.9 | 12/31/11 | |
Spain | Recapitalisation measures | 19.31 | 1.8 | 12/31/11 |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(rainbow-blocks-depth-1-face ((t (:foreground "SpringGreen4")))) | |
'(rainbow-blocks-depth-2-face ((t (:foreground "dark cyan")))) | |
'(rainbow-blocks-depth-3-face ((t (:foreground "deep sky blue")))) | |
'(rainbow-blocks-depth-4-face ((t (:foreground "slate blue")))) | |
'(rainbow-blocks-depth-5-face ((t (:foreground "medium orchid")))) |
###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
;; 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 |
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
-> 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.
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): |
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}]))