Skip to content

Instantly share code, notes, and snippets.

View CodersArts's full-sized avatar
💭
Computer Science Assignment Portal.We offers programming assignment.

CodersArts CodersArts

💭
Computer Science Assignment Portal.We offers programming assignment.
View GitHub Profile
@CodersArts
CodersArts / LinearRegression.py
Created October 21, 2019 06:39
Linear Regression - Fit into model and predict train and test data
''' For more visit
https://www.codersarts.com
'''
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_squared_error
@CodersArts
CodersArts / jsbooleanobject.html
Created October 18, 2019 12:17
Boolean can be objects
#Codersarts
<!DOCTYPE html>
<html>
<body>
<p>Never create booleans as objects.</p>
<p>Booleans and objects cannot be safely compared.</p>
#Codersarts
<!DOCTYPE html>
<html>
<body>
<p>Display the value of Boolean(20 > 19):</p>
<button onclick="myFunction()">Try it</button>
@CodersArts
CodersArts / jsrandom.html
Created October 18, 2019 12:07
It returns random integers
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math</h2>
<p>Math.floor(Math.random() * 20) returns a random integer between 0 and 19 (both
@CodersArts
CodersArts / jsmathrandom.html
Created October 18, 2019 11:53
Math.random() returns a random number between 0 and 1
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.random()</h2>
<p>Math.random() returns a random number between 0 (included) and 1 (excluded):</p>
@CodersArts
CodersArts / jsmathmin.html
Created October 18, 2019 11:47
Math.min() returns the lowest value in a list
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.min()</h2>
<p>Math.min() returns the lowest value in a list of arguments:</p>
@CodersArts
CodersArts / jsmathsin.html
Created October 18, 2019 11:43
Math.sin(x) returns the sin of x
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.sin()</h2>
<p>Math.sin(x) returns the sin of x (given in radians):</p>
@CodersArts
CodersArts / jsmathpi.html
Created October 18, 2019 11:37
Math.PI returns the ratio of a circle's circumference to its diameter
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript Math.PI</h2>
<p>Math.PI returns the ratio of a circle's circumference to its diameter:</p>
@CodersArts
CodersArts / jscomparedates.html
Created October 18, 2019 10:32
In JavaScript we can compare dates
#Codersarts
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
@CodersArts
CodersArts / jssethoursmethod.html
Created October 18, 2019 10:30
The setHours() method sets the hours of a date object
#Codersarts
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript setHours()</h2>
<p>The setHours() method sets the hours of a date object:</p>