List of all libs here. Non header-only libraries (via ./bootstrap.sh --show-libraries
):
The Boost libraries requiring separate building and installation are:
- atomic
- chrono
- container
- context
""" | |
MIT License | |
Copyright (c) 2017 Cyrille Rossant | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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):
I found the following resources extremely helpful:
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>)
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.
#!/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 |
## 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 |
Note: I found the answer here: https://stackoverflow.com/questions/13596531/how-to-search-for-non-ascii-characters-with-bash-tools
If you find the following error message in your editor it is very likely that you have this problem:
Undefined control sequence. \printbibliography[notkeyword=myPaper, title={References}, heading=bibintoc, resetnumbers=true]
#!/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 |