Skip to content

Instantly share code, notes, and snippets.

View toufiq-austcse's full-sized avatar
😊
Learning

Md. Toufiqul Islam toufiq-austcse

😊
Learning
View GitHub Profile
@toufiq-austcse
toufiq-austcse / index.html
Created July 9, 2023 06:21
v1.18.0 – Amazon IVS Simple Quiz Demo with TimedMetadata
<head>
<script src="https://player.live-video.net/1.18.0/amazon-ivs-player.min.js"></script>
</head>
<body>
<div id="app">
<div class="inner">
<!-- Player wrapper, forcing 16:9 aspect ratio -->
<div class="player-wrapper">
import * as winston from 'winston';
export class LoggerService {
private static myLogger = winston.createLogger({
format: winston.format.json(),
transports: [
new winston.transports.File({filename: process.cwd() + '/project.logs'}),
],
});
import {LoggerService} from "./LoggerService";
LoggerService.writeErrorLog('Hello Error Log');
LoggerService.writeInfoLog('Hello Info Log');
import * as winston from 'winston';
export class LoggerService {
private static myLogger = winston.createLogger({
format: winston.format.json(),
transports: [
new winston.transports.File({filename: process.cwd() + '/project.logs'}),
],
});
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;
/*In the name of Allah the Most Merciful.
* Author
* Md. Toufiqul Islam
* Dept. Of CSE
* Ahsanullah University Of Science And Technology
*/
function getRandomNumber(min,max){
return Math.floor(Math.random()*(max-min+1))+min;
}
function getChar(){
var charArray = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];
var index = getRandomNumber(0,25);
return charArray[index];
}
//package Searching;
public class Main {
static int linearSearch(int[] array,int item){
int position =-1;
for(int i=0;i<array.length;i++){
if(array[i]==item){
position =i;
break;
}