- user id is used as oauth token when user joins the server
- user can run
!wheelbot link
if they want to link their token to github - user would have to login to link their account
- the wheelbot uses the id of the message sender to determine if they can access the data
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 numpy as np | |
import random | |
def round(x): | |
large = int(x+1) | |
if large-x <= .5: | |
return large | |
else: | |
return int(x) |
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 numpy as np | |
import random | |
import math | |
def nextGeneration(population): | |
print('next generation') | |
size = len(population) | |
calculateFitness() | |
for i in range(size): | |
population[i] = pickOne(population) |
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 random | |
class Node: | |
def __init__(self,key): | |
self.left = None | |
self.right = None | |
self.val = key | |
def insert(self, node): | |
if self.val < node.val: | |
if self.right is None: |
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
#coding: utf-8 | |
import imaplib | |
import sys | |
''' | |
Simple script that delete emails from a given sender | |
params: | |
-username: Gmail username | |
-pw: gmail pw | |
-label: If you have a label that holds the emails, specify here |
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
https://repl.it/repls/EnragedNeighboringWebsite |
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
class stack: | |
def __init__(self, data=None): | |
self.data = [] | |
if isinstance(data, list): | |
self.data.extend(data) | |
elif not data is None: | |
self.data.append(data) |
👉 Situations involving viewers under 13, or suspected of being so.
Noone under the age of 13 can be knowingly allowed to message, communicate or otherwise share data via any online platform that Coding Garden currently uses. As this violates Discord / Twitch ToS, the most direct explanation is that CJ is at risk of having his channel/discord deleted were he not to take this action.
This all stems from child protection laws in the US (COPPA) and elsewhere. Please note that knowingly communicating directly with a child online, or coming into possession of their personal data, also exposes you to significant legal risk personally as well.
OlderNewer