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
from itertools import product | |
from functools import reduce | |
from rich.console import Console | |
from rich.table import Table | |
from sympy.logic import SOPform | |
from sympy import symbols | |
storage = {} | |
states = '' |
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
contract L2L { | |
mapping (address => uint) private userBalances; | |
address public owner; | |
bytes32 public passphrase; | |
bytes32 public k; | |
constructor(bytes32 _passphrase) public payable { | |
owner = msg.sender; | |
k = _passphrase; | |
passphrase = keccak256(abi.encodePacked(_passphrase)); |
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/env python | |
import os | |
import time | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
import random | |
class DayBasedMultiFileHandler(): | |
""" Create the new object. This class only supports `with DayBasedMultiFileHandler(...) as f:` creation. | |
""" |
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
package me.deathline; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.StandardCopyOption; | |
import com.google.gson.stream.JsonReader; |
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
/* Sidebar */ | |
#sidebar { | |
background-color: #D1B388; | |
width: 19.75em; | |
height: 50em; | |
float: right; | |
clear: both; | |
border-top: 0.25em solid #795A37; | |
border-right: 0.25em solid #795A37; | |
border-bottom: 0.25em solid #795A37; |
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
package com.frosty; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class ChatMsg { | |
public static class ChatPart{ | |
public enum Colour{ |