This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class a(object): | |
| def __init__(self): | |
| self.my_variable = None | |
| class b(a): | |
| def __init__(self): | |
| super(b, self).__init__() | |
| def lala(self, number): | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #PARA LA FECHA | |
| def mkdate(datestr): | |
| return datetime.strptime(datestr, '%Y%m%d-%H') | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('start_date',type=mkdate) | |
| #################################################33 | |
| # si llamas asi a tu main | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import glob | |
| files_s = glob.glob('s_*') | |
| for file_s in files_s: | |
| id_ = file_s[16:-4] | |
| print ("sox -M p_GaV(x2)CV--%s.wav s_GaV(x2)CV--%s.wav GaV(x2)CV--%s.wav")%(id_,id_,id_) | |
| #os.system ( ("sox -M p_GaV(x2)CV--%s.wav s_GaV(x2)CV--%s.wav GaV(x2)CV--%s.wav")%(id_,id_,id_) ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| from datetime import datetime, timedelta | |
| initial_date=datetime(1981,1,1) | |
| end_date=datetime(2010,1,1) | |
| actual_date=initial_date | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python | |
| #import numpy as np | |
| #import pyart | |
| #import matplotlib.pyplot as plt | |
| #import netCDF4 | |
| #import copy | |
| #import scipy.ndimage as nd | |
| #import numpy.ma as ma | |
| #import sys | |
| #import math | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import string | |
| import os | |
| leters=string.ascii_uppercase | |
| listCodes=zip(leters[0:17],range(0,18*3,3)) | |
| print listCodes | |
| for item in listCodes: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #1-instalar alguna herramienta para hacer merge feliz, a mi me gusta meld | |
| sudo apt-get install meld | |
| #2- le dicen a git que van a usarla: | |
| git config --global diff.tool meld | |
| #3- llama a git para arreglar los lios | |
| git mergetool | |
| #les va a mostrar las versiones: local, final, remota | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | program hello | |
| print *, "Hello World!" | |
| end program hello | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | http://goo.gl/fvqJNH | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def plotear(dates, series, ax): | |
| elements=dates.shape[-1] | |
| recordNumbers=range(1,elements+1) | |
| for serie in series: | |
| mask=np.isfinite(serie.astype(np.double)) | 
NewerOlder