Skip to content

Instantly share code, notes, and snippets.

View gabraganca's full-sized avatar
🚀
going above and beyond

Gustavo Bragança gabraganca

🚀
going above and beyond
View GitHub Profile
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@gabraganca
gabraganca / output_toggle_html.tpl
Last active February 15, 2017 17:37
Template to use with `ipython nbconvert` when generating HTML. With this, all input cell are hidden. Thanks @damianavila for the initial setup (http://www.damian.oquanta.info/posts/hide-the-input-cells-from-your-ipython-slides.html). I have also take some code from the `custom.css` of @olgablot published in http://nbviewer.ipython.org/5357268.
{%- extends 'full.tpl' -%}
{% block input_group -%}
<div class="input_hidden">
{{ super() }}
</div>
{% endblock input_group %}
{%- block header -%}
{{ super() }}
/**write your css in here**/
/* like */
<style>
.CodeMirror{
font-family: "Consolas", sans-serif;
}
pre, code, kbd, samp {
font-family: Consolas, monospace;
@gabraganca
gabraganca / synfit_sketch.py
Created March 27, 2014 12:53
Sketch of a `Synfit.py`
import os
import numpy as np
import matplotlib.pyplot as plt
import s4
#Synplot path
SPATH = os.getenv('HOME') + '/synplot/synplot/'
"""
Usage: python remove_output.py notebook.ipynb [ > without_output.ipynb ]
Modified from remove_output by Minrk
"""
import sys
import io
import os
import argparse
from IPython.nbformat.current import read, write
@gabraganca
gabraganca / clustering_exercicio.ipynb
Created May 30, 2016 20:21
Exercvício de Clustering para TDA
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabraganca
gabraganca / statsmodels.ipynb
Created June 20, 2016 19:36
Regressão linear com o pacote Statsmodels.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabraganca
gabraganca / serie_temporal.ex.ipynb
Created July 12, 2016 18:54
Exercício sobre série temporal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabraganca
gabraganca / make_plot.py
Created August 23, 2017 15:34
Script to make a scatter plot of two variables and color code the dots according to a thrid variable.
#!/usr/bin/env python
"""
Script to make a scatter plot of two variables and color code the dots
according to a thrid variable
author: Gustavo Bragança
e-mail: ga.braganca at gmail dot com
"""
# import needed libraries
@gabraganca
gabraganca / data.csv
Created August 30, 2017 14:16
Recipe for fitting gaussians on `vsini` data for differente clusters.
vsini cluster
57.9878 Trumpler 14
65.384 Trumpler 14
171.073 Trumpler 14
38.8181 Trumpler 14
35.236 Trumpler 14
43.879 Trumpler 14
382.417 Trumpler 14
139.456 Trumpler 14
35.8049 Trumpler 14