Skip to content

Instantly share code, notes, and snippets.

@burrussmp
burrussmp / ObservableAjaxCall.js
Created July 11, 2020 03:16
Javascript Ajax Call to Get Data in Observable
response = {
while(1){
let response = await $.ajax({
url: `${server_url}/data`,
contentType: 'application/json',
type: 'GET'
});
yield Promises.delay(6000, response);
}
}
@burrussmp
burrussmp / GoogleColabServer.py
Created July 11, 2020 21:37
A python flask server that runs in the background and can be used in a Google Colab environment
## imports
import flask
from flask import Flask
from flask_cors import CORS
from flask_ngrok import run_with_ngrok
import threading
import trace
import sys
import time

What would this look like

fdlksajflkds fafja jklfdasjflkds jfklajfds

Looks like we will find out

I Think it looks pretty good

really??

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.