This file contains 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
from pytube import youtube | |
link = input("Enter Url:") | |
video = youtube(link) | |
stream = video.stream.get_highest_resolution() | |
stream.download() |
This file contains 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, shrink-to-fit=no"> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous"> | |
<title>Hello, world!</title> | |
</head> | |
<body> | |
<style> |
This file contains 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
input[type="checkbox"]{ | |
accent-color: #eb24bf; | |
} |
This file contains 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
<input type="range" min="1" max="100" value="75"> |
This file contains 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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title> CSS Selector</title> | |
</head> | |
<body> | |
<style> | |
body{ | |
background-color: #f1faee; |
This file contains 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
<!-- Sunmation (Capital Sigma) --> | |
<?= | |
sum = 0; | |
for(n=0; n<=4; n++){ | |
sum += 3*n; | |
} | |
?> | |
<!-- Product (Capital Pi) --> | |
<?= |
This file contains 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
pub struct CampaignAccount { | |
pub campaign_owner: PubKey, | |
pub campaign_amounts: u64, | |
pub campaign_descriptions: String, | |
pub campaign_fulfilled: u64, |
This file contains 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
pub fun process_instruction ( | |
program_id : &Pubkey, | |
accounts : &[AccountInfo], | |
data :&[u8], | |
) -> ProgramResult |
This file contains 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
let (instruction_byte, all_other_bytes) = data.split_first().unwrap(); | |
if *i nstruction_byte == 0{ | |
// create campaign | |
} | |
else if *instruction_byte == 1{ |
This file contains 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
let amount = rest_of_data | |
.get(..8) | |
.and_then(|slice| slice.try_into().ok()) | |
.map(u64::from_le_bytes) | |
.unwrap(); |
OlderNewer