Skip to content

Instantly share code, notes, and snippets.

Prepare and run an end-of-module assessment for HTML&CSS

What's needed this week?

I suggest two possible formats for the assessment: either Nate's single-file quiz, here: https://gist.github.com/NateWr/3d8b0cc5eb19712912d9f31dfb1d7896 or my interactive version on Kahoot, here: https://create.kahoot.it/share/html-css-quick-quiz/98be1fc1-00d6-4186-98b9-fbac58b8fce3

  • Pick one format.
  • Check that the content is suitable.
  • Translate it.
  • Add any more questions that you think are important, but keep the exercise under 1 hour.
@nbogie
nbogie / read_and_post_hiscores.py
Last active June 7, 2019 23:40
A very simple example python program to read (imagined) high scores and post high scores from/to a Web API.
# Quickstart: https://2.python-requests.org/en/master/user/quickstart/
import requests # For HTTP requests (GETting and POSTing stuff)
import random # we'll generate some random data for speed
# you can look at the scores on the server here:
# https://femi-hiscores.glitch.me/scores
# You can make your OWN server by remixing my one. Start here:
# https://glitch.com/~femi-hiscores
{
"title": "Sweet Potato & Spinach Curry With Lemony Rice",
"ingredients": [
"1 brown onion",
"50g solid coconut cream",
"2 garlic cloves",
"2 tomatoes",
"1 tbsp curry powder",
"1 lemon",
"1 pinch of saffron",
@nbogie
nbogie / recipe.json
Last active November 3, 2020 17:15
cyf - example recipe for recipe API
{
"title": "Adana",
"ingredients": [
"1 kg ground lamb",
"Kosher salt",
"4 teaspoons ground cumin, divided",
"4 tablespoons ground sumac, divided",
"4 tablespoon ground Urfa pepper flakes, divided",
"4 tablespoons ice-cold water"
],
@nbogie
nbogie / glitch-to-git.md
Last active May 16, 2019 02:15
CYF: Back up a glitch project to git (and then GitHub)

CYF: Back up a glitch project to git (and then GitHub)

These instructions are only needed if, like me, you don't want to have to trust glitch completely with permissions to read AND write your data on github directly.

Step: From your glitch project, click on "tools":

tools

@nbogie
nbogie / quotes.json
Last active May 13, 2019 13:46 — forked from nasrulhazim/quotes.json
Misc quotes list in JSON Format for CYF exercises
[
{
"quote": "Life isn’t about getting and having, it’s about giving and being.",
"author": "Kevin Kruse"
},
{
"quote": "Whatever the mind of man can conceive and believe, it can achieve.",
"author": "Napoleon Hill"
},
{
@nbogie
nbogie / pickRandomFromArray.js
Created May 4, 2019 23:32
a function which, when given an array of elements, will return one element picked at random from that array.
function pickRandom(arr) {
let ix = Math.floor(Math.random() * arr.length);
return arr[ix];
}
@nbogie
nbogie / NetlifyHosting.md
Last active June 19, 2019 16:56
CYF: Instructions for hosting with Netlify