Skip to content

Instantly share code, notes, and snippets.

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
* If you do not have access to either file, you may request a copy from *
Domino Python 3.6 image
+-------------------------+----------+-------------------------------+--------------------------------+
| Benchmark | pip3 | anaconda3 | intel3 |
+=========================+==========+===============================+================================+
| 2to3 | 1.11 sec | not significant | 1.63 sec: 1.46x slower (+46%) |
+-------------------------+----------+-------------------------------+--------------------------------+
| chameleon | 46.1 ms | 22.8 ms: 2.02x faster (-50%) | 54.7 ms: 1.19x slower (+19%) |
+-------------------------+----------+-------------------------------+--------------------------------+
| chaos | 484 ms | 251 ms: 1.93x faster (-48%) | 610 ms: 1.26x slower (+26%) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@msarahan
msarahan / DependencyGraphs.ipynb
Last active November 21, 2023 12:59
graphs from conda repodata.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""Set all repositories of a given GitHub organization name for a given user
to watching.
"""
import argparse
import json
import requests
import os
@msarahan
msarahan / build order - linux
Created April 23, 2018 19:40
AnacondaRecipesSync build order - linux
bzip2-feedstock
ncurses-feedstock
perl-feedstock
libedit-feedstock
sqlite-feedstock
zlib-feedstock
readline-feedstock
openssl-feedstock
tk-feedstock
libffi-feedstock
@msarahan
msarahan / gerrymandr_env.txt
Last active June 3, 2018 02:35
Conda env spec for gerrymandr school 2018
python >=3.6
descartes
geopandas
cartopy
fiona
gdal
geos
matplotlib
numpy
pandas
@msarahan
msarahan / ext.pyx
Last active July 25, 2019 03:32
validation of MKL 2018.0.3 openmp initialization fixes
cimport numpy as np
import numpy as np
import cython
from cython.parallel import prange
@cython.boundscheck(False)
@cython.wraparound(False)
@cython.cdivision(True)
def p_arange(int n):
'''
From 9147d00f50fafd45d6df6c4dbb7ec0dcd6b3dfe0 Mon Sep 17 00:00:00 2001
From: Michael Sarahan <msarahan@gmail.com>
Date: Fri, 29 Jun 2018 12:30:19 +0100
Subject: [PATCH] incorporate
https://github.com/tensorflow/tensorflow/pull/20284 up to c858523
---
tensorflow/tools/pip_package/BUILD | 8 +-
tensorflow/tools/pip_package/build_pip_package.sh | 2 +-
tensorflow/workspace.bzl | 14 ++
@msarahan
msarahan / mistakes.md
Last active August 22, 2018 19:02
Metadata mistakes & how to address them

pin_compatible on numpy's numpy-base dependency

Comes from:

# metapackage for things that don't use numpy's C interface, or things
- name: numpy
  requirements:
    build:
      # for runtime alignment
  • {{ compiler('c') }}