Skip to content

Instantly share code, notes, and snippets.

View m-naeem66622's full-sized avatar
🏫
Studying at University of Gujrat

Muhammad Naeem m-naeem66622

🏫
Studying at University of Gujrat
View GitHub Profile

INTRODUCTION

"Step into a future where innovation knows no boundaries, where doctors, engineers, and artists unite their expertise to tackle society's most complex problems. This is the world of cross-disciplinary education – a revolutionary concept that blends diverse knowledge, methods, and perspectives to elevate analytical thinking to new heights." In our fast-changing world, having strong analytical thinking skills is really important. Analytical skills help us break down complex problems and find useful answers from data. While traditional education has been the main way to develop these skills, more people are starting to see that we need a broader approach. This new way of thinking is all about cross-disciplinary education. That's when we learn from different fields like science, arts, and humanities, and bring their ideas together. Cross-disciplinary education is different from the old way of learning because it mixes different areas of knowledge. It helps create well-rounded thinkers who can look

// Import modules
import React, { useEffect, useRef, useState } from "react";
// Define a custom hook for using media source buffers
const useMediaSourceBuffer = (url, mimeType) => {
// Create a ref for the media source object
const mediaSourceRef = useRef();
// Create a ref for the source buffer object
const sourceBufferRef = useRef();
@m-naeem66622
m-naeem66622 / explanation.md
Created June 12, 2023 19:19
A demonstration to the one line "every()" and "some()" method in JavaScript

Demostration of Filter the Table Data

  1. In boostrapTable() the first argument is method that we want to apply. In this case we were using "filterBy"
  2. The second argument is the filters that we want to apply and filter the records. In this case we were giving "tags" that has been selected.
  3. The third argument we had given is filterAlgorithm which can be customized by giving own function instead of "and" & "or".

Working of custom And

function checkTags(filterTags, rowTags) {
@m-naeem66622
m-naeem66622 / code.cpp
Last active March 2, 2023 18:52
Weird things about increment or decrement operators with equality operator
#include <iostream>
using namespace std;
int main() {
for (int i=0; i < 4; i++)
{
cout<<i<<" iteration \n";
if(cout<<"before condition "<<i<<"\n" && i == i++ && cout<<"after condition "<<i<<"\n")
{
cout << i<< "\n";