npm init -y
npm i --save-dev nodemon
npm add babel-preset-env babel-cli
Create a .babelrc config in your project root. Insert the following
{
"presets": ["env"]
| <?php | |
| if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { | |
| header('Access-Control-Allow-Origin: *'); | |
| header('Access-Control-Allow-Methods: GET, OPTIONS'); | |
| header('Access-Control-Allow-Headers: accept, x-requested-with, content-type'); | |
| exit(); | |
| } | |
| $url = $_GET['url']; |
| sepal.length | sepal.width | petal.length | petal.width | variety | |
|---|---|---|---|---|---|
| 5.1 | 3.5 | 1.4 | .2 | Setosa | |
| 4.9 | 3 | 1.4 | .2 | Setosa | |
| 4.7 | 3.2 | 1.3 | .2 | Setosa | |
| 4.6 | 3.1 | 1.5 | .2 | Setosa | |
| 5 | 3.6 | 1.4 | .2 | Setosa | |
| 5.4 | 3.9 | 1.7 | .4 | Setosa | |
| 4.6 | 3.4 | 1.4 | .3 | Setosa | |
| 5 | 3.4 | 1.5 | .2 | Setosa | |
| 4.4 | 2.9 | 1.4 | .2 | Setosa |
| <!DOCTYPE html> | |
| <html> | |
| <!-- | |
| Copyright 2011 Google Inc. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| //License CC0 1.0: https://creativecommons.org/publicdomain/zero/1.0/ | |
| class Deferred extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| value: '' | |
| }; | |
| } | |
| componentDidMount() { |
| { | |
| "name": "tf-js", | |
| "version": "1.0.0", | |
| "main": "script.js", | |
| "license": "MIT", | |
| "dependencies": { | |
| "@tensorflow-models/mobilenet": "^0.2.2", | |
| "@tensorflow/tfjs": "^0.12.3", | |
| "@tensorflow/tfjs-node": "^0.1.9", | |
| "jpeg-js": "^0.3.4" |
| // Public Domain CC0 license. https://creativecommons.org/publicdomain/zero/1.0/ | |
| class Tokenizer { | |
| constructor(config = {}) { | |
| this.filters = config.filters || /[\\.,/#!$%^&*;:{}=\-_`~()]/g; | |
| this.lower = typeof config.lower === 'undefined' ? true : config.lower; | |
| // Primary indexing methods. Word to index and index to word. | |
| this.wordIndex = {}; | |
| this.indexWord = {}; |
| <?php | |
| /** | |
| * First Method. | |
| */ | |
| function array_search_partial($arr, $keyword) { | |
| foreach($arr as $index => $string) { | |
| if (strpos($string, $keyword) !== FALSE) | |
| return $index; | |
| } | |
| } |