This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Import the pygame module | |
| import pygame | |
| # Import random for random numbers | |
| import random | |
| # Import pygame.locals for easier access to key coordinates | |
| # Updated to conform to flake8 and black standards | |
| from pygame.locals import ( | |
| RLEACCEL, | |
| K_UP, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| def main(): | |
| df = pd.read_csv('input.txt', delim_whitespace=True, header=None) | |
| total_score = 0 | |
| df.insert(0, 'count_multiplier', 1) # set up an initial count multiplier field | |
| for row in range(df.shape[0]): | |
| row_score = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| #borrowed some things from deom23 | |
| def main(): | |
| df = pd.read_csv('input.txt', delim_whitespace=True, header=None) | |
| total_score = 0 | |
| for row in range(df.shape[0]): | |
| row_score = 0 | |
| winners, numbers_i_have = df.iloc[row, 2:12].tolist(), df.iloc[row, 13:39].tolist() | |
| correct = [x for x in numbers_i_have if x in winners] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import re | |
| def main(): | |
| df = pd.read_csv("input.txt", index_col=False) | |
| re_number = re.compile(r'\d') | |
| re_spec_char = re.compile(r'[*&%\-/#&$@+=]') | |
| re_spec_char_dot = re.compile(r'[*&%\-/#&$@+=.]') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "os" | |
| "encoding/csv" | |
| "regexp" | |
| "fmt" | |
| "strings" | |
| "strconv" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/csv" | |
| "os" | |
| //"strings" | |
| "regexp" | |
| "fmt" | |
| //"strings" | |
| //"strconv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir ops | |
| cd ops | |
| git clone git@gitlab.com:apfcu/stratus/ops/git-hooks.git | |
| cd [infrastructure repo] | |
| cp ops/git-hooks/commit-msg infrastructure/.git/hooks/ | |
| cp ops/git-hooks/pre-commit infrastructure/.git/hooks/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -----BEGIN PGP PUBLIC KEY BLOCK----- | |
| mDMEYn4wpRYJKwYBBAHaRw8BAQdA5sGRd3rWkV8b4hRJa1P71hWCP3ycaTKCy5QK | |
| tesbQt60KUJhcmFrIEdyaWZmaXMgPGJncmlmZmlzQGFmZmluaXR5cGx1cy5vcmc+ | |
| iJkEExYKAEEWIQQrDoqxb8feh+ptYmmkS7V5hPS1+gUCYn4wpQIbAwUJA8JnAAUL | |
| CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRCkS7V5hPS1+o6kAPwIYeccuIHg | |
| ddMPyGEJFp6XOJE86VYzDV0IOMnOvV9FDgEAs3DHGpzlPhCAxGWJ0Z6xcDo7sqMP | |
| DskKuZ+4MVV91wu4OARifjClEgorBgEEAZdVAQUBAQdAdMhgso6bwcVB5BTVIeC5 | |
| mc2LC0qGRH3LwVCFxbvHJEsDAQgHiH4EGBYKACYWIQQrDoqxb8feh+ptYmmkS7V5 | |
| hPS1+gUCYn4wpQIbDAUJA8JnAAAKCRCkS7V5hPS1+mnfAP96/v2HGV5UQ1+snRSf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 4075225050204455 | |
| 4075225044992642 | |
| 4075225057936686 | |
| 4075225037795918 | |
| 4075225043760533 | |
| 4075225018004744 | |
| 4075225022689304 | |
| 4075225060119055 | |
| 4075225058023211 | |
| 4075225034304301 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Kris Ciesielski |
NewerOlder