Skip to content

Instantly share code, notes, and snippets.

View solanoize's full-sized avatar

Solanoize solanoize

View GitHub Profile
package mobil.test.filter;
import static org.testng.Assert.assertTrue;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
import java.util.Arrays;
import java.util.Collections;
public class ContohArray04 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a[] = {33, 3, 4, 5};
String sekolah[] = new String[] {
"Budi", "Beno",
import java.util.Arrays;
import java.util.Collections;
public class ContohArray04 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int a[] = {33, 3, 4, 5};
String sekolah[] = new String[] {
"Budi", "Beno",
@solanoize
solanoize / JavaExercise.java
Created June 27, 2022 08:38
Latihan Java Day 04
// Latihan
// Soal 1
// Buatlah program untuk mencari nama siswa
// jika siswa ditemukan, cetak "siswa ditemukan, namanya A".
// Soal 2
// Buatlah program untuk mendapatkan total nilai
// dari sebuah array
// Soal 3
@solanoize
solanoize / oncom.py
Created May 13, 2022 15:03
OpenCV Facedetection using Video
import cv2
import time
video_path = "contoh.mp4"
window_name = f"Detected object in {video_path}"
video = cv2.VideoCapture(1, cv2.CAP_DSHOW)
video.set(3, 1280)
video.set(4, 720)
We can't make this file beautiful and searchable because it's too large.
model,year,price,transmission,mileage,fuelType,tax,mpg,engineSize
Fiesta,2017,12000,Automatic,15944,Petrol,150,57.7,1
Focus,2018,14000,Manual,9083,Petrol,150,57.7,1
Focus,2017,13000,Manual,12456,Petrol,150,57.7,1
Fiesta,2019,17500,Manual,10460,Petrol,145,40.3,1.5
Fiesta,2019,16500,Automatic,1482,Petrol,145,48.7,1
Fiesta,2015,10500,Manual,35432,Petrol,145,47.9,1.6
Puma,2019,22500,Manual,2029,Petrol,145,50.4,1
Fiesta,2017,9000,Manual,13054,Petrol,145,54.3,1.2
Kuga,2019,25500,Automatic,6894,Diesel,145,42.2,2
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 26 columns, instead of 5 in line 7.
symboling,normalized-losses,make,fuel-type,aspiration,num-of-doors,body-style,drive-wheels,engine-location,wheel-base,length,width,height,curb-weight,engine-type,num-of-cylinders,engine-size,fuel-system,bore,stroke,compression-ratio,horsepower,peak-rpm,city-mpg,highway-mpg,price
3,?,alfa-romero,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,13495
3,?,alfa-romero,gas,std,two,convertible,rwd,front,88.6,168.8,64.1,48.8,2548,dohc,four,130,mpfi,3.47,2.68,9,111,5000,21,27,16500
1,?,alfa-romero,gas,std,two,hatchback,rwd,front,94.5,171.2,65.5,52.4,2823,ohcv,six,152,mpfi,2.68,3.47,9,154,5000,19,26,16500
2,164,audi,gas,std,four,sedan,fwd,front,99.8,176.6,66.2,54.3,2337,ohc,four,109,mpfi,3.19,3.4,10,102,5500,24,30,13950
2,164,audi,gas,std,four,sedan,4wd,front,99.4,176.6,66.4,54.3,2824,ohc,five,136,mpfi,3.19,3.4,8,115,5500,18,22,17450
2,?,audi,gas,std,two,sedan,fwd,front,99.8,177.3,66.3,53.1,2507,ohc,five,136,mpfi,3.19,3.4,8.5,110,5500,19,25,15250
1,158,audi,gas,
We can't make this file beautiful and searchable because it's too large.
ORDERNUMBER,QUANTITYORDERED,PRICEEACH,ORDERLINENUMBER,SALES,ORDERDATE,STATUS,QTR_ID,MONTH_ID,YEAR_ID,PRODUCTLINE,MSRP,PRODUCTCODE,CUSTOMERNAME,PHONE,ADDRESSLINE1,ADDRESSLINE2,CITY,STATE,POSTALCODE,COUNTRY,TERRITORY,CONTACTLASTNAME,CONTACTFIRSTNAME,DEALSIZE
10107,30,95.7,2,2871,2/24/2003 0:00,Shipped,1,2,2003,Motorcycles,95,S10_1678,Land of Toys Inc.,2125557818,897 Long Airport Avenue,,NYC,NY,10022,USA,NA,Yu,Kwai,Small
10121,34,81.35,5,2765.9,5/7/2003 0:00,Shipped,2,5,2003,Motorcycles,95,S10_1678,Reims Collectables,26.47.1555,59 rue de l'Abbaye,,Reims,,51100,France,EMEA,Henriot,Paul,Small
10134,41,94.74,2,3884.34,7/1/2003 0:00,Shipped,3,7,2003,Motorcycles,95,S10_1678,Lyon Souveniers,+33 1 46 62 7555,27 rue du Colonel Pierre Avia,,Paris,,75508,France,EMEA,Da Cunha,Daniel,Medium
10145,45,83.26,6,3746.7,8/25/2003 0:00,Shipped,3,8,2003,Motorcycles,95,S10_1678,Toys4GrownUps.com,6265557265,78934 Hillside Dr.,,Pasadena,CA,90003,USA,NA,Young,Julie,Medium
10159,49,100,14,5205.27,10/10/2003 0:00,Shipped,4,10,2003,Motorc
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 5.
Year,Industry_aggregation_NZSIOC,Industry_code_NZSIOC,Industry_name_NZSIOC,Units,Variable_code,Variable_name,Variable_category,Value,Industry_code_ANZSIC06
2020,Level 1,99999,All industries,Dollars (millions),H01,Total income,Financial performance,"733,258","ANZSIC06 divisions A-S (excluding classes K6330, L6711, O7552, O760, O771, O772, S9540, S9601, S9602, and S9603)"
2020,Level 1,99999,All industries,Dollars (millions),H04,"Sales, government funding, grants and subsidies",Financial performance,"660,630","ANZSIC06 divisions A-S (excluding classes K6330, L6711, O7552, O760, O771, O772, S9540, S9601, S9602, and S9603)"
2020,Level 1,99999,All industries,Dollars (millions),H05,"Interest, dividends and donations",Financial performance,"54,342","ANZSIC06 divisions A-S (excluding classes K6330, L6711, O7552, O760, O771, O772, S9540, S9601, S9602, and S9603)"
2020,Level 1,99999,All industries,Dollars (millions),H07,Non-operating income,Financial performance,"18,285","ANZSIC06 divisions A-S (excluding classes K6330,