Skip to content

Instantly share code, notes, and snippets.

View restrepo's full-sized avatar

Diego Restrepo restrepo

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / Least Action
Created May 16, 2014 19:21
Least Action
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@restrepo
restrepo / GSStoPandas.py
Created June 11, 2014 04:20
GoogleSpreadSheet2Pandas.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 / doctoradoudea.ipynb
Last active August 31, 2015 16:38
Duración estudios de doctorado UdeA
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@restrepo
restrepo / asesores
Created July 15, 2014 17:50
Asesores Tesis Instituto de Física
{
"metadata": {
"name": "",
"signature": "sha256:94039565962d0f8184f6e8b9e9d2f1c0ba1e0b4c7a3e8fefc78226ac661d5f65"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@restrepo
restrepo / tablas.py
Last active August 29, 2015 14:07
Multiplicar
#!/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 November 13, 2014 04:31
Paralle IPython
{
"metadata": {
"name": "t12aparallel",
"signature": "sha256:592681c554e9742e6e0d910855060e314fd9070ccc64be9e0a6d2e7f4e314130"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
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 March 29, 2015 23:04
Add --yes option to butler: Assume that the answer to simple yes/no questions is 'yes'
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 August 29, 2015 14:25
Implementation of Casas Ibarra parametrization of arXiv:1504.07892
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.