GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - introprogramming/introprogramming.github.io: Course website.

This repository was archived by the owner on Oct 5, 2020. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

111 Commits
111 Commits

Folders and files

NameName
Last commit message
Last commit date
exercise-files
exercise-files
 
 
exercises
exercises
 
 
images
images
 
 
pygame_wrapper
pygame_wrapper
 
 
scripts
scripts
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
Avrundning (D).pdf
Avrundning (D).pdf
 
 
Avrundning (DV).pdf
Avrundning (DV).pdf
 
 
Avrundning (IT).pdf
Avrundning (IT).pdf
 
 
Modeller.pdf
Modeller.pdf
 
 
Programspråk.pdf
Programspråk.pdf
 
 
README.md
README.md
 
 
exercises.json
exercises.json
 
 
exercises.zip
exercises.zip
 
 
gulpfile.js
gulpfile.js
 
 
index.html
index.html
 
 
package.json
package.json
 
 
pygame.html
pygame.html
 
 
site.js
site.js
 
 
style.css
style.css
 
 
style.scss
style.scss
 
 

Repository files navigation

Course website

For news and information about the course.

Developing

The Site uses gulp for building the site's CSS, which is written in Sass.

Gulp is based on NodeJS. The NodeJS website describes how to get Node. It is often available via package managers, like Homebrew for OS X:

brew install node

NPM (Node Package Manager) is a service which lets you download small and large packages and libraries easily. NPM is bundled with the latest Node versions.

To install all dependencies, run this while in the website directory:

npm install

After that, you should be ready to go. Note that NodeJS and gulp is only needed in order to compile Sass code. Writing plain HTML is done as usual.

Fetching and packaging exercises from GitHub

The site shows the READMEs of the exercises on the front page. To update and fetch new READMEs, an import script exists. The script will additionally create a downloadable archive containing all exercises (for printing, sharing, etc.).

The import of exercises from the exercise repo is done through a Python script. It downloads the latest available exercises on the master branch. To begin, make sure you have the markdown2 package installed on your system. If it's not, it can be installed by running:

pip install markdown2

(Remember to prepend with sudo if you are not running with elevated privileges on a Unix-like system.)

The import script needs to be run from inside the scripts/ directory. In that directory, start the import by running:

python import.py

If successful, exercise files have been extracted to the exercises/ directory in the website directory. The files have also been packed into exercises.zip found in the same directory as exercises/.

The order of the exercises, as they are presented on the front page, is calculated firstly from the difficulty level specified in the README, and secondly from the order in which they are listed in the file exercises_order found in the exercise repo.

Host locally

During development, it can be useful to host the site locally on your machine. (The site will not work properly if you only open index.html as a file.) A simple way to host, with Python installed, is running this while in the website directory:

python -m SimpleHTTPServer

You should now be able to test the site by visiting localhost:8000 in your browser.

Deploying

The site uses GitHub Pages, so you can deploy to introprogramming.github.io with a simple git push:

git push origin master

About

Course website.

Resources

Readme
Activity
Custom properties

Stars

2 stars

Watchers

8 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.