Skip to content

Instantly share code, notes, and snippets.

View PrometheusPi's full-sized avatar
:electron:
working

Richard Pausch PrometheusPi

:electron:
working
View GitHub Profile
@finnolec
finnolec / install_PIConGPU_0.6.0-dev_dependencies_taurus.sh
Created November 10, 2021 11:50
taurus@TUD: Install PIConGPU dependencies to run on the partition
#!/usr/bin/env bash
#
# Authors: Axel Huebl, Marco Garten, Klaus Steiniger, Finn-Ole Carstens
#
# last updated: 2021-11-10
#
# Based on https://gist.github.com/steindev/86df43bef49586e2b33d2fb0a372f09c
# It is advisable to compile libraries on an interactive node
# > srun -p gpu2-interactive --gres=gpu:0 --ntasks=1 --pty --mem=8G -t 2:00:00 bash # get resources on a node
#last update 05.11.2021
module load craype-accel-amd-gfx908
module load rocm/4.3.0
module load git/2.31.1
module load cmake/3.20.2
module load boost/1.73.0
module load c-blosc/1.21.0
module load cray-python/3.8.5.1
module load hdf5/1.10.7 # dependency of openpmd-api module (no other possible)
@steindev
steindev / data-transfer_judac.sh
Last active September 30, 2022 21:14
Script to transfer data from Juelich Supercomputing Center to HZDR.
#!/bin/bash
#
# Script to transfer data from Juelich Supercomputing Center to HZDR.
# Call with
# > screen # open a screen session first to be able to logout from the
# # data mover system
# > exec ssh-agent bash # prepare shell to add ssh key passphrase to ssh-agent
# # in order to not type it all the time
# > ssh-add ~/.ssh/id_ed25519 # add ssh key passphrase to ssh-agent
# > xargs -a dirs.list -n 1 -P 5 ~/bin/data-transfer_judac.sh | tee transfer.out
@n01r
n01r / Find_non-ASCII_in_Bibliography.md
Created June 16, 2020 15:19
Find non-ASCII characters in *.bib file that make LaTeX crash
@steindev
steindev / picongpu-analysis-environment.yml
Last active September 16, 2022 14:19
Conda environment file providing modules to analyse PIConGPU simulation data in Jupyter notebooks.
## Installing the environment
# * Download and install anaconda or miniconda
# * Activate the base environment
# `conda activate` (which maybe preceeded by `source ~/.bashrc`)
# * Install
# `conda env create --file picongpu-analysis-environment.yml`
#
# Alternatively, mamba could be used instead of conda which is supposed
# to be faster.
# In the base environment
@natowi
natowi / audio2midi.md
Last active July 19, 2024 03:32
List of open source audio to midi packages
@steindev
steindev / PIConGPU_0.4.3_taurus-tud.sh
Last active September 18, 2019 09:22
taurus@TUD: Install PIConGPU dependencies to run on the `ml` partition with Power9 nodes
#!/usr/bin/env bash
#
# Authors: Axel Huebl, Marco Garten, Klaus Steiniger
#
# last updated: 2019-04-24
PIC_BRANCH="dev"
# get PIConGPU profile
if [ ! -f "$PIC_PROFILE" ]; then

This page is a curated collection of Jupyter/IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there.

Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Simply paste the notebook URL in the nbviewer box and copy the resulting URL of the rendered version. This will make it much easier for visitors to be able to immediately access the new content.

Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer.

@MichaelCurrie
MichaelCurrie / autopep8 Travis-CI.md
Last active April 26, 2021 17:18
Automatically fix PEP-8 issues using Travis-CI

PEP-8 is a set of Python style recommendations. pep8 is a module that checks your .py file for violations. To make your Travis-CI build fail if you have any violations, you could add these lines to your .travis.yml:

before_install:
    - pip install pep8
    
script:
    # Run pep8 on all .py files in all subfolders
    # (I ignore "E402: module level import not at top of file"
    # because of use case sys.path.append('..'); import <module>)
@sevko
sevko / README.md
Created September 3, 2015 16:47
simple Python raytracer

raytracer

A simple Python raytracer that supports spheres with configurable "material" properties (base color and a bunch of light coefficients). To generate a raytraced image of the pre-defined scene, run: python raytracer.py and open image.ppm with a PPM-compatible viewer (eog works fine on Linux):

raytraced spheres

acknowledgements

I found the following resources extremely helpful: