Skip to content

Instantly share code, notes, and snippets.

View restrepo's full-sized avatar

Diego Restrepo restrepo

View GitHub Profile
@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 / movement.py
Created July 28, 2011 04:24
One dimension kinematics
#!/usr/bin/env python
'''one dimension kinematics
to be run from:
$ ipython -pylab
[1]: run movement.py
'''
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
import sys
@restrepo
restrepo / file.py
Last active September 29, 2015 00:33
class THDM:
'''
All parameters in the several basis with functions to get the missing ones
th=THDM()
self.general -> dict with general
'''
import numpy as np
def __init__(self):
#general
@restrepo
restrepo / gist:1895375
Created February 23, 2012 22:24 — forked from llimllib/gist:1120117
From arXiv:1107.5216
#!/usr/bin/env python
#From arXiv:1107.5216
from __future__ import division
from visual import *
craft = sphere(pos = vector(10e7,0,0), color = color.white, radius = 1e6)
Earth = sphere(pos = vector(0,0,0), color = color.blue, radius = 6.3e6)
trail = curve(color = craft.color)
G = 6.67e-11
/* Copyright (c) Colorado School of Mines, 2011.*/
/* All rights reserved. */
/* SUTTOZ: $Revision: 1.20 $ ; $Date: 2011/11/16 23:21:55 $ */
#include "su.h"
#include "segy.h"
#include "header.h"
/*********************** self documentation ******************************/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def test_casasibarra():
ci={'MH0':53.,'MH':125.3,'MA0':120.,'MH1':130.,'La2':0.01,'LaL':0.001,'Mtr01':91.,\
'Mtr02':92.,'Mtr03':93,'Mtrch1': 91.8,'Mtrch2': 92.8, 'Mtrch3': 93.8}
#mnu1in,Dms2,Dma2,ThetSol,ThetAtm,ThetRec=neutrino_data()
#Mnuin=np.array([mnu1in,np.sqrt(Dms2[1]+mnu1in**2),np.sqrt(Dma2[1]+mnu1in**2)])
mnu1in=1E-5
h,U,Mnuin,phases=casasibarra(ci,norotate1=True,norotate2=True,norotate3=True,bestfit=True,\
nophases=True,min_nulight=mnu1in,max_nulight=mnu1in)
@restrepo
restrepo / .gitignore
Created November 26, 2012 21:14
GitIgnore for LaTeX Project
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import sys
if __name__ == '__main__':
# create the parser
parser = argparse.ArgumentParser(
description='''Calcula el valor de la descarga académica
url='http://inspirehep.net/search?ln=en&ln=en&p=find++d+>+2015-11-07+and+primarch+hep-ph'