a) Install webpack bundle analyzer as a dev dependancy
npm install --save-dev webpack-bundle-analyzer
or
yarn add -D webpack-bundle-analyzer
| package main | |
| import ( | |
| "fmt" | |
| "bytes" | |
| "strconv" | |
| ) | |
| func main() { | |
| var N int |
| https://machinelearningmastery.com/how-to-evaluate-machine-learning-algorithms/ | |
| https://en.wikipedia.org/wiki/Cross-validation_(statistics) |
| /* start ios/android device detection */ | |
| .supports-ios { | |
| display: none; | |
| } | |
| .supports-android { | |
| display: block; | |
| } | |
| @supports (-webkit-overflow-scrolling: touch) { | |
| .supports-ios { | |
| display: block; |
| from gcapi import GCapiClient # From https://github.com/rickykim93/gcapi-python | |
| from gcapi.gcapi_tools import format_date # From https://github.com/rickykim93/gcapi-python | |
| from datetime import datetime | |
| from time import sleep | |
| import numpy | |
| def check_sell_criteria(prices): | |
| # TODO: Write your algorithm to detect sell condition here | |
| return False |
next.js, nginx, reverse-proxy, ssl
Your server.js file should look like the following. Make sure you're serving static files!
const { createServer } = require('http');
const { parse } = require('url');
const next = require('next');| #!/bin/bash | |
| ## Conventions: | |
| ## | |
| ## Working directory has the same name as the s3 bucket. | |
| ## Script is executed from the parent of this directory. | |
| ## | |
| BUCKET=$1 |
| #!/bin/sh | |
| set -eu | |
| # Docker | |
| sudo apt remove --yes docker docker-engine docker.io || true | |
| sudo apt update | |
| sudo apt --yes --no-install-recommends install apt-transport-https ca-certificates | |
| wget --quiet --output-document=- https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |