Coder Social home page Coder Social logo

dfinity / embed-motoko Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 1.0 2.49 MB

Embed a custom Motoko code snippet in a Medium article, blog post, or webapp.

Home Page: https://embed.motoko.org

HTML 1.48% JavaScript 7.77% SCSS 7.40% Shell 0.09% TypeScript 73.58% Motoko 9.68%
code-snippets embedly iframe-embeds internet-computer medium-article motoko motoko-language oembed wordpress icp

embed-motoko's Introduction

Embed interactive Motoko code snippets in your Medium article or website.


Medium Articles

Paste the following link into your Medium article:

https://embed.motoko.org

Customize your code snippet by heading to embed.motoko.org and using the "Copy embed snippet" button.

Websites & Blogs

Paste the following HTML tag into your website:

<iframe
    src="https://embed.motoko.org"
    width="100%"
    height="500"
    style="border:0"
    title="Code snippet"
/>

Contributing

# Set up your local environment
git clone https://github.com/rvanasa/embed-motoko
cd embed-motoko
npm install

# Run the development server
npm start

# Run tests
npm test

embed-motoko's People

Contributors

rvanasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

miguel-title

embed-motoko's Issues

Support `to_candid` and `from_candid` in the interpreter

I realize this is probably better raised in the motoko repo but I encountered it at embed.smartcontracts.org so I figured I’d start here.

I was trying to help someone translate some Motoko code to Candid so they could call a method using dfx, and ran into mo:12.1-12.20: internal error, Invalid_argument("to do: ToCandidE")

It originates here: https://github.com/dfinity/motoko/blob/26c229ad2b6305e15740eb718aa1caf1329f9afd/src/mo_interpreter/interpret.ml#L439-L440

  | ToCandidE _ -> invalid_arg "to do: ToCandidE"
  | FromCandidE _ -> invalid_arg "to do: FromCandidE"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.