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
| using Plots | |
| using Flux | |
| using ColorSchemes | |
| using NNlib | |
| using Flux: @epochs | |
| loss(x, y) = sum((m(x).-y).^2) | |
| opt = Descent(0.01) | |
| dataset = [([0.8], [1.0]), |
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
| using Plots | |
| using Flux | |
| using ColorSchemes | |
| using NNlib | |
| using Flux: @epochs | |
| loss(x, y) = sum((m(x).-y).^2) | |
| opt = Descent(0.01) | |
| dataset = [([0.8], [1.0]), |
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
| using Plots | |
| using Flux | |
| using ColorSchemes | |
| using NNlib | |
| using Flux: @epochs | |
| m = Dense(1,1) | |
| loss(x, y) = sum((m(x).-y).^2) |
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
| using Plots | |
| using Flux | |
| using NNlib | |
| using Flux: @epochs | |
| m = Dense(1,1) | |
| loss(x, y) = sum((m(x).-y).^2) | |
| dataset = [([0.8], [1.0]), |
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
| docker-compose build --no-cache; docker-compose up -d |
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
| version : '2' | |
| services: | |
| main: | |
| build: | |
| context: ./application | |
| args: | |
| - BRANCH=<branch> | |
| - DIRECTORY=<destination> | |
| - REPOSITORY=<github repository> |
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
| FROM node | |
| ARG PERSONAL_TOKEN | |
| ARG GITHUB_ACCOUNT | |
| ARG REPOSITORY | |
| ARG DIRECTORY | |
| ARG BRANCH | |
| RUN git clone -b $BRANCH https://$PERSONAL_TOKEN:[email protected]/$GITHUB_ACCOUNT/$REPOSITORY.git $DIRECTORY |
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
| docker build --no-cache -t application . | |
| docker run -d application |
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
| FROM node | |
| ARG PERSONAL_TOKEN=<personal-token> | |
| ARG GITHUB_ACCOUNT=<username> | |
| ARG REPOSITORY=<your_repository> | |
| ARG DIRECTORY=<your application directory> | |
| ARG BRANCH=master | |
| RUN git clone -b $BRANCH https://$PERSONAL_TOKEN:[email protected]/$GITHUB_ACCOUNT/$REPOSITORY.git $DIRECTORY |
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
| // MSSQL init | |
| const promise_mssql = new Promise((_resolve, _reject) => { | |
| notifier.on('mssql_connected', () => { | |
| _resolve(); | |
| }) | |
| }); | |
| const { mongoose } = require("./mongodb.js"); | |
| // MongoDB init | |
| const promise_mongodb = new Promise((_resolve, _reject) => { |
NewerOlder