Skip to content

Instantly share code, notes, and snippets.

View decabyte's full-sized avatar

Valerio De Carolis decabyte

View GitHub Profile
@decabyte
decabyte / nb_remove_output.py
Last active December 21, 2023 02:32 — forked from damianavila/remove_output.py
Remove output from Jupyter notebook from the command line
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Remove output from existing Jupyter Notebooks.
Modified from remove_output by Minrk, damianavila, gabraganca.
References:
[0]: https://github.com/jupyter/nbformat
[1]: http://nbformat.readthedocs.org/en/latest/index.html
% ARFF_READ - Read content of an ARFF file to a MATLAB's struct array.
%
% [DATA, relname, nomspec] = ARFF_READ(arff_file)
% arff_file => input file (.arff / .arff.gz extension)
% relname => relation name (string)
% DATA => struct array representing data and attributes (n x attrs)
% nomspec => struct array defining nominal-specification attributes
%
% NOTES:
% See ARFF_WRITE to read notes about relname and nomspec.
@decabyte
decabyte / bashrc.bash
Created September 3, 2019 23:23
Bashrc.bash
### CUSTOM ###
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
# display environment
export DISPLAY=:0
export TERM=xterm-256color
# alacritty
source $HOME/extra/alacritty/extra/completions/alacritty.bash