Cling is a C++ interpreter developed at CERN as part of the ROOT project:
Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
ActivityTweet | |
generic_activity_highlights | |
generic_activity_momentsbreaking | |
RankedOrganicTweet | |
suggest_activity | |
suggest_activity_feed | |
suggest_activity_highlights | |
suggest_activity_tweet |
"""Crude Sphinx extension for inline documentation. | |
© 2019 Paul Natsuo Kishimoto <[email protected]> | |
Licensed under the GNU GPLv3: https://www.gnu.org/licenses/gpl-3.0.html | |
Star: https://gist.github.com/khaeru/3185679f4dd83b16a0648f6036fb000e | |
Enable by adding to conf.py:: | |
sys.path.append('path/to/this/file') | |
extensions.append('inline') |
// This is how we run libc++ tests on the GPU without modification. | |
// We force include this header into each test with `-include`. | |
__host__ __device__ | |
int fake_main(int, char**); | |
__global__ | |
void fake_main_kernel(int * ret) | |
{ | |
*ret = fake_main(0, NULL); |
- Create other terraform stuff
- tf-backend,
- creds.auto.tfvars with hcloud_token
- ssh key:
mkdir keys; ssh-keygen -f id_rsa
- modify cloudinit.yml:
- change gitlab url
- ADD_YOUR_REGISTRY_TOKEN -> Set to the Gitlab Runner Registration Token
- Add more allowed images/services, if using gitlab registry, like that: registry.myinstance.com/administrators/docker-images/*, change base image etc.

language: cpp | |
install: | |
- which xcrun | |
script: | |
- xcrun --help | |
- xcrun --show-sdk-path || true | |
- xcrun --show-sdk-version || true |
I recently built a small agent-based model using Python and wanted to visualize the model in action. But as much as Python is an ideal tool for scientific computation (numpy, scipy, matplotlib), it's not as good for dynamic visualization (pygame?).
You know what's a very mature and flexible tool for drawing graphics? The DOM! For simple graphics you can use HTML and CSS; for more complicated stuff you can use Canvas, SVG, or WebGL. There are countless frameworks, libraries, and tutorials to help you draw exactly what you need. In my case, this was the animation I wanted:
(Each row represents a "worker" in my model, and each rectangle represents a "task.")
To get the arguments of cling, which are passed on start, you can use the reflection feature of cling.
#include "cling/Interpreter/Interpreter.h"
#include "cling/Interpreter/InvocationOptions.h"
// gCling is an object of type cling::Interpreter
std::vector<const char*> remaining = gCling->getOptions().CompilerOpts.Remaining;
remaining