Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / xeus_cling_openmp.ipynb
Last active May 15, 2018 11:28
Xeus-Cling with OpenMP
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / awesome_standalone.md
Last active February 4, 2019 13:57
Awesome, Stand-Alone C++11 Projects

Awesome, Stand-Alone C++11 Projects

Projects with wide adoption, broad compiler support, proper testing and great documentation.

Most of them are header-only (which is not necessarily a good thing for all tasks!), some of them even provide an amalgated (single-file) header.

CLI

(replace Boost.ProgramOptions)

@ax3l
ax3l / PIConGPU_040-dev_PizDaint.sh
Last active May 13, 2019 14:45
Piz Daint: PIConGPU 0.4.0-dev Quick-Start
#!/usr/bin/env bash
#
# Authors: Axel Huebl, Marco Garten, Klaus Steiniger
#
# last updated: 2019-05-13
#
# execute:
# wget -O - https://gist.githubusercontent.com/ax3l/68cb4caa597df3def9b01640959ea56b/raw/PIConGPU_040-dev_PizDaint.sh | bash
PIC_BRANCH="dev"
@ax3l
ax3l / matplotlib.md
Last active October 11, 2019 00:07
Matplotlib: Axes vs Axis vs Figure vs ...
@ax3l
ax3l / bashrc
Last active June 30, 2020 04:25
multiple_pkg_managers
# snippet for file: $HOME/.bashrc
#
# License: CC0
#
# register a bash function that calls the script above
activate-env () {
. $HOME/bin/impl-activate-env $@
}
@ax3l
ax3l / streaming.md
Last active September 1, 2020 23:02
Streaming Magic

Streaming Magic

This gist contains cmd line streaming magic.

Create a virtual cam with the desktop as the input

For a 1280x1024 desktop:

sudo modprobe v4l2loopback devices=1
@ax3l
ax3l / latexGitHub
Last active December 12, 2020 23:04
Latex in GitHub Markdown
**URLEncode** Latex Formula -> [http://meyerweb.com/eric/tools/dencoder/]
Create Link:
```markdown
![My Formula](http://latex.codecogs.com/gif.latex?<URLEncodedLaTeX>)
or
![My Formula](https://chart.googleapis.com/chart?cht=tx&chl=<URLEncodedLaTeX>)
```
@ax3l
ax3l / CMakeLists.txt
Last active May 14, 2021 16:22
openPMD-api usage example: CMake
cmake_minimum_required(VERSION 3.11)
project(openPMD_test)
add_executable(mytest main.cpp)
target_compile_features(mytest PRIVATE cxx_std_14)
find_package(openPMD REQUIRED CONFIG)
target_link_libraries(mytest PRIVATE openPMD::openPMD)
@ax3l
ax3l / YT.ipynb
Created January 4, 2017 14:18 — forked from C0nsultant/YT.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ax3l
ax3l / compound_complex_fortran2003.f90
Created February 4, 2021 00:25
HDF5: Complex Types (Fortran 2003)
! This is the F2003 version of the h5_compound.c example source code.
! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
! Copyright by the Board of Trustees of the University of Illinois. *
! All rights reserved. *
! *
! This file is part of HDF5. The full HDF5 copyright notice, including *
! terms governing use, modification, and redistribution, is contained in *
! the files COPYING and Copyright.html. COPYING can be found at the root *
! of the source code distribution tree; Copyright.html can be found at the *
! root level of an installed copy of the electronic HDF5 document set and *