Skip to content

Instantly share code, notes, and snippets.

View annibuliful's full-sized avatar
😥
stressful

jarupong pajakgo annibuliful

😥
stressful
View GitHub Profile
<html>
<body>
<div id="myDIV">
<a href="https://www.youtube.com/watch?v=Z9QbYZh1YXY">test1</a>
<a href="https://www.youtube.com/watch?v=Z9QbYZh1YXY">test2</a>
</div>
<button onclick="myFunction()">Try it</button>
function mockData() {
const symbolOfCards = ['C', 'D', 'H', 'S']
const numberOfCards = ['2', '3', '4', '5', '6', '7', '8', '9', '0', 'J', 'Q', 'K', 'A']
let countOfSymbol = 0
let countOfNumber = 0
let listOfCards = []
while(countOfSymbol !== symbolOfCards.length ){
if(countOfNumber === numberOfCards.length){
countOfSymbol++
countOfNumber = 0

#What's new Firebase 1.3M monthly active app

##Build Better app

  1. Firebase Admin

    • Node , Go , Python , Java , .NET
  2. Cloud firestore

  • Sorting & More condition to Filtering

#Find average of 6 inputs Create a program which use to calculate the average of 6 positive numbers

input output
1 2 3 4 5 6 3.50
-1 4 8 10 9 19 invalid

#Find MIN MAX (Don't use loop)

Find Average (create with both FOR and WHILE)

  1. Create 20 length of numbers of array
  2. Input 20 numbers
  3. find everage

Find sum ( create with both FOR and WHILE)

bonus use onlye 1 loop

  1. Create 10 length of number of array
  2. input 10 numbers
  3. summation
<!DOCTYPE html>
<html>
<head>
<style>
/* Set the size of the div element that contains the map */
#map {
height: 400px; /* The height is 400 pixels */
width: 100%; /* The width is the width of the web page */
}
</style>
We can't make this file beautiful and searchable because it's too large.
satisfaction_level,last_evaluation,number_project,average_montly_hours,time_spend_company,Work_accident,left,promotion_last_5years,sales,salary
0.38,0.53,2,157,3,0,1,0,sales,low
0.8,0.86,5,262,6,0,1,0,sales,medium
0.11,0.88,7,272,4,0,1,0,sales,medium
0.72,0.87,5,223,5,0,1,0,sales,low
0.37,0.52,2,159,3,0,1,0,sales,low
0.41,0.5,2,153,3,0,1,0,sales,low
0.1,0.77,6,247,4,0,1,0,sales,low
0.92,0.85,5,259,5,0,1,0,sales,low
0.89,1,5,224,5,0,1,0,sales,low
5.1 3.5 1.4 0.2 Iris-setosa
4.9 3.0 1.4 0.2 Iris-setosa
4.7 3.2 1.3 0.2 Iris-setosa
4.6 3.1 1.5 0.2 Iris-setosa
5.0 3.6 1.4 0.2 Iris-setosa
5.4 3.9 1.7 0.4 Iris-setosa
4.6 3.4 1.4 0.3 Iris-setosa
5.0 3.4 1.5 0.2 Iris-setosa
4.4 2.9 1.4 0.2 Iris-setosa
4.9 3.1 1.5 0.1 Iris-setosa
package numerical;
class newton {
static final double EPSILON = 0.001;
static double func(double x)
{
return (x*x*x) - 6;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Untitled</title>
</head>
<style>
table{
width: 90vw;