Skip to content

Instantly share code, notes, and snippets.

View rashaabdulrazzak's full-sized avatar
๐Ÿ 
Working from home

Rasha rashaabdulrazzak

๐Ÿ 
Working from home
View GitHub Profile
@rashaabdulrazzak
rashaabdulrazzak / iflet.rs
Created January 7, 2022 12:14
if let example
fn main() {
// define a scrutinee expression
let course = ("Rust", "course");
// pattern matches with the scrutinee expression
if let ("Ja", "course") = course {
println!("Values matchecd");
} else {
// do not execute this block
println!("Value unmatched");
@rashaabdulrazzak
rashaabdulrazzak / match.rs
Created January 7, 2022 12:18
match example
fn main() {
// define a variable
let x = 2;
// define match expression
match x {
1 => println!("Java"),
2 => println!("Rust"),
_ => println!("Some other value"),
};
}
@rashaabdulrazzak
rashaabdulrazzak / loop.rs
Created January 7, 2022 12:27
loop in rust
fn main (){
//define a for loop
for i in 0..3 {
println!("{}", i);
}
// define while loop
let mut x = 3;
while (x > 0){
x -= 1 ;
@rashaabdulrazzak
rashaabdulrazzak / gist:c4ea3d9cdc11b08ebf37ca798b0fa2cd
Created February 3, 2023 11:42 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: