Skip to content

Instantly share code, notes, and snippets.

Diego Restrepo restrepo

Block or report user

Report or block restrepo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@restrepo
restrepo / InformeSostebilidad.ipynb
Last active Aug 29, 2015
InformeSostebilidad.ipynb
View InformeSostebilidad.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / Fit_Exponential.ipynb
Last active Aug 29, 2015
Logarithmic fit.ipynb
View Fit_Exponential.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View cuartiles.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / GSStoPandas.py
Created Jun 11, 2014
GoogleSpreadSheet2Pandas.py
View GSStoPandas.py
def read_google_cvs(gss_url="http://spreadsheets.google.com",\
gss_format="csv",\
gss_key="0AuLa_xuSIEvxdERYSGVQWDBTX1NCN19QMXVpb0lhWXc",\
gss_sheet=0,\
gss_query="select B,D,E,F,I where (H contains 'GFIF') order by D desc",\
gss_keep_default_na=False
):
import urllib
import pandas as pd
"""
@restrepo
restrepo / asesores
Created Jul 15, 2014
Asesores Tesis Instituto de Física
View asesores
{
"metadata": {
"name": "",
"signature": "sha256:94039565962d0f8184f6e8b9e9d2f1c0ba1e0b4c7a3e8fefc78226ac661d5f65"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@restrepo
restrepo / tablas.py
Last active Aug 29, 2015
Multiplicar
View tablas.py
#!/usr/bin/env python
import os.path
import random
import time
def multiplicar(a,b):
resultado=input('%sx%s = ' %(a,b))
if resultado==a*b:
return True
else:
print('Error! el resultado correcto es: %s' %(a*b))
@restrepo
restrepo / parallel
Created Nov 13, 2014
Paralle IPython
View parallel
{
"metadata": {
"name": "t12aparallel",
"signature": "sha256:592681c554e9742e6e0d910855060e314fd9070ccc64be9e0a6d2e7f4e314130"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View rounding.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / butler.patch
Created Mar 29, 2015
Add --yes option to butler: Assume that the answer to simple yes/no questions is 'yes'
View butler.patch
diff --git a/butler b/butler
index 08fbcf1..0f187c7 100755
--- a/butler
+++ b/butler
@@ -33,6 +33,7 @@ valid options are:
spheno , calchep , micromegas , whizard ,
madgraph , ssp
--skip-sarah : skip the SARAH run and use an existing result
+ --yes : Assume that the answer to simple yes/no questions is 'yes'
EOI
@restrepo
restrepo / t13a.ipynb
Last active Aug 29, 2015
Implementation of Casas Ibarra parametrization of arXiv:1504.07892
View t13a.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.