This file contains 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 random | |
import msvcrt | |
import os | |
import colorama | |
colorama.init() | |
WHITE = "\033[1;37m" | |
RED = "\033[0;31m" |
This file contains 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
class Meeting(object): | |
def __init__(self, start, end): | |
self.start = start | |
self.end = end | |
def __str__(self): | |
return str(self.start) + ', ' + str(self.end) | |
This file contains 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
/* | |
POV Display | |
Controlls 5 LEDs in synch with their rotation using an ATTiny85 to create a POV Display. | |
by Joseph Ryan | |
*/ | |
const int totalLen = 24; | |
const int len = 12; |
This file contains 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
/* | |
0 = I | |
.... ..O. .... .O.. | |
OOOO ..O. .... .O.. | |
.... ..O. OOOO .O.. | |
.... ..O. .... .O.. | |
000011110000000 1920 | |
001000100010001 4369 | |
000000001111000 120 | |
010001000100010 8738 |
This file contains 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
# Joseph Ryan | |
# Uncrustify config loosely based on K&R | |
# | |
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs | |
input_tab_size = 4 # original tab size | |
output_tab_size = 4 # new tab size | |
indent_columns = output_tab_size | |
indent_label = 2 # pos: absolute col, neg: relative column | |
# indent_align_string = False # align broken strings |
This file contains 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
"*": | |
"atom-beautify": | |
c: | |
configPath: "C:\\Program Files\\uncrustify\\cfg\\joseph.cfg" | |
cpp: | |
configPath: "C:\\Program Files\\uncrustify\\cfg\\joseph.cfg" | |
general: | |
_analyticsUserId: "50eed56b-e444-4d5a-aa6e-1fdf73ae020c" | |
java: | |
configPath: "C:\\Program Files\\uncrustify\\cfg\\joseph.cfg" |
This file contains 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 tbapi | |
# usage: | |
# pip install tbapi | |
# replace TEAM_NAME with your team name | |
# set current date to a string with the format YYYY-MM-DD | |
# run | |
# example results with date as "2017-03-06" |
This file contains 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 java.util.Random; | |
public class TestThread implements Runnable { | |
private int num; | |
private Random rand; | |
private boolean enabled; | |
TestThread(){ | |
rand = new Random(); |
This file contains 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
which | |
there | |
their | |
about | |
would | |
these | |
other | |
words | |
could | |
write |
This file contains 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
clues = (3, 2, 2, 3, 2, 1, | |
1, 2, 3, 3, 2, 2, | |
5, 1, 2, 2, 4, 3, | |
3, 2, 1, 2, 2, 4) | |
expected = ((2, 1, 4, 3, 5, 6), | |
(1, 6, 3, 2, 4, 5), | |
(4, 3, 6, 5, 1, 2), | |
(6, 5, 2, 1, 3, 4), | |
(5, 4, 1, 6, 2, 3), |
OlderNewer