Skip to content

Instantly share code, notes, and snippets.

View stevejpurves's full-sized avatar
📡
Remote since 2013

Steve Purves stevejpurves

📡
Remote since 2013
View GitHub Profile
@stevejpurves
stevejpurves / environment.yml
Created October 19, 2023 15:06
conda env with python
name: sample-1
channels:
- conda-forge
- default
dependencies:
- python>=3.9
- matplotlib
- numpy
- scipy
- pip
@stevejpurves
stevejpurves / requirements.txt
Last active October 19, 2023 14:59
requirements.txt
matplotlib
numpy
scipy
jupyterlab
jupyterlab-spellchecker
@stevejpurves
stevejpurves / random.ipynb.json
Last active March 1, 2023 16:19
An example of a small notebook and it's accompanying MyST Notebook as produced by `jupytext random.ipynb --to myst`
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "18d0ab5f-bbc3-478e-b611-52e3544d3d3a",
"metadata": {
"tags": [
"imports"
],
@stevejpurves
stevejpurves / environment.yml
Last active October 19, 2023 14:59
Base Binder Environment
name: sample
channels:
- conda-forge
- defaults
dependencies:
- matplotlib
- numpy
- scipy
@article{szumska_reversible_2021,
title = {Reversible {Electrochemical} {Charging} of n-{Type} {Conjugated} {Polymer} {Electrodes} in {Aqueous} {Electrolytes}},
issn = {0002-7863, 1520-5126},
url = {https://pubs.acs.org/doi/10.1021/jacs.1c06713},
doi = {10.1021/jacs.1c06713},
language = {en},
urldate = {2021-09-03},
journal = {Journal of the American Chemical Society},
author = {Szumska, Anna A. and Maria, Iuliana P. and Flagg, Lucas Q. and Savva, Achilleas and Surgailis, Jokubas and Paulsen, Bryan D. and Moia, Davide and Chen, Xingxing and Griggs, Sophie and Mefford, J. Tyler and Rashid, Reem B. and Marks, Adam and Inal, Sahika and Ginger, David S. and Giovannitti, Alexander and Nelson, Jenny},
month = sep,
@stevejpurves
stevejpurves / environment.yml
Created March 2, 2021 14:19
basic numpy environment
name: basic-numpy
channels:
- conda-forge
- defaults
dependencies:
- pip
- numpy
@stevejpurves
stevejpurves / environment.yml
Created March 2, 2021 13:03
SEG Tutorial Environment
name: seg-tutorial-phase
channels:
- conda-forge
- defaults
dependencies:
- pip
- numpy
- scipy
- matplotlib
- ipywidgets
@stevejpurves
stevejpurves / environment.yml
Created March 1, 2021 22:23
my_requirements
name: t20-fri-ray
channels:
- pytorch
- conda-forge
- defaults
dependencies:
- pip
- numpy
- scipy
- pandas
@stevejpurves
stevejpurves / create_empty_segy_longer_traces.py
Last active November 20, 2018 12:52
Create SEGY cube with longer traces
import segyio
import numpy as np
with segyio.open("orig_4ms.segy", 'r+') as f:
spec = segyio.tools.metadata(f)
# the new SEGY volume will be sampled at 2ms
new_samples = list(range(int(f.samples[0]), int(f.samples[-1]), 2))
num_new_samples = len(new_samples)
const expect = require('chai').expect;
const jsaudio = =require('../.')''
describe("emiting events", function() {
var engine, theme;
before(function() {
engine = new jsaudio.Engine();
theme = new jsaudio.Theme(engine, 'some/path/name');