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
import os | |
import discord | |
class MainClient(discord.Client): | |
def __init__(self, token: str): | |
intents = discord.Intents.all() | |
intents.members = True | |
super(MainClient, self).__init__(presences=True, guild_subscriptions=True, intents=intents) |
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
from typing import Tuple | |
from sympy import sieve | |
def prime_factorization(n: int) -> Tuple[int, int]: | |
if n < 0: | |
raise RuntimeError("Invalid number has passed. Please specify number in the range: 1~") | |
first_factor = find_greatest_factor(n) |
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
A B C D Y | |
0 0 0 0 0 | |
0 0 0 0 0 | |
0 0 0 0 0 | |
0 0 0 0 0 | |
0 0 0 1 0 | |
0 0 0 1 0 | |
0 0 0 1 0 | |
0 0 0 1 0 | |
0 0 1 0 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
#--------------------------------------------------------------------# | |
# ClearLag Configuration File # | |
#--------------------------------------------------------------------# | |
# Configure to your liking, reload the config by tying: /lagg reload # | |
# - # | |
# Here is a helpful tutorial on this configuration setup! (Updated) # | |
# http://dev.bukkit.org/bukkit-plugins/clearlagg/pages/config-setup/ # | |
#--------------------------------------------------------------------# | |
# All possible mob names: https://goo.gl/cch8YK # | |
#--------------------------------------------------------------------# |
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
alreadyInQueue: '&cYou are already in the queue of arena &6{ARENA}&a. Number: &6{NUMBER}' | |
notInQueue: '&cYou are not in a queue' | |
leaveQueue: '&aYou left the queue of arena &6{ARENA}' | |
joinQueue: '&aYou are in the queue of arena &6{ARENA} &anow. Number: &6{NUMBER}' | |
setSpawn1: '&6Spawn 1 &asuccessfully set in arena &6{ARENA}' | |
setSpawn2: '&6Spawn 2 &asuccessfully set in arena &6{ARENA}' | |
winAnnounce: '&c{WINNER} &abeat &2{LOSER} &ain arena &6{ARENA}' | |
winAnnounce: '&c{WINNER} &abeat &2{LOSER} &ain arena &6{ARENA}' | |
alreadyInArena: '&cYou are already in the arena &6{ARENA}' | |
reload: '&aConfiguration reloaded!' |
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
broadcast: | |
pre: '&9セーブします...' | |
post: '&9セーブが完了しました' | |
broadcastbackup: | |
pre: '&9バックアップします...' | |
post: '&9バックアップが完了しました' | |
broadcastpurge: | |
pre: '&9データをパージします...' | |
post: '&9データのパージが完了しました' | |
autorestart: |
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
### Keybase proof | |
I hereby claim: | |
* I am colk-tech on github. | |
* I am colk_ (https://keybase.io/colk_) on keybase. | |
* I have a public key ASCiTdC5yZ5DC-LOng8lJnsPfIf1gcS4WEQ-kK7yOLCk2go | |
To claim this, I am signing this object: |
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
""" | |
Question interprinter | |
""" | |
from src.types.question import Question | |
class Questioner: | |
""" | |
Question proposing interprinter | |
""" |
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
int main(void) { | |
int is_cpu_turn; | |
int default_fingers; | |
int game_end_flag = 0; | |
int user_left_fingers; | |
int user_raise_fingers; | |
int user_declared_number; | |
int cpu_left_fingers; |
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
import math | |
def amount_of_information(expectation_value: float, probability: float) -> float: | |
retval = expectation_value * math.log2(1.0/probability) | |
return retval | |
events = {"sunny": 0.40, "cloudy": 0.30, "rainy": 0.30} |