Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Simple script illustrating how to perform embarrassingly parallel computations | |
in Python using MPI/mpi4py. I like this approach a lot as its very easy to get | |
right without having to deal with the complications arising from forked | |
processes which the multiprocessing module uses. | |
This script can be executed with or without `mpirun`; it will just run on one | |
core if not executed with it. With some more logic its also possible to make |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
cdef extern from "i386/types.h" nogil: | |
ctypedef signed char int8_t | |
ctypedef short int16_t | |
ctypedef int int32_t | |
ctypedef long long int64_t | |
cdef extern from "iconv.h" nogil: | |
ctypedef void *iconv_t | |
cdef extern from "stdlib.h" nogil: |
This file contains 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<body> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/topojson.v1.min.js"></script> | |
<script> | |
// The size of the map. | |
var width = 960; | |
var height = 500; |
This file contains 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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Requires Python >= 3.5, aiohttp, and pandas. | |
$ pip install aiohttp pandas | |
Upon running it will create a file 'networks_stations.json' which contains all | |
stations it could find across FDSN web service capable data centers. For each | |
station it contains the epochs and coordinates. |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Custom collector for | |
Requires PySensors. | |
:copyright: | |
Lion Krischer, 2017 | |
:license: |
NewerOlder