walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
30 stars 24 forks source link

chore: Add permalinks to the cairo-by-example project #100

Open mazurroman opened 6 months ago

mazurroman commented 6 months ago

The cairo-by-examples project contains many Cairo code snippets. It would be great to add a link below relevant code snippets to open them in the Cairo playground on cairovm.codes so that devs can play with the code execution to understand it better.

cairovm.codes has a permalink feature, so that you can write some Cairo code and share it.

For the following code snippets, you should:

  1. copy the code snippet into the Cairo playground of cairovm.codes,
  2. generate a permalink,
  3. add a “Open in Cairo playground” link pointing to the permalink, below the code snippet.

Acceptance criteria: Create PRs on the cairo-by-example project with permalinks to cairovm.codes for the following code snippets:

PR Review

The PRs on the cairo-by-examples project should be reviewed in 2 steps:

Joy-Adah commented 6 months ago

Can I be assigned to this?

Ayoazeez26 commented 6 months ago

@mazurroman I'd like to pick this up.

wugalde19 commented 6 months ago

Hi, I'd love to take care of this

Calebux commented 6 months ago

I have gone through this and i'll be able to handle this appropriately

jaipaljadeja commented 6 months ago

Hi I am Jaipal (intro), i can take this issue. although i did check that cairovm.codes perma links contains some conflicting characters such as parenthisis which might mess with the markdown sytanx. i can encode them which should most definitely work if not might just shorten the links using dub.co (a good opensource link shortner) as the last resort if needed.

jaipaljadeja commented 6 months ago

Just raised a PR #116 for this.