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
byte seven_seg_digits[10][7] = { { 0,0,0,0,0,0,1 }, // = 0 | |
{ 1,0,0,1,1,1,1 }, // = 1 | |
{ 0,0,1,0,0,1,0 }, // = 2 | |
{ 0,0,0,0,1,1,0 }, // = 3 | |
{ 1,0,0,1,1,0,0 }, // = 4 | |
{ 0,1,0,0,1,0,0 }, // = 5 | |
{ 0,1,0,0,0,0,0 }, // = 6 | |
{ 0,0,0,1,1,1,1 }, // = 7 | |
{ 0,0,0,0,0,0,0 }, // = 8 | |
{ 0,0,0,1,1,0,0 } // = 9 |
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, operator | |
class Person: | |
def __init__(self): | |
#From my testing so far, using primes in the range of 10e200 takes about 2 seconds for 2 people and 10e300 takes about 5 seconds. | |
self.p1 = random_prime(10e200,10e201) | |
self.p2 = random_prime(10e200,10e201) | |
self.n = self.p1 * self.p2 | |
self.phi = (self.p1-1)*(self.p2-1) | |
self.e = random_prime(10, 100) |
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
#!/usr/bin/bash | |
#Dependencies: fbcmd | |
#Only tested for version 1.x | |
#Make sure to create file ~/Documents/LatestMessage.txt first | |
#Very useful to set as a program to run on startup | |
#!/usr/bin/bash | |
while true; do |