Skip to content

Instantly share code, notes, and snippets.

View jorgeluisrmx's full-sized avatar
💭
Restructuring github profile

Jorge Luis Rodriguez Mendoza jorgeluisrmx

💭
Restructuring github profile
View GitHub Profile
\usepackage{graphicx}
\usepackage{caption}
\captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period}
\begin{figure}[h!]
\centering
\includegraphics[width=12.5cm]{figs/fig77.png}
\caption{asd}
\label{fig:7.7}
import matplotlib.pyplot as plt
import seaborn as sns
%pylab inline
pylab.rcParams['figure.figsize'] = (10.0, 10.0)
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
fig, ax = plt.subplots()
npm init # questionnaire to create package.json
npm init --yes # creates a default package.json
npm install <package-name> # install local package
npm install package@1.1.5 #install specific version of a package
npm run <script> # run 'scripts' of package.sjon
npm list # list installed packages
npm outdated # list outaded packages
npm update <package-name> # update package
pipenv install jupyter # install jupyter notebook
(venv)$ jupyter notebook # run jupyter notebook server
# EXTENSIONS
# Reveal.js - Jupyter/IPython Slideshow Extension (https://rise.readthedocs.io/en/maint-5.5/)
pipenv install RISE
# Hide code
pipenv install hide_code
# Contents
# Favicon in BootstrapStudio
<link rel="icon" type="image/png" href="assets/img/favicon.png">
@jorgeluisrmx
jorgeluisrmx / Contets.md
Last active September 22, 2022 18:36
A set of snippets to manage SQLite databases using the singleton pattern

Contents

  • database.py - Singleton class for Sqlite DB management
  • query2dict.py - Method to return a query as a dictionary