This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fetch = function() { | |
// URL of the repository | |
var apiUrl = 'https://notebooks.gesis.org/binder/build/gh/gesiscss/smm_demo/master'; | |
eventSource = new EventSource(apiUrl); | |
eventSource.onerror = function(err) { | |
console.error("Failed to construct event stream", err); | |
}; | |
eventSource.addEventListener("message", function(event) { |