Skip to content

Instantly share code, notes, and snippets.

Avatar

Valerio De Carolis decabyte

View GitHub Profile
View 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
@decabyte
decabyte / nb_remove_output.py
Last active Jul 12, 2020 — forked from damianavila/remove_output.py
Remove output from Jupyter notebook from the command line
View nb_remove_output.py
#!/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
View arff_read.m
% 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.