Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
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
| //github.com/jasmit-vaghasiya/Microservice-Architecture-and-System-Design-with-Python-Kubernetes | |
| //github.com/uzochukwueddie/jobberapp | |
| //github.com/srijan-paul/tsfun/ |
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
| // Literal type | |
| type Drinks = 'Coke' | 'Milk' | 'Water' | 'Coffee'; | |
| type UnUnite<T, K> = T extends K ? never : T; | |
| type Result = UnUnite<string | number | boolean, string>; // Result: number | boolean | |
| type HealthDrinks = UnUnite<Drinks, 'Coke'>; | |
| // `infer` | |
| // "destructuring type". "Pattern matching" |
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
| { | |
| "editor.scrollbar.vertical": "hidden", | |
| "editor.scrollbar.horizontal": "hidden", | |
| "editor.renderLineHighlight": "gutter", // Highlights the gutter | |
| "workbench.colorCustomizations": { | |
| "editor.lineHighlightBackground": "#fff", // Background color of the current line | |
| "editor.lineHighlightBorder": "#eee", // Optional: Border color around the current line (can be removed if not needed) | |
| "statusBar.background": "#e5e5e5" | |
| }, | |
| "editor.quickSuggestionsDelay": 0, |
Alright this is the first part where we will be writing core execution logic.
So we implemented our messages last time, lets take a look at src/contract.rs and more specifically that unimplemented execution function.
#[cfg_attr(not(feature = "library"), entry_point)]
pub fn execute(
_deps: DepsMut,
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
| ## test | |
| $0.833333333333333 * x^3 - 5.00000000000000 * x^2 + 9.16666666666667 * x - 5.00000000000000$ |
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
| use std::process::Command; | |
| use std::process::Stdio; | |
| fn main() { | |
| println!("Hello, world!"); | |
| let output = Command::new("ls") | |
| .arg("-l") | |
| .arg("-a") | |
| .stdout(Stdio::piped()) | |
| .output() |
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
| use std::process::Command; | |
| use std::process::Stdio; | |
| fn main() { | |
| println!("Hello, world!"); | |
| let output = Command::new("ls") | |
| .arg("-l") | |
| .arg("-a") | |
| .stdout(Stdio::piped()) | |
| .output() |
