Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| <body> | |
| <script src="https://d3js.org/d3.v4.min.js"></script> | |
| <script src="https://unpkg.com/vega/build/vega.min.js" charset="utf-8"></script> | |
| <script src="https://unpkg.com/vega-webgl-renderer/build/vega-webgl-renderer.js" charset="utf-8"></script> | |
| <div id="vis"></div> | |
| <script> | |
| // Load in your own Vega spec here. | |
| d3.json('https://vega.github.io/vega-webgl-renderer/spec/bar-hover-label.vg.json', function (spec) { | |
| var view = new vega.View(vega.parse(spec)) |
This file contains hidden or 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
| wget http://download.geonames.org/export/dump/allCountries.zip | |
| unzip allCountries.zip | |
| # Should complete in ~4 minutes | |
| time mongoimport -d geonames -c geonames --fields=id,na,as,al,la,lo,fs,fc,cc,c2,a1,a2,a3,a4,po,el,de,tz,md --type=tsv allCountries.txt |
This file contains hidden or 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
| import argparse | |
| import base64 | |
| import json | |
| import sys | |
| import requests | |
| KEY = '<<your API key here>>' | |
| # Usage: | |
| # python visionapi.py -i input_file -o output_json_file |
This file contains hidden or 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
| import sys | |
| import romanesco | |
| if __name__ == '__main__': | |
| if len(sys.argv) != 6: | |
| print """Usage: | |
| python convert.py input_file type input_format output_format output_file | |
| Example: |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 10 columns, instead of 6 in line 6.
This file contains hidden or 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
| name,description,uses,5ml,15ml,url,photo,topical,dilute,dietary | |
| Angelica,soothing relaxing oil of angels calming,"emotional release, digestive support, calming",43.75,,https://www.youngliving.com/en_US/products/angelica-essential-oil,1,1,1, | |
| Balsam Fir,woodsy calming refreshing grounding,emotional balance,26,62.75,https://www.youngliving.com/en_US/products/balsam-fir-idaho-essential-oil,,,, | |
| Basil,calming balancing strong spicy,"mental clarity, alertness, balancing",,24.75,https://www.youngliving.com/en_US/products/basil-essential-oil,,,, | |
| Bergamot,fresh sweet citrus uplifting relaxing skin mood confidence,"confidence, calming, female hormonal supplement",,27,https://www.youngliving.com/en_US/products/bergamot-essential-oil,,,, | |
| Black Pepper,pungent strong crisp digestive muscle discomfort after excercise,"energizing, endurance",18.75,,https://www.youngliving.com/en_US/products/black-pepper-essential-oil,,,, | |
| Blue Cypress,irritation breathing injury perfume adhesive,respiratory support,29,,https://www.youngliving. |
This file contains hidden or 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
| import romanesco | |
| simple = { | |
| "inputs": [], | |
| "outputs": [{"name": "output", "type": "number", "format": "number"}], | |
| "script": "output = 4", | |
| "mode": "r" | |
| } | |
| print romanesco.run(simple) |
This file contains hidden or 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
| [{"y": 0.21500000000000002, "x": "valine", "c": -0.0065645527839513478}, {"y": 0.24, "x": "valine", "c": 0.0099997825912710933}, {"y": 0.26, "x": "valine", "c": -0.028420705547296869}, {"y": 0.28, "x": "valine", "c": -0.091711826096058671}, {"y": 0.3, "x": "valine", "c": 0.032214496498502686}, {"y": 0.33499999999999996, "x": "valine", "c": -0.019214204799589872}, {"y": 0.385, "x": "valine", "c": -0.043855785266037901}, {"y": 0.425, "x": "valine", "c": -0.071115732985900737}, {"y": 0.45, "x": "valine", "c": 0.016973484803596648}, {"y": 0.48, "x": "valine", "c": -0.065950130168614784}, {"y": 0.51, "x": "valine", "c": -0.13701486075463984}, {"y": 0.5449999999999999, "x": "valine", "c": -0.19874278394816608}, {"y": 0.585, "x": "valine", "c": -0.1654424159353689}, {"y": 0.63, "x": "valine", "c": -0.54789483425351215}, {"y": 0.675, "x": "valine", "c": -0.12203972344237785}, {"y": 0.72, "x": "valine", "c": -0.1243879419370426}, {"y": 0.76, "x": "valine", "c": 0.018039108756663383}, {"y": 0.78, "x": "valine", "c": 0. |