Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<!doctype html>
<html>
<head>
<meta charset="utf-8" .>
<title>python-fortran</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.rawgit.com/jiffyclub/snakeviz/v0.4.0/snakeviz/static/snakeviz.css" rel="stylesheet">
<!-- DataTables CSS -->
<link href="https://cdn.rawgit.com/jiffyclub/snakeviz/v0.4.0/snakeviz/static/vendor/jquery.dataTables.min.css" rel="stylesheet">
</head>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmadia
ahmadia / Manual MathJax Equation Tags in the Jupyter Notebook.ipynb
Created October 3, 2015 22:48
Manual MathJax Equation Tags in the Jupyter Notebook.ipynb
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.
@ahmadia
ahmadia / petsc_dump.py
Last active August 29, 2015 14:16
Extracting systems of equations from Proteus runs
"""
Helper module for extracting PETSc systems of equations from Proteus
Put this file in the same directory as your application
Edit it to your needs
Use this patch to enable the petsc_dump hooks: https://github.com/erdc-cm/proteus/commit/ecb5f83469e549e736942a97d7887eec704d446c
"""
from petsc4py import PETSc
import json
@ahmadia
ahmadia / viz hashdist dependencies.ipynb
Created December 9, 2014 23:52
viz hashdist profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahmadia
ahmadia / mathjax_in_github.js
Created November 21, 2014 16:49
Run MathJax in GitHub
// ==UserScript==
// @name Run MathJax in Github
// @namespace http://www.mathjax.org/
// @description Runs MathJax on any page in github.com
// @include http://github.com/*
// @include https://github.com/*
// ==/UserScript==
/*****************************************************************/
# This profile file controls your <#> (HashDist) build environment.
# In the future, we'll provide better incorporation of
# automatic environment detection. For now, have a look
# at the YAML files in the top-level directory and choose
# the most *specific* file that matches your environment.
extends:
- name: hashstack
urls: ['https://github.com/hashdist/hashstack.git']
Unpacking sources files:bouqeqxdlfnkrh73hittzmsarplquvtd
Unpacking sources tar.gz:rrsxj2npvpfz7rtpiy53d4xqkgky3bwi
running [u'/bin/bash', '_hashdist/build.sh']
environment:
{'ARTIFACT': u'/Users/aron/.hashdist/bld/cmake/ckvi5ak55y2k',
'BASH': u'/bin/bash',
'BUILD': u'/Users/aron/.hashdist/tmp/cmake-ckvi5ak55y2k',
'HASHDIST_CPU_COUNT': '1',
'HDIST_CONFIG': '{"gc_roots":"/Users/aron/.hashdist/gcroots","source_caches":[{"dir":"/Users/aron/.hashdist/src"}],"default_profile":{"default_use":{"lapack":"host-osx-framework-accelerate","blas":"host-osx-framework-accelerate"},"package_dirs":["pkgs","base"],"parameters":{"python_site_packages_rel":"lib/python2.7/site-packages","pyver":"2.7","platform":"darwin","PATH":"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin","PROLOGUE":"export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed \\"s/\\\\(10.[0-9]\\\\).*/\\\\1/\\")\\n","BASH":"/bin/bash"},"hook_import_dirs":["base"]},"build_stores":[{"dir":"/Users/aron/.hashdist/bld"}],"cache":"/Users/aron/.hashdis
extends:
- name: hashstack
urls: ['https://github.com/hashdist/hashstack.git']
key: 'git:e4990ab2945f65a7dc0e1727929934415df2ace9'
file: linux.yaml
packages:
blas:
use: host-blas
cmake: