pip install mkdocs
site_name: My Docs
git config --global alias.tree 'log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"' | |
Then: | |
git tree |
# Copyright (c) Camille Moatti. | |
# Distributed under the terms of the BSD License. | |
ARG BASE_CONTAINER=jupyter/datascience-notebook | |
FROM $BASE_CONTAINER | |
USER root | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
python-pydot \ |
import numpy as np | |
#Input array | |
X=np.array([[1,0,1,0],[1,0,1,1],[0,1,0,1]]) | |
#Output | |
y=np.array([[1],[1],[0]]) | |
#Sigmoid Function | |
def sigmoid (x): |
[DEFAULT] | |
ServerAliveInterval = 45 | |
Compression = yes | |
CompressionLevel = 9 | |
ForwardX11 = yes | |
[bitbucket.org] | |
User = hg | |
[topsecret.server.com] |
npm install express-generator -g | |
express --view=pug passport-local-express | |
J’ai eu un problème d’autorisations sur /usr/local : | |
réglé grace à : sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} | |
install dependencies: |
df['CDM'] = None | |
# La fonction ci-dessous va servir à mapper les CDM | |
def f(x): | |
portfolio_code = x['account_name_2'] | |
asset_class = x['major_asset_type'] | |
if 'BT ' in x['security_name'] : return 0 # pour les billets de treso | |
if 'ECP ' in x['security_name'] : return 0 # pour les billets de treso | |
if 'CD ' in x['security_name'] : return 0 # pour les billets de treso | |
if 'ETF' in x['security_name'] : return 0 # pour les ETF |