There is obviously no <script src="..">; in mongo shell, nor is there an "include" or "run" command.
Let's say, I'd like to embed the follwing libraries:
underscore.js
xdate.js
xdate.i18n.js
There is obviously no <script src="..">; in mongo shell, nor is there an "include" or "run" command.
Let's say, I'd like to embed the follwing libraries:
underscore.js
xdate.js
xdate.i18n.js
| typedef JsonObj = { | |
| glossary:Glossary, | |
| } | |
| typedef Glossary = { | |
| title:String, | |
| GlossDiv:GlossDiv, | |
| } | |
| typedef GlossDiv = { |
| // Documented by Stoyan Stefanov: https://www.facebook.com/note.php?note_id=10151176218703920 | |
| (function() { | |
| var url = 'http://example.org/js.js'; | |
| var iframe = document.createElement('iframe'); | |
| (iframe.frameElement || iframe).style.cssText = | |
| "width: 0; height: 0; border: 0"; | |
| iframe.src = "javascript:false"; | |
| var where = document.getElementsByTagName('script')[0]; | |
| where.parentNode.insertBefore(iframe, where); | |
| var doc = iframe.contentWindow.document; |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>BigML Prediction Test</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> | |
| <script src="https://code.jquery.com/jquery-1.7.1.js" type="text/javascript"></script> |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| html, body{ | |
| height: 100%; | |
| } | |
| *, *:before, *:after { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; |
| user_agent,color,browser,browser version,os,os version,device | |
| "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36",Green,Chrome,33.0.1750,Linux,,Other | |
| "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36",Green,Chrome,32.0.1700,Windows 8,,Other | |
| "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36",Yellow,Chrome,32.0.1700,Windows 7,,Other | |
| "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36",Red,Chrome,33.0.1750,Windows XP,,Other | |
| "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36",Red,Chrome,32.0.1700,Mac OS X,10.9.1,Other | |
| "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36",Yellow,Chrome,33.0.1750,Mac OS X,10.9.1,Other | |
| "Mozilla/5.0 (Windows NT 6.1) AppleW |
Dynamic scatterplot of the 1985 automobiles dataset.
Controls:
A visualization of blood insuline from the UCI diabetes dataset. The distribution is stored with a streaming histogram. Brush to zoom. Click to zoom out.
| { | |
| "name": "Anomalies above threshold", | |
| "kind": "script", | |
| "description": "Creates an anomaly detector and a dataset with all the anomalies above or below a given threshold", | |
| "source_code": "script.whizzml", | |
| "inputs":[ | |
| { | |
| "name": "dataset-id", | |
| "type": "dataset-id", | |
| "description": "Anomaly to use" |