Skip to content

Instantly share code, notes, and snippets.

View nycomp's full-sized avatar

nyjc.computing nycomp

  • Singapore
View GitHub Profile
@nycomp
nycomp / Create An Asymmetric Key Pair.py
Created October 23, 2024 06:07
Create your own public-private key pair using the cryptography module.
"""Creating an Asymmetric Key Pair
<IN SYLLABUS>
Anybody can create a public-private key pair!
A key pair comprises two parts. Typically, one part is kept secret (the private
key) while the other part is published publicly to enable anybody to access it
(the public key).
Either key can be used to encrypt; the encrypted message can only be decrypted
using the other key.
This kind of encryption is known as *asymmetric encryption*, vs symmetric
@nycomp
nycomp / HTML-CSS-Intro.md
Created October 23, 2024 05:48
Template files for creating a Github Page

Reference guide (Google Slides): 4e Creating a portfolio in Github Pages (HTML & CSS)

Your task

  1. Create a portfolio page in Github Pages
  2. Paste your Github profile link in Lesson Schedule, under the Profile tab.

Example portfolio pages

  • Dan Vine (based on Bootstrap Resume template)
@nycomp
nycomp / Maze.md
Created October 23, 2024 05:46
Instructions for a Maze game

2024 J1 Group Project - Maze

Instructions

Create one repl per group by forking this repl.

Add your group members to this repl by clicking Invite in the upper right hand corner of the repl window. They should show up as collaborators on the repl.

Your task

@nycomp
nycomp / Battleships.md
Last active April 17, 2025 04:10
Instructions for a game of Battleships

J1 Group Project - Battleships

Instructions

Create one repl per group by forking this repl.

Add your group members to this repl by clicking Invite in the upper right hand corner of the repl window. They should show up as collaborators on the repl.

Your task

@nycomp
nycomp / Wordle.md
Last active October 23, 2024 05:40
Complete the code to make a wordle game!

A Simple Wordle Game

This wordle game ... doesn't quite work yet! The code in main.py is fine, but none of the functions or classes in the wordle module have been implemented ...

To make it work, complete the tasks below.

Task 1: guess validation

  1. Implement wordle.is_five_letters() and wordle.is_valid_word()
    • This checks if the user's input is a valid guess.