Skip to content

Instantly share code, notes, and snippets.

nbogie

Block or report user

Report or block nbogie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stepped_spice_rack_for_laser_3mm.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nbogie
nbogie / gist:d8b4f207c4f30f2d622c33c1a58010b7
Last active Oct 23, 2019
pygamezero move actor in direction faced
View gist:d8b4f207c4f30f2d622c33c1a58010b7
import math
car = Actor("car_blue")
car.x = 200
car.y = 200
car.speed = 1
accel = 0.5
turning_speed = 1
def update():
# handle player inputs
@nbogie
nbogie / inverse_kinematics.py
Created Oct 18, 2019
inverse kinematics tentacles - bad bad python code
View inverse_kinematics.py
# Inverse Kinematics tenacles with python and pygamezero
# Roughly following Daniel Shiffman's algorithm:
# https://www.youtube.com/watch?v=xXjRlEr7AGk
# pygamezero docs:
# https://pygame-zero.readthedocs.io/en/stable/builtins.html
import math
import random
View tg_pypercard.py
from pypercard import Inputs, CardApp, Card
import random
my_cards = [
Card(
"entrance",
text="You are in the top of a tall tower ,a locked door to the left and a window to the right",
buttons=[
{"label": "Try and pick the lock", "target": "locked door"},
{"label": "Go out of the window", "target": "falling"},
View microbit_arcade_box.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View microbit_holder.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View zippy_joystick_plate.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View buttons.svg
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 Jul 2, 2019
What was that game called? CYF Conference 2019 - social games
View cyf-conf-games.md
View html-css-assessment-notes.md

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.
You can’t perform that action at this time.