How to activate an Anaconda environment

If this happens you would need to set the PATH for your environment (so that it gets the right Python from the environment and Scripts\ on Windows). Imagine you have created an environment called py33 by using: Here the folders are created by default in Anaconda\envs, so you need to set the PATH as: Now … Read more

Regex lookahead, lookbehind and atomic groups

Examples Given the string foobarbarfoo: You can also combine them: Definitions Look ahead positive (?=) Find expression A where expression B follows: Look ahead negative (?!) Find expression A where expression B does not follow: Look behind positive (?<=) Find expression A where expression B precedes: Look behind negative (?<!) Find expression A where expression B does not precede: Atomic … Read more

How do I iterate over the words of a string?

For what it’s worth, here’s another way to extract tokens from an input string, relying only on standard library facilities. It’s an example of the power and elegance behind the design of the STL. Instead of copying the extracted tokens to an output stream, one could insert them into a container, using the same generic copy algorithm. … Read more

What is pipe for in RxJS?

The “pipeable” (former “lettable”) operators is the current and recommended way of using operators since RxJS 5.5. I strongly recommend you to read the official documentation on pipeable operators The main difference is that it’s easier to make custom operators and that it’s better treeshakable while not altering some global Observable object that could possible make collisions if two different … Read more

Using gradle to find dependency tree

Is it possible to use gradle to produce a tree of what depends on what? I have a project and would like to find out all the dependencies so I may be able to prune it a little with forward declarations etc.