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
@rossant
rossant / raytracing.py
Last active June 25, 2024 20:58
Very simple ray tracing engine in (almost) pure Python. Depends on NumPy and Matplotlib. Diffuse and specular lighting, simple shadows, reflections, no refraction. Purely sequential algorithm, slow execution.
"""
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
@ax3l
ax3l / BoostLibs.md
Last active August 14, 2017 13:19
Boost Compile Time Libs and Names

Boost 1.62

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
@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:

@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>)

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.

@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
@natowi
natowi / audio2midi.md
Last active July 19, 2024 03:32
List of open source audio to midi packages
@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
@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 / 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