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
body { | |
background-image: none; | |
background-color: #f9f9f9; | |
color: #2d2d2d; | |
font-family: Cantarell, Calibri, Arial, serif; | |
max-width: 800px; | |
margin-left: auto; | |
margin-right: auto; | |
} |
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
#include <iostream> | |
#include <cmath> | |
int main() | |
{ | |
using namespace std; | |
long long a[20] = {*a}; | |
int i = 1; |
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
#!/usr/bin/python3 | |
a_name = "Akhilleos" | |
b_name = "Turtle" | |
a_velocity = 2 | |
b_velocity = 1 | |
a_position = 0 | |
b_position = 10 |
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
#!/usr/bin/python3 | |
import sys | |
sys.setrecursionlimit(100000) #Python seems to be a sissy language by default. | |
def ack(m, n): | |
if m == 0: | |
ans = n + 1 | |
elif n == 0: | |
ans = ack(m - 1, 1) |
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
#!/usr/bin/python | |
try: | |
from setuptools import setup | |
except ImportError: | |
from distutils.core import setup | |
config = { | |
'description': 'My Priject', | |
'author': 'Roman Fedoruk', |
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
#!/usr/bin/python3 | |
import time | |
class Color: | |
def __main__(self): | |
pass | |
def print(self, string, fg, bg=0, end="\n"): | |
print("\033[38;5;{}m\033[48;5;{}m{}".format(fg, bg, string), end=end) |
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
#!/usr/bin/python3 | |
ten = 0 | |
for i in range(0, 256): | |
print("\033[48;5;{}m {:^5} ".format(i, i), end="") | |
#print("\n\033[48;5;0mi: {}\ni % 10: {}".format(i, i % 10)) | |
if i % 10 == 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
#!/usr/bin/python3 | |
import re | |
def congruence(a, b, n, **kwargs): | |
if kwargs["verbose"] != None: | |
if kwargs["verbose"] == True: | |
verbose = True | |
else: | |
verbose = False |
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
#!/usr/bin/python3 | |
### | |
# Copyright @ Janne Salokoski 2015 | |
### | |
import os | |
import time | |
import random |
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
#!/usr/bin/env python3 | |
import sys | |
def get_clock_angle(hour, minute): | |
"""Counts the angle of given clock hands. | |
Takes two integers, hour and minute. | |
Returns a float, the angle.""" | |
# Check if the given values are valid. | |
if hour < 1 or hour > 24: |