Skip to content

Instantly share code, notes, and snippets.

View odarbelaeze's full-sized avatar
:shipit:
Studying

Oscar Arbeláez-Echeverri odarbelaeze

:shipit:
Studying
  • NextRoll
  • Dublin, Ireland
View GitHub Profile
@odarbelaeze
odarbelaeze / Intro TGA.ipynb
Created March 28, 2017 14:45
Intro to TGA for info 3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@odarbelaeze
odarbelaeze / Resumen.ipynb
Created March 13, 2017 22:05
Resumen Info III 2017.1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@odarbelaeze
odarbelaeze / rand.cc
Last active March 25, 2021 11:15
Random number generator benchmarks
#include <cstdlib>
#include <iostream>
#include <chrono>
#include <random>
#include<gsl/gsl_rng.h>
class Timer
{
private:
@odarbelaeze
odarbelaeze / test.py
Last active August 29, 2015 14:04
Test of binary IO using netCDF in python against text IO.
# coding=utf-8
"""
Little example using netfdf-python to store Monte Carlo time-series data.
"""
from netCDF4 import Dataset
from numpy.random import uniform
from numpy.lib.npyio import savetxt
# Case 1
val = function(
arga,
argb,
....
)
# Case 2
@odarbelaeze
odarbelaeze / ranges.py
Created May 19, 2014 23:03
side x side boards of zeros with python
side = 5
for i in range(side):
for j in range(side):
print 0, " ", # La última coma es para evitar el salto de linea
print ""
@odarbelaeze
odarbelaeze / sample.f90
Created January 31, 2014 18:28
Update neighborhood subroutine in fortran
subroutine sample_updatenbh(innb_, inbh_, ennb_, enbh_, &
r_, species_, st_, it_, stat_)
integer, allocatable, dimension(:), intent(inout) :: innb_
integer, allocatable, dimension(:,:), intent(inout) :: inbh_
integer, allocatable, dimension(:), intent(inout) :: ennb_
integer, allocatable, dimension(:,:), intent(inout) :: enbh_
double precision, allocatable, dimension(:,:), intent(in) :: r_
integer, allocatable, dimension(:), intent(in) :: species_
type(sampleTraits), intent(in) :: st_
@odarbelaeze
odarbelaeze / main.css
Created September 13, 2013 21:42
main.css compiled from sass-boostrap included in the yeoman webapp-generator.
/* line 141, ../../app/bower_components/sass-bootstrap/lib/_forms.scss */
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
cursor: not-allowed;
background-color: #eeeeee;
}
/* line 148, ../../app/bower_components/sass-bootstrap/lib/_forms.scss */
@odarbelaeze
odarbelaeze / gist:5882731
Created June 28, 2013 05:54
Interactive Django shell, showing how a bad unicode data error can be inserted.
In [1]: from ublog.models import Entry
In [2]: a = Entry.objects.get()
In [3]: a
Out[3]: <Entry: El título pero mas fuerte>
In [4]: a.title = "The title with more ñame"
In [5]: a.save()