Skip to content

Instantly share code, notes, and snippets.

View trslater's full-sized avatar

Tristan Slater trslater

View GitHub Profile
# Python Prime Sieve
#
# MyFirstPython Program (tm) Dave Plummer 8/9/2018
#
# This is the main prime_sieve class. Call it with the number you wish as an upper limit, then
# call the runSieve method to do the calculation. printResults will dump the count to check validity.
#
# Updated 3/22/2021 for Dave's Garage episode comparing C++, C#, and Python
from sys import stdout # So I can print without an automatic python newline
@trslater
trslater / update-remote-url.sh
Created November 26, 2018 21:41
Update remote url #git
git remote set-url <url>
@trslater
trslater / add-upstream-origin.sh
Created November 26, 2018 21:40
Add upstream origin #git
git add remote origin <url>
git push -u origin
@trslater
trslater / custom-registration.php
Last active May 12, 2020 13:47
Custom Registration Plugin
<?php
/*
Plugin Name: Custom Registration
Description: Updates user rating based on number of posts.
Version: 1.1
Author: Tristan Slater w/ Agbonghama Collins
Author URI: http://kanso.ca
*/