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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#include <cstdlib> | |
#include <iostream> | |
#include <chrono> | |
#include <random> | |
#include<gsl/gsl_rng.h> | |
class Timer | |
{ | |
private: |
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
# 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 |
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
# Case 1 | |
val = function( | |
arga, | |
argb, | |
.... | |
) | |
# Case 2 |
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
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 "" |
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
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_ |
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
/* 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 */ |
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
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() |