Skip to content

Instantly share code, notes, and snippets.

View boxa72's full-sized avatar

Craig Hinkley boxa72

View GitHub Profile
@boxa72
boxa72 / gist:9c94e91aed8d7eb16ec3b48ff6092ffb
Last active August 5, 2021 11:11
HackinScience Print Distinct Pairs
x = 97
y = 98
for i in range(26):
for k in range(26):
print(chr(x) + chr(y))
y += 1
if y > 122:
y = 97
x += 1
@boxa72
boxa72 / practicepy2.py
Created July 20, 2021 02:10
Practice Python second question
def main():
number = int(input("Enter a number: "))
if number % 2 == 0 and number % 4 == 0:
print("The number", number, "is a multiple of four")
elif number % 2 == 0:
print("The number", number, "is even")
else:
print("The number", number, "is odd")
@boxa72
boxa72 / practicepy1.py
Created July 19, 2021 01:50
Practice Python first question
def main():
name = input("Enter your name: ")
age = int(input("Enter your age: "))
message = "Based on the age you entered you will turn 100 in"
print(message, 2021 + 100 - (age + 1))
numTimes = int(input("Enter the number of times you want the message to repeat: "))
for x in range(numTimes):
print(message, 2021 + 100 - (age + 1))
if __name__ == "__main__":
@boxa72
boxa72 / keybase.md
Created December 27, 2019 14:33
Keybase.io proof

Keybase proof

I hereby claim:

  • I am boxa72 on github.
  • I am boxa72 (https://keybase.io/boxa72) on keybase.
  • I have a public key ASD7XO0zCxrRCioz1XNs6LS3AzLhPr2u-IDENlHUmUlTtwo

To claim this, I am signing this object:

@boxa72
boxa72 / keybase.md
Created December 20, 2018 01:34
Keybase.io proof

Keybase proof

I hereby claim:

  • I am boxa72 on github.

  • I am boxa72 (https://keybase.io/boxa72) on keybase.

  • I have a public key ASCwjmsgU_5tbbEk_UbFUkiCqC6_D5QT9mydDDLqy9O43Ao

@boxa72
boxa72 / keybase.md
Created December 17, 2018 03:43
Keybase proof

Keybase proof

I hereby claim:

@boxa72
boxa72 / openpgp.txt
Created November 24, 2018 05:38
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:ab23952bc36bf8caf6b4c9eda3257dfb59f229ff]
@boxa72
boxa72 / keybase.md
Created July 12, 2018 05:44
Keybase

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@boxa72
boxa72 / keybase.md
Created December 13, 2017 11:39
My public crypto key

Keybase proof

I hereby claim:

  • I am boxa72 on github.
  • I am boxa (https://keybase.io/boxa) on keybase.
  • I have a public key ASBJ5m1P0NTzUN0MTEo42vpokv8e1SP2VEop5p8SrKB69Qo

To claim this, I am signing this object:

#include <iostream>
using namespace std;
int main()
{
for(int i = 65, j = 97; i <= 90, j <= 122; ++i, ++j)
{
cout << i << '\t' << char(i) << '\t' << j << '\t' << char(j) << endl;
}