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
| # Random Forest Classification | |
| # Importing the libraries | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import pandas as pd | |
| import time | |
| class MeasureUnit: |
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 React, {Component} from 'react'; | |
| import { Redirect } from 'react-router-dom' | |
| import toastr from 'toastr'; | |
| import validator from 'validator'; | |
| import {SignupForm} from '../components/SignupForm' | |
| import {postRegisterData} from "../api/authenticationApi"; | |
| class Register extends Component { | |
| constructor() { | |
| super(); |
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
| $('td:contains("2.0")').parent().remove(); | |
| $('td:contains("k.cz.")').parent().remove(); | |
| var sumOfEcts = 0; | |
| var sumOfNotes = 0; | |
| $('td[title="ocena"]').each(function(){ | |
| sumOfNotes += parseFloat($(this).text()) * parseFloat($(this).next().next().text()); | |
| sumOfEcts += parseFloat($(this).next().next().text()); | |
| }); | |
| console.log('twoja średnia to:', sumOfNotes/sumOfEcts); |
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
| <script> | |
| const transportType = signalR.TransportType.WebSockets; | |
| const http = new signalR.HttpConnection(`http://${document.location.host}/chat`, { transport: transportType }); | |
| const connection = new signalR.HubConnection(http); | |
| connection.start(); | |
| connection.on('Send', (name, message) => { | |
| appendLine(name, message); | |
| }); | |
| document.getElementById('form-send').addEventListener('submit', event => { |
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
| <script src="src/signalr-client.js"></script> |
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
| <div style="margin-top: 20px" class="container"> | |
| <div class="row"> | |
| <div class="form-inline" id="name-form"> | |
| <label class="control-label" for="nick">Type your name:</label> | |
| <input class="form-control" type="text" id="nick" /> | |
| <button class="btn btn-primary" onclick="goChat()">Let's chat!</button> | |
| </div> | |
| <div style="display: none" id="chat"> | |
| <h2 id="user-name"></h2> | |
| <form class="form-inline" id="form-send" action="#"> |
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
| app.UseSignalR(routes => { | |
| routes.MapHub<ChatHub>("chat"); | |
| }); |
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
| public class ChatHub : Hub | |
| { | |
| public async Task Send(string name, string message) | |
| { | |
| await Clients.All.InvokeAsync("Send", name, message); | |
| } | |
| } |
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
| npm install signalr-client --registry https://dotnet.myget.org/f/aspnetcore-ci-dev/npm/ |
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
| dotnet add package Microsoft.AspNetCore.SignalR.Http -s https://dotnet.myget.org/F/aspnetcore-ci-dev/api/v3/index.json -v 1.0.0-alpha1-26559 |
NewerOlder