\documentclass[varwidth]{standalone}
\usepackage{graphicx, import ,xcolor, tikz}
\begin{document}
\begin{tikzpicture}
\draw [step=0.5] (-1.4,-1.4) grid (1.4,1.4);
\end{tikzpicture}
This file contains 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
# You can install the `IRkernel` package using the following lines in an R console: | |
install.packages(c('rzmq','repr','IRkernel','IRdisplay'), | |
repos = c('http://irkernel.github.io/', | |
getOption('repos')), | |
type = 'source') | |
# Don't forget to make the kernel available to Jupyter! | |
IRkernel::installspec() # user=FALSE to install system-wide |
This file contains 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
#!/usr/bin/env python3 | |
# Julien Nonin | |
#%% | |
import numpy as np | |
from numpy import linalg as la | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Ellipse | |
def plot_confidence_ellipse(mu, cov, alph, ax, clabel=None, label_bg='white', **kwargs): |
This file contains 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
PREFIX geo: <http://www.bigdata.com/rdf/geospatial#> | |
CONSTRUCT { | |
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <urn:resource>. | |
} WHERE { | |
<http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". | |
?res <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://www.datatourisme.gouv.fr/ontology/core#PointOfInterest>. | |
?res <https://www.datatourisme.gouv.fr/ontology/core#isLocatedAt> ?5f2bf19f87ae4. | |
?5f2bf19f87ae4 <http://schema.org/geo> ?poi. | |
{ | |
SERVICE geo:search { |
Find packages already installed / to install:
apt list --installed | grep texlive
apt-cache search texlive
Packages:
sudo apt-get install texlive
sudo apt-get install texlive-science texlive-plain-generic texlive-pictures texlive-latex-extra texlive-lang-european texlive-lang-french texlive-fonts-extra texlive-extra-utils
- create an empty env
conda create -n new_env
- activate it
conda activate new_env
- add conda-forge as the first channel
conda config --env --add channels conda-forge
- ensure that conda-forge is used if the package is available
conda config --env --set channel_priority strict
- install packages
conda install pandas scikit-learn matplotlib
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dFirstPage=294 -dLastPage=523 -sOutputFile=output.pdf input.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=combined.pdf part1.pdf part2.pdf part3.pdf
Just "print" your pdf in pdf format!
This file contains 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
# >>> custom prompt PS1 >>> | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM=auto | |
TRIANGLE_SYM=$'\ue0b0' | |
function prompt_func() { | |
# IMPORTANT: Non-printable sequences should be enclosed in \[ and \] | |
if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then # inside a git repo | |
gitsubdir=$(basename $(git rev-parse --show-toplevel))/$(git rev-parse --show-prefix) |
This file contains 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
[ | |
{ | |
"key": "ctrl+alt+[Period]", | |
"command": "breadcrumbs.focus", | |
"when": "breadcrumbsPossible" | |
}, | |
{ | |
"key": "ctrl+[Period]", | |
"command": "-breadcrumbs.focus", | |
"when": "breadcrumbsPossible" |