Skip to content

Instantly share code, notes, and snippets.


Steven Clontz StevenClontz

View GitHub Profile
StevenClontz / imaginary-pretext-mc.xml
Created Dec 10, 2019
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 Sep 20, 2018
git cheatsheet for LaTeX projects
View .gitignore
# create a file with this exact text to ignore build files
StevenClontz / gist:1eb76f761b9114858238dd62d21740a5
Last active Jan 18, 2018 — 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
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

View .bash_prompt
# set colors for prompt
StevenClontz /
Last active Aug 29, 2015
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 Mar 11, 2015
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 Aug 29, 2015
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)
StevenClontz / main.rb
Last active Aug 29, 2015
Probability there is a day on Facebook without a birthday
View main.rb
module Prob
@@cache ||= {}
def probability_of_nonbday day_of_year, number_of_friends
return @@cache[number_of_friends][day_of_year] if
@@cache[number_of_friends] && @@cache[number_of_friends][day_of_year]
@@cache[number_of_friends] ||= {}
return 0 if day_of_year < 0
@@cache[number_of_friends][day_of_year] =
(364.to_f/365)**(number_of_friends-day_of_year) +
StevenClontz /
Created Jan 21, 2015
NYLT Scoutmasters' Minute

That was great, wasn't it? I love campfires. There's just something aobut flame that kind of gets you to thinking.

It can be a campfire, or a candle, a lantern... the flame dancing in the air just draws you in, and can make you think.

So what is a flame? It's something we learn very early in our Scouting career. What are the three ingredients for a flame? (ask for help)

Heat, air, and fuel. Without just one of these, the flame cannot survive. If you lack heat, your flame will just go out. Without air, your flame will choke and be snuffed out. Without fuel, your flame will starve and die away.

I keep talking about how I've been here working for this camp for almost a decade. It's important for you all to know why we're doing this. We aren't paid; in fact, we're each paying to be here, giving up our gas, a week of our paychecks, our time lounging by the pool or playing video games or whatever else we'd otherwise be doing.

You can’t perform that action at this time.