How to embed links from Repl.it

Add a custom HTML block

Then use an iframe with the following format

<iframe frameborder="0" width="100%" height="500px" src="https://replit.com/@USERNAME/demo-embed?embed=true"></iframe>

How to embed links from Gists to an iframe

Our VLE doesn’t allow us to embed <script> tags which is the only way that Gist allows embeds of code but I found this alternative which seems to work.

TLDR; add .pibb to the end of the shareable link

<iframe src="https://gist.github.com/laura-james/f42fddb216f486eb80ac1b955f3618d2.pibb" style="width: 100%">
</iframe>

 

It works!

 

Just wish it was that easy to do from Replit – it just seems to want to show a cover image when I just want it to show the main.py file. Grrr!

Adventures with microbits

It’s the Raspberry Pi Competition with PA Consulting again and this year’s topic is about healthcare and well-being.

The students who want to do the competition have been talking about sensors to read heart rate, step count, crash detection. We are constrained by budget (there are great components specifically for the Pi we can use – like the senseHat) but we have lots of microbits at school – I wondered if we could use them to record something like step count and then send that data over radio?

Read more…