This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>Order Tracker</title> | |
<link | |
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | |
rel="stylesheet" | |
integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add(A,B):-read(A),read(B),C is A**B,write('SUM IS'),write(C). | |
unary(A):-B is sqrt(A),write(B). | |
circle(R):-A is 3.14*R*R,write(A). | |
triangle(A,B,C):-S is (A+B+C)/2,AR is sqrt(S*(S-A)*(S-B)*(S-C)),write(AR). | |
ctof(T):- F is (T*(9/5))+32,write(F). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -L "https://api.codetabs.com/v1/loc?github=freakflames29/spotify-clone" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#program to show buffering while requesting an api or a webpage | |
require "httparty" | |
module Buffer | |
$flag=true | |
def self.show inp,url#,tim | |
$reqUrl=url | |
def buffer inp | |
while $flag | |
print "#{inp} .\r" | |
sleep(0.3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
void madhya() | |
{ | |
cout<<"Enter Your class 9 final marks of 7 subject out of 100\n"; | |
float bengali,english,geography,math,physical_sc,life_sc,history; | |
cout<<"Enter bengali marks :- "; | |
cin>>bengali; | |
// cout<<endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# t=Thread.new{puts "okj"} | |
b=Thread.new{puts "lvoe"} | |
# threa=[] | |
# 5.times do | |
# threa<<Thread.new{puts "mang0"}; | |
# sleep(2) | |
# end | |
# threa.each(&:join) | |
# puts "Hllp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
void ms(int *arr,int low,int mid,int high) | |
{ | |
int b[low+high]; | |
int i=low; | |
int j=mid+1; | |
int k=low; | |
while(i<=mid && j<=high) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ms(n): | |
if len(n)>1: | |
mid=len(n)//2 | |
lefthalf=n[:mid] | |
righthalf=n[mid:] | |
ms(lefthalf) | |
ms(righthalf) | |
i=j=k=0 | |
while i<len(lefthalf) and j<len(righthalf): | |
if lefthalf[i]<righthalf[j]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
struct Read | |
{ | |
string areyou; | |
struct Book | |
{ | |
string name; | |
struct Price | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x ||= {} | |
x[:key]="lock" | |
x[:key]||=50 | |
puts x | |
# output {:key=>"lock"} | |
#it is used to assign a value to variable if the variable is not assigned and afer assigning the value we can't change it to new value |
NewerOlder