Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.
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 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 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 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 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
#!/usr/bin/env python | |
# parse_toc.py | |
from pdfminer.pdfparser import PDFParser | |
from pdfminer.pdfdocument import PDFDocument | |
def parse(filename, maxlevel): | |
fp = open(filename, 'rb') | |
parser = PDFParser(fp) | |
doc = PDFDocument(parser) |
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
' this code extracts text from PPT(X) and saves to latex beamer body | |
Public Sub Extract2Beamer() | |
Dim objPresentation As Presentation | |
Set objPresentation = Application.ActivePresentation | |
Dim objSlide As Slide | |
Dim objshape As Shape | |
Dim objShape4Note As Shape | |
Dim hght As Long, wdth As Long |
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
' this code extracts text from PPT(X) and saves to latex beamer body | |
' Provided for free with no guarantees or promises | |
'WARNING: this will overwrite files in the powerpoint file's folder if there are name collisiona | |
' Original version by Louis from StackExchange (https://tex.stackexchange.com/users/6321/louis) available here: (https://tex.stackexchange.com/questions/66007/any-way-of-converting-ppt-or-odf-to-beamer-or-org) | |
' Modified by Jason Kerwin (www.jasonkerwin.com) on 20 February 2018: | |
' Takes out extra text that printed in the title line | |
' Switches titles to \frametitle{} instead of including them on the \begin{frame} line (sometimes helps with compiling) | |
' Changes the image names to remove original filename, which might have spaces | |
' Removes "\subsection{}" which was printing before each slide | |
'NB you must convert your slides to .ppt format before running this code |
NewerOlder