Skip to content

Instantly share code, notes, and snippets.

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

A Gist as a to do list

  • 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

@Eleonore9
Eleonore9 / rbow_parens.el
Last active August 29, 2015 14:15
My colour settings for rainbow blocks (extract from my .emacs)
(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"))))
@Eleonore9
Eleonore9 / list_geo_libraries.md
Last active April 1, 2016 17:29
Geospatial libraries for Python
@Eleonore9
Eleonore9 / resources-tech-talks.md
Last active October 28, 2015 17:53
Resources for beginner-ish programmers
@Eleonore9
Eleonore9 / compvsjuxt.clj
Created November 5, 2015 16:19
Clojure thoughts and tips
;; 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
@Eleonore9
Eleonore9 / api-get-request.md
Last active January 26, 2016 13:08
Example of GET request in Python

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
@Eleonore9
Eleonore9 / multimethods.md
Last active January 29, 2016 10:52
Clojure thoughts and tips

Multimethods

-> 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.

@Eleonore9
Eleonore9 / cedar-14-error.log
Created April 3, 2016 22:16
[heroku] Error when upgrading prod app form cedar to cedar-14 (no error on the staging app)
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):
@Eleonore9
Eleonore9 / datasets-in-clojure.md
Created May 23, 2016 13:22
core.matrix clojure datasets

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}]))