- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
# This script compiles SUNDIALS and install the python wrapper bmcage.odes | |
# You can also run it directly from the Internet doing | |
# curl -s https://gist.githubusercontent.com/rubendibattista/468979a4ef509394c70c8286bf9d8e4e/raw/install_bmcage_odes.sh | sudo bash | |
apt-get update | |
apt-get upgrade | |
apt-get install --assume-yes wget python python-dev cmake liblapack-* python-virtualenv virtualenvwrapper | |
wget https://computation.llnl.gov/projects/sundials/download/sundials-2.7.0.tar.gz |
I've tested it on Fedora 23 and Ubuntu 16.04. I'm using gcc-5.3.1, python-3.4, VS Code-1.14.0 | |
You can debug mixed Python/C++ in the same GUI. It also works for MPI applications. You can switch between the debuggers and corresponding call stacks. | |
1. Packages needed | |
1) Visual Studio Code | |
2) Extensions for VS Code: | |
"Python" from Don Jayamanne (I'm using 0.6.7) | |
This allows VS Code act as the front end to debug python. | |
This gives VS Code ability to attach to a python script that uses module "ptvsd". |
# This file is optional and included for completion sake | |
# if you generate the appropriate .bashrc file and load git-bash this file will be automatically created. | |
# generated by Git for Windows | |
test -f ~/.profile && . ~/.profile | |
test -f ~/.bashrc && . ~/.bashrc |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
// ==UserScript== | |
// @name MathJax Trello | |
// @description Apply Mathjax to Trello | |
// @include https://trello.com/* | |
// @grant none | |
// ==/UserScript== | |
// INSTALL: https://gist.githubusercontent.com/ViktorQvarfordt/c3f89c3cf50e3dc60b23257294af5710/raw/trello-mathjax.user.js | |
if (window.MathJax === undefined) { |
node-red-dashboard provides an easy to access web UI for Node-Red. It uses Angular, Angular Material and JQuery all of which are available to work with. Most of the available nodes are fairly simple to use but the Template node is available to use for those times when the simple nodes are not enough. Using the Template node can be easy, see the documentation. However, it can get difficult very quickly.
I put this flow together to illustrate how to access the msg object that is passed to the Template node from a JavaScript block within the template. This gives you access to the msg object in the browser.
Node that interactions with the Dashboards you create happen in two parts. The first is when you initially load the Dashboard UI. This is a single page app (SPA) so all of the Dashboard nodes you've used will all contribute to the UI. You will
# Obtained from http://code.activestate.com/recipes/252124-latex-codec/ | |
latex_equivalents = { | |
0x0009: ' ', | |
0x000a: '\n', | |
0x0023: '{\#}', | |
0x0026: '{\&}', | |
0x00a0: '{~}', | |
0x00a1: '{!`}', | |
0x00a2: '{\\not{c}}', | |
0x00a3: '{\\pounds}', |
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).