Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbogie
nbogie / cyf-conf-games.md
Last active July 2, 2019 13:28
What was that game called? CYF Conference 2019 - social games

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"
],