Skip to content

Instantly share code, notes, and snippets.

View ax3l's full-sized avatar

Axel Huebl ax3l

View GitHub Profile
@ax3l
ax3l / CXXdefaults.md
Last active April 8, 2024 18:19
Compiler C++ Version Defaults

C++ -std=... default of various commonly used C++ compilers

Compiler Version __cplusplus
g++ 4.7.4 199711L
5.5.0 199711L
6.1.0 201402L
10.2 201402L
11.1.0 201703L
clang++ 3.4.2 199711L
@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 / Dockerfile
Created June 24, 2017 10:47
Z-Checker Dockerfile
FROM ubuntu:16.04
# general environment for docker
ENV HOME /home
ENV DEBIAN_FRONTEND noninteractive
# spack environment
ENV PATH "$HOME/src/spack/bin:$PATH"
ENV LD_LIBRARY_PATH "/home/src/z-checker-install/Z-checker/zc-install/lib:$LD_LIBRARY_PATH"
@ax3l
ax3l / mpirun_ubuntu1604_desktop.tpl
Created May 11, 2017 13:51
An mpirun template for PIConGPU and TBG on 1 GPU Ubuntu 16.04
#!/usr/bin/env bash
# Copyright 2017 Axel Huebl
#
# This file is part of PIConGPU 0.2.4
#
# PIConGPU is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@ax3l
ax3l / noglobal.py
Last active December 26, 2022 12:44
Useful Noglobal in Python
# License:
# I hereby state this snippet is below "threshold of originality" where applicable (public domain).
#
# Otherwise, since initially posted on Stackoverflow, use as:
# CC-BY-SA 3.0 skyking, Glenn Maynard, Axel Huebl
# http://stackoverflow.com/a/31047259/2719194
# http://stackoverflow.com/a/4858123/2719194
import types
@ax3l
ax3l / cppParamSameInt.cpp
Created February 15, 2017 19:21
Same Int Param
#include <iostream>
#include <type_traits>
template<
int A,
int B,
bool isSame = ( A == B ),
typename TSfinae = void>
struct S;
@ax3l
ax3l / yt_plot_problem.ipynb
Created January 5, 2017 13:51
Plot Single Particle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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 / DEAL2016_12_05.md
Last active December 7, 2016 15:22
Ad-Hoc Translation of OpenAccess Publ DEAL
@ax3l
ax3l / keybase.md
Created September 3, 2016 22:34
My keybase.io Proof

Keybase proof

I hereby claim:

  • I am ax3l on github.
  • I am ax3l (https://keybase.io/ax3l) on keybase.
  • I have a public key ASDN9N4Cy9pAVQpsuyn4UjWiY6plTT1o01Q-0z26s2tJdwo

To claim this, I am signing this object: