Skip to content

Instantly share code, notes, and snippets.

View AakashCode12's full-sized avatar
🎯
Focusing

Aakash Yadav AakashCode12

🎯
Focusing
View GitHub Profile
//SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.7;
contract HealthCare {
uint public sum_ratings = 0;
uint public count_ratings = 0;
function addRating(uint _rating) external {
sum_ratings = sum_ratings+_rating;
// My method with jquery
//it has 2 parts first paste part 1 and then wait for 2-3 seconds as per ur internet connection to download jquery in client side of the browser
//part 1
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
#include <stdio.h>
struct Process
{
int arrivalTime;
int burstTime;
int remainingTime;
int priority;
};
int completionTime[500];
#include <stdio.h>
struct Process
{
int arrivalTime;
int burstTime;
int remainingTime;
};
int completionTime[100];
#include <stdio.h>
//todo Definition of functions
void selectionSort(int arr[], int n);
void insertionSort(int arr[], int n);
//Functions
void selectionSort(int arr[], int n)
{
int countComparisions = 0;
#include <stdlib.h>
#include <stdio.h>
//Linear Search Function (DONE)
int linearSearch(int arr[], int val, int n)
{
int valPosition = -1;
for (int i = 0; i < n; i++)
{
if (val == arr[i])
{
#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <dos.h>
#include <graphics.h>
//todo Fractal Triangle
int fractalTriangle(double x1, double y1, double x2, double y2, double x3, double y3, int c);
int fractalTriangle(double x1, double y1, double x2, double y2, double x3, double y3, int c)
#include <iostream.h>
#include <conio.h>
#include <math.h>
#include <stdlib.h>
#include <dos.h>
#include <graphics.h>
//Todo prototyping
void BezierThreePoints();
void BezierFourPoints();
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
//todo structure declaration
struct node
{
int data;
struct node *left;
struct node *right;

Practical 2d -- User Defined Package