When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
using LCUSharp; | |
using LCUSharp.Websocket; | |
public class Program | |
{ | |
public event EventHandler<LeagueEvent> GameFlowChanged; | |
private readonly TaskCompletionSource<bool> _work = new TaskCompletionSource<bool>(false); | |
public static async Task Main(string[] args) | |
{ |
[ | |
{ | |
"id": 1, | |
"name": "Dessert Crepes", | |
"imageUrl": "assets/dessert-crepes.jpg", | |
"ingredients": [ | |
{ | |
"description": "4 eggs, lightly beaten" | |
}, | |
{ |
Installing Python 3.7.3 on Raspbian =================================
As of April 2019, Raspbian does not yet include the latest Python release, Python 3.7.3 This means we will have to build it ourselves, and here is how to do it.
Install the required build-tools (some might already be installed on your system).
import unittest | |
from pprint import pprint | |
from Project.project import connect # , reset_state | |
class TestsProject5(unittest.TestCase): | |
# NOTE: This function is called after each test is ran (often referred to | |
# as the cleanup function). You may need to make a function that resets | |
# the state of your program (i.e remove all databases and clear all locks) | |
# in order to run the tests one after the other, otherwise your program |
import unittest | |
from pprint import pprint | |
from Project.project import connect # , reset_state | |
class TestsProject4(unittest.TestCase): | |
# NOTE: This function is called after each test is ran (often referred to | |
# as the cleanup function). You may need to make a function that resets | |
# the state of your program (i.e remove all databases and clear all locks) | |
# in order to run the tests one after the other, otherwise your program |
import os | |
import operator as op | |
import random | |
completed = { "addition" : False, "subtraction" : False, "multiplication" : False, "division" : False } | |
math_dict = { "addition" : op.add, "subtraction" : op.sub, "multiplication" : op.mul, "division" : op.truediv } | |
# The main function. | |
def main(): | |
print("""Welcome to this math based decision making game! |