Skip to content

Instantly share code, notes, and snippets.

View acbart's full-sized avatar

Austin Cory Bart acbart

View GitHub Profile
if -100 <= x <= 100:
in_range = True
else:
in_range = False
@acbart
acbart / basics.yaml
Created June 15, 2020 20:31
Fall 2019 Python Sneks V2 Learning Objectives
UseInputFunction: Use the "input" function to retrieve input from the user
UsePrintFunction: Use the "print" function to display data to the user
IdentifyPossibleProgramOutputs: Identify possible outputs of a program (printing, graphics, robots)
IdentifyPossibleProgramInputs: Identify possible inputs to a program (keyboard, mouse, files, sensors)
ExplainUseOfPrintVsDebugging: Explain the necessity of "print" vs. debugging tools
ExplainPurposeOfValues: Explain the purpose of values
IdentifyLiteralValues: Identify a literal value
ListBasicTypes: List the types
cards = [{'suit': 'heart', 'rank': 10, 'image': 'https://i.imgur.com/x0QYd6u.png'},
{'suit': 'clubs', 'rank': 5, 'image': 'https://i.imgur.com/HffuBjr.png'}]
cards = ["http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-ace-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-2-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-3-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-4-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-5-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-6-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-7-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-8-clubs.png" ,"http://acbart.com/images/board/icons/000000/transparent/1x1/aussiesim/card-9-clubs.png" ,"http://acbart.com/images/board/i
@acbart
acbart / minecraft_instructions.md
Last active March 17, 2023 02:02
UD CIS Minecraft Server Instructions

Instructions

Hello UD CIS student! Glad you are interested in the Minecraft server. Hope you'll have fun!

If you do not have a Minecraft Java Edition account, then you will need to buy one. Make sure you get Java Edition, and can run it on your computer. If you need further help connecting, you can use the "Playing on an Online Server" section of this guide.

Current server information:

  • Server IP Address: 66.70.130.248:25565
  • Java version 1.16.3
  • Survival Mode
@acbart
acbart / course_transfer.js
Created March 18, 2020 08:21
Canvas Submission Transfer
// Get Canvas information
var user = ENV.current_user;
var roles = ENV.current_user_roles;
var course = ENV.context_asset_string;
var courseId = course.split("_")[1];
var base = ENV.DEEP_LINKING_POST_MESSAGE_ORIGIN;
// user.display_name: 'Austin Bart'
// user.avatar_image_url: 'https://...'
// user.id: 123213s
// roles: ['user', 'teacher']

waltz: title: EGDD Example - Index the Cat meta: version: 0.0.2 gdd authors: - Austin Cory Bart acbart@udel.edu template authors: - Austin Cory Bart acbart@udel.edu

  • Mark Sheriff

Basic Gameplay

Urban-Modern-Fantasy is a narrative-based table-top system. The game is a back-and-forth between the Game Master (GM) and the players. The flow of the game is roughly:

  1. The GM describes a situation ("You are in a dark room")
  2. The GM asks a player what they do ("What do you do?")
  3. The player describes what they do ("I punch the darkness")
  4. The GM determines if a move has been triggered ("Sounds like Melee, roll 2D6")
  5. If so, the player rolls and the outcome affects the story. ("I succeed, 2 damage to the darkness")
  6. Either way, we return to step 1.
@acbart
acbart / printable_pygame_image.py
Created December 26, 2019 19:55
Demonstrates how you can now print Pygame images into Thonny's shell
import io
import base64
import pygame
from PIL import Image
pygame.init()
class PrintablePygameImage:
BASE64_PNG_PREFIX = bytes("data:image/png;base64,", encoding='ascii')
/*!
JSZip v3.2.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/master/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/master/LICENSE
"""
This file contains a basic Arcade Window class. It is necessary
to run your game.
You do not need to open or read this file. It must
be in the same folder as your other files.
Change Log:
- 0.0.1: Initial version
"""