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 | |
import tarfile | |
import requests | |
import io | |
class SeekableHttpStream: | |
def __init__(self, url, buf_size = 10 * 1024 * 1024): | |
self._url = url | |
self._buf_size = buf_size |
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
#!/bin/bash | |
set -xe | |
PIP="python3 -m pip" | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get -y update | |
sudo apt-get -y install --no-install-recommends \ | |
gfortran \ | |
fontconfig \ |
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
#!/bin/bash | |
# | |
#SBATCH --job-name=oggm_tests | |
#SBATCH --ntasks=1 | |
#SBATCH --cpus-per-task=4 | |
# Abort whenever a single step fails. Without this, bash will just continue on errors. | |
set -e | |
# We create a sub-directory for this job to store its runtime data at. |
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
#include <assert.h> | |
#include <stdint.h> | |
#include <smmintrin.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
#define CACHED_BUFFER_SIZE 8192 |