Skip to content

Instantly share code, notes, and snippets.


Steven Clontz StevenClontz

View GitHub Profile
StevenClontz /
Last active January 15, 2022 19:28
Simplified castle panic (for 3yo)


  • Place six towers and six walls in the center of the board.
  • Find 5 Goblin tokens, 3 Orc tokens, and 2 Troll tokens. Return the other tokens to the box.
  • Shuffle the tokens and place them facedown next to the board.
  • Roll the die. Ignoring the Forest ring, place a random token face-up on the outermost ring of that die's wedge, pointing the highest number corner towards the center (its hit points).
    • If the wedge is full, re-roll the die and try again.
  • Create a shuffled deck of only Swordsman, Knight, Archer, Hero, and Barbarian cards. Return the other cards to the box.
StevenClontz /
Created December 16, 2021 22:33
Redirecting a PreTeXt book
# FIRST, copy (not move) your HTML into the desired directory you wish to redirect to using your filesystem
# you can delete any non-HTML files at the original location, at least, only HTML can be redirected
import os
# current path to PreTeXt-generated HTML from working directory
current = os.path.join("docs")
# relative path to redirected HTML from current, default assumes move from ./docs to ./docs/archive-2021
redirect = os.path.join("archive-2021")
StevenClontz / imaginary-pretext-mc.xml
Created December 10, 2019 23:52
PreTeXt exercise made up syntax
View imaginary-pretext-mc.xml
Which of these numbers are even?
<multiple-choice select="many">
<choice correct="true"><m>-4</m></choice>
<choice correct="true"><m>0</m></choice>
StevenClontz / .gitignore
Last active September 20, 2018 21:13
git cheatsheet for LaTeX projects
View .gitignore
# create a file with this exact text to ignore build files
StevenClontz / gist:1eb76f761b9114858238dd62d21740a5
Last active January 18, 2018 21:33 — forked from wrburgess/gist:2187164
Setting up a Rails has_many :through relationship with meaningful relationship table #rails #activerecord #relations
View gist:1eb76f761b9114858238dd62d21740a5

Create Models

Create tables:

  • bin/rails g model Location name:string
  • bin/rails g model User name:string
  • bin/rails g model Checkin

Run migration:

  • bin/rails db:migrate
StevenClontz /
Last active May 23, 2016 16:51
MaPP HSC17 Call for Puzzle Designers

MaPP High School Challenge '17

Thank you for your interest in designing a puzzle for Mathematical Puzzle Program's (MaPP) High School Challenge '17 (HSC17)! We provide our mathematical puzzlehunt competition materials to campuses across the country without cost as part of our mission of promoting the fun of mathematical problem solving. Your contributions are what make this possible.

Please read this short document outlining what we need from our volunteer

StevenClontz / .bash_prompt
Last active September 2, 2020 17:12
Bash Prompt
View .bash_prompt
# set colors for prompt
StevenClontz /
Last active August 29, 2015 14:18
Programming talk at New Hope High School

About the speaker

Steven Clontz is a mathematician and software developer from Auburn, Alabama, and co-founder of the startup Teloga, LLC responsible for for Music Organizations (a customer relationship manager). He is currently developing the open-source learning management system ALMS at


All of the tools I use in my work are open-source: this typically means that

StevenClontz / generate.rb
Created March 11, 2015 04:58
progress report generator
View generate.rb
require 'csv'
require 'pry'
require 'erb'
class Student
attr_reader :id, :name, :section
attr_accessor :group1,
StevenClontz /
Last active August 29, 2015 14:16
AubRUG March Agenda

March Agenda

  • Welcome
  • Announcements
    • and @AubRUG on Twitter
    • RailsConf
    • RailsBridge ATL by RailsGirls
    • OIT Symposium (Mar 4 tomorrow)
    • AubRUG future meetings
  • Talk: Developing Rails in the Cloud (Steven Clontz)