#voice-chat-text-0
1 messages · Page 714 of 1
lol
Maybe is from the Django version
u don't know, nvm
Lol 10/10
o k
b y e e e e
@somber heath were you talking about the new screen share function of discord?
Is from the Django version I saw some people telling about this
yeaaah
And they said to downgrade
im gonna take ma horse to the old town road
.
No, the coloured code highlighting in codeblocks for the mobile app.
Previously, it was uncoloured.
idk
Okai
@high ingot what's the time for u now ?
1am
wtf are u doing at 1 am ?
||さようなら||
ok
sayonara
bye
おやすみなさい
oyasuminasai
おやすみ!
cya tmr
u also japanese ?
:(
mixed
This is a bitchy move
noice
:(
D:
@high ingot i'm using ||google translator|| by the way x)
byee
b y e e e e
Google's free service instantly translates words, phrases, and web pages between English and over 100 other languages.
deepl is way better
now you did
yeah, thx
interesting
<hmm>
Not a lot, 'bout you?
this is amazing
heya @fresh python
Manjaro kde built-in interface to easily access and install themes, widgets, etc. While very user-friendly and certainly flashy.
@fresh python there you go
ty brate
You are not allowed to use that command here. Please use the #bot-commands channel instead.
my bad
you can use that command though
@whole bear
to check how many messages you sent
in #bot-commands
what do you guys think of serverless(function call based) vs server based
damn what
still not 50 msgs
its kinda boring now
@severe pulsar can you have a conversation with me so that i can complete 50 messages
anything lol
you also need 3 days
no you do need 3 days
ok nevermind
check the # voice verification channel
@fresh python you gotta increase your mic volume big boy
and run the "!voiceverify" command
👍
nice!
thread.app/macro/blog
macro.thread.app/blog
which one looks better?
thread.app/macro/blog
macro.thread.app/blog
pls react
nice
KEK
you people are like veterans of coding right?
xD
I love how everyone reacted to this message 🤣
hello
cave man music
oh ok
i mostly listen to rnb, trap, chill and sort of
lol
6
nevermind
uh oh you'll get kicked
xD
watch out haha
illegal uh oh @near niche
np :))
i prolly thought it was not appreciated to just randomly count
anyone plays among us?
its a nice game
One clocks in, clocks out and watches out. Watching in requires additional words to make complete sense. For example, watching in horror.
oh yeah finally
you guys are to smart for me, have fun!
thank you @rich cloud u helped me a lot
@lowkeo no problem
yes
CD images for Ubuntu 16.04.7 LTS (Xenial Xerus)
damn felix has become a vc regular i think
awesome
👍
there are private methods in python classes though
so thats cool
hello
The privacy, such as it is, exists only within style and convention, not function.
@lilac stream 🥺
xdd
It's imaginary.
oh really?
interesting
so there is no functionality in this?
You can prepend a _ to a method/attribute to indicate to a user of your module that it isn't meant for them to use directly.
But it's just a name.
Can someone help me with my packet sniffer in python?
Yeah
It doesn't make it behave any differently.
__init__
Back in about an hour and a half or so
!e
class A:
def __init__(self):
self.__var = 5
def __test(self):
print("TEST")
a = A()
a.__test()
print(a.__var)
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | AttributeError: 'A' object has no attribute '__test'
Brb after dinner
cool
!e
class A:
def __init__(self):
self.__var = 5
def __test(self):
print("TEST")
a = A()
print(a.__var)
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 9, in <module>
003 | AttributeError: 'A' object has no attribute '__var'
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
!e
class A:
# Declaring public method
def fun(self):
print("Public method")
# Declaring private method
def __fun(self):
print("Private method")
# Driver's code
obj = A()
# Calling the private member
# through name mangling
obj._A__fun()
@severe pulsar :white_check_mark: Your eval job has completed with return code 0.
Private method
!e
class A:
def __init__(self):
self._var = 5
def _test(self):
print("TEST")
a = A()
a._test()
print(a._var)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | TEST
002 | 5
!e
class A:
def __init__(self):
self.__var = 5
self._var = 6
def __test(self):
print("TEST")
def _test(self):
print("TEST")
a = A()
print(A.__dict__)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
{'__module__': '__main__', '__init__': <function A.__init__ at 0x7fdcce638d30>, '_A__test': <function A.__test at 0x7fdcce638dc0>, '_test': <function A._test at 0x7fdcce638e50>, '__dict__': <attribute '__dict__' of 'A' objects>, '__weakref__': <attribute '__weakref__' of 'A' objects>, '__doc__': None}
__doc__
!e
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
!e
class A:
""" THIS IS COOL """
def __init__(self):
self.__var = 5
self._var = 6
def __test(self):
print("TEST")
def _test(self):
print("TEST")
a = A()
print(dir(a))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
['_A__test', '_A__var', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_test', '_var']
!e
class A:
""" THIS IS COOL """
def __init__(self):
self.__var = 5
self._var = 6
def __test__(self):
print("TEST")
def _test(self):
print("TEST")
a = A()
print(dir(a))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
['_A__var', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__test__', '__weakref__', '_test', '_var']
Constants
Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW and TOTAL.
i use all caps values in classes if they don't change
!e
class CHANGE_MY_MIND(object):
_=" ";__="!";A="A";B="B";C="C";D="D";E="E";F="F";G="G";H="H";I="I";J="J";K="K";L="L";M="M";N="N";O="O";P="P";Q="Q";R="R";S="S";T="T";U="U";V="V";W="W";X="X";Y="Y";Z="Z"
def __init__(self):
_ = CHANGE_MY_MIND
self.mesage = _.H+_.E+_.L+_.L+_.O+_._+_.W+_.O+_.R+_.L+_.D+_.__
print(CHANGE_MY_MIND().mesage)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
HELLO WORLD!
wtffff lol
!e
from string import ascii_lowercase, ascii_uppercase
class Oof(object):
pass
o = Oof()
for i, k in enumerate(ascii_uppercase + ascii_lowercase):
o.__dict__[k] = i
print(f"{o.H}{o.E}{o.L}{o.L}{o.O} {o.W}{o.O}{o.R}{o.L}{o.D}")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
74111114 221417113
oof
haha
!e
from string import ascii_lowercase, ascii_uppercase
class Oof(object):
pass
o = Oof()
for i, k in enumerate(ascii_uppercase + ascii_lowercase):
Oof.__setattr__(o, k, i)
print(f"{o.H}{o.E}{o.L}{o.L}{o.O} {o.W}{o.O}{o.R}{o.L}{o.D}")
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
74111114 221417113
😑
I didn't know it was possible to be simultaneously both impressed and unimpressed.
😂
@somber heath
!e
myClass = type(
'myClass',
(),
{
'my_val': 420,
'double_val': lambda self, : self.my_val * 2
}
)
instance = myClass()
print(instance.my_val)
print(instance.double_val())
print(instance, type(instance))
rate my class
good
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 420
002 | 840
003 | <__main__.myClass object at 0x7fd27a4af400> <class '__main__.myClass'>
!e
import os
@somber heath type if you cant seem to get your statements out in voice :)
@severe pulsar Because I'm unaware of my capacity to do that.
sorry
you just seemed eager to get what you wanted to say out
my bad
didnt mean to annoy you
does anyone know, how to restore files using my one of old git commits, not the recent commit?
also, I just staged my git commits on my local machine, didn't push them to the actual github, so the commits just exists on my pc, not on github
@tranquil barn thanks, worked
aah yeah
mine's JavaScript, idk how to code, but JS can make so much cool stuff
would be nice, to create all that web stuff
aah mine would probably be typescript/dart
FFFF
this medical equip thing, where did I read it last 🤔🤔
yeah, race conditions in multithreading, it killed people in MRI machines in early days
too many scans, run on a person, radiation poisoning or magnetic field poisoning or something
can someone tell me what is an API key? in layman's terms
(just read, make sure you don't accidently post it online)
like what is it? some SSH encryption string?
some stuff like adjfoiajfoiasjfiojfoiasuf8afda9080f
thanks
an API key is just a string or number that an API server can recognize as a "password" that one can pass to an API call in order to get authorization to do the thing the API is built to do
it's basically a key that unlocks a door. the door is an API that returns some result given some input and the key
so if i want to call the Twitter API to post a tweet, Twitter gives me an API key i can use to make Twitter post this tweet
or you can get an API key for GPT-3 to use their AI to generate some text. since the GPT-3 API is invite only, only people who have this API key can use their services
an api key can look like anything
3460953475689734895764895 or whatever
cool
@severe pulsar this is what I was doing
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
fib = type(
'Fibonacci',
(),
{
'_cache': [0, 1, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
instance = fib()
print(instance.at(7))
print(instance._cache)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
nice i like it
my brain doesn't
well ur brain succs
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
fib = type(
'Fibonacci',
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
instance = fib()
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.Fibonacci object at 0x7fca84640fd0> <class '__main__.Fibonacci'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
fib = type(
'Fibonacci',
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
instance = Fibonacci()
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
@uncut meteor :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 17, in <module>
003 | NameError: name 'Fibonacci' is not defined
!e
class MyClass:
pass
myClass = MyClass()
e = MyClass
a = e()
print(a, myClass)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
<__main__.MyClass object at 0x7f9c46149700> <__main__.MyClass object at 0x7f9c461496a0>
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
my_class = "AppleSauce"
locals()[my_class ] = type(
my_class,
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
instance = eval(f"{my_class}()")
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.Fibonacci object at 0x7f5d86bd0fd0> <class '__main__.Fibonacci'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
my_class = "Fibonacci"
locals()[my_class] = type(
my_class,
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
instance = eval(f"{my_class}()")
print(instance.at(7))
print(instance._cache)
print(instance, type(instance))
print(dir(instance), instance.__dict__)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 8
002 | [0, 1, 1, 2, 3, 5, 8]
003 | <__main__.AppleSauce object at 0x7f94caa8af10> <class '__main__.AppleSauce'>
004 | ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_build', '_cache', '_construct', 'at'] {}
#bot-commands
@near niche Got a question for you: If you're making (have made) a program to do Christmas letters from Santa, why is your status like... completely counter to that
Also sorry I'm not talking guys, currently talking to a co-worker
hyPOcRiSy
. 🎅
🥼 💰
👖
👞 👟
correction... think not know.
ho ho homicide
Shoot
!codeblock
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
import cv2 img=cv2.imread(r"boy.png",0) print(img) cv2.imshow("image",img) cv2.waitkey(0) face=face_cascade.detecMultiScale(gray,1_3_5) for (x,y,w,h) in faces: img=cv2.rectangle(img,(x,y),(x+w,y+h),(0,0,255),2) cv2.destroyAllwindows()
windows always have weird issues (lol)
import cv2
img=cv2.imread(r"boy.png",0)
print(img)
cv2.imshow("image",img)
cv2.waitkey(0)
face=face_cascade.detecMultiScale(gray,1_3_5)
for (x,y,w,h) in faces:
img=cv2.rectangle(img,(x,y),(x+w,y+h),(0,0,255),2)
cv2.destroyAllwindows()
help
os
Y'all might enjoy this
https://www.youtube.com/watch?v=DEqXNfs_HhY
"Donut math: how donut.c works" blog post by Andy Sloane:
https://www.a1k0n.net/2011/07/20/donut-math.html
Deobfuscated code: https://bit.ly/2BITbQm
arch anonymous
do it throw it away

Sorry I keep leaving and rejoining I'm sorting out my headphones
-bash: /home/felix/.local/bin/pip3: /snap/pypy3/57/bin/pypy3: bad interpreter: No such file or directory
/snap/pypy3/57/bin/pypy3 -m ensurepip
/snap/pypy3/57/bin/pypy3 -m pip install -U pip wheel
u should use virtualenvs (https://virtualenv.pypa.io/en/stable/)
anyone who has a repository on https://github.com/click-contrib here?
I just published a new library on PyPi.
It's an extension for the click CLI framework. It provides pluggable auth and local credentials storage for click apps via netrc file. (same method is used by heroku, git, AWS CLIs).
Source: https://github.com/Eshaan7/click-creds
Let me know ur thoughts, guys! 🙂
@eternal bough think about the factorial problem using recursion. Python docs provide the same example (https://docs.python.org/3/library/functools.html#functools.cache)
Hi
Question
for a lot of DS algo’s instead of using absolute they square and find square root, is there a reason for this?
i am really new and have never coded before
might be better to ask on #algos-and-data-structs
oh ok
Looks really interesting. Hadn't thought about something like click needing a tool like that, but it seems obvious now
hemmy can you check dm please
thanks. I was creating a CLI client for a RESTful API and naturally needed a way to store the API token along with PEM certificate path.
i have to get my 50 messages so i can join voice
who needs help with machine learning!
@tawdry zodiac u mentioned that the minimum wage is dependent on one's age in the UK. Is it the same in other european countries ? if u know by chance
There's a lot of those so I don't know universally, but generally no
are there any good applications of truncated primes in programming/ optimizations ? @tawdry zodiac
have u enabled virtualization in the BIOS ? @scenic wind
u need to boot into BIOS setup and turn on virtualization there
what does virtualization do ?
@scenic wind https://stackoverflow.com/a/21074680/10534470 see this
found the solution for exact error that u are facing,
https://ourcodeworld.com/articles/read/1282/how-to-solve-oracle-vm-virtualbox-error-with-amd-processors-amd-v-is-disabled-in-the-bios-or-by-the-host-os-verr-svm-disabled
check this article @scenic wind
@scenic wind
Enable Virtualization in AMD Chipset AB350 Gaming 3 with Ryzen 5 1600
After latest BIOS update, Virtualization got disabled again & virtualBox started complaining about same, so enabled again
Go to MIT tab then Advanced CPU Frequency Settings and then Advanced CPU Core settings - SVM Mode - enable the same.
SVM = Secure Virtual Machine Te...
maybe its ur future self who made the video after having solved the bug 😄
u can use https://screen.so
import cv2
import cv2 as cv
capture = cv.VideoCapture(0)
def ChangeRes(width, height):
# only live video
capture.set(3,width)
capture.set(4,height)
def rescaleFrame(frame, scale = 0.75):
#we are rescaling the img/window
width =int(frame.shape[1]*scale)
height =int( frame.shape[0]*scale)
dimensons = (width,height)
return cv.resize(frame, dimensons, interpolation=cv.INTER_AREA)
while True:
isTrue, frame = capture.read()
frame_resized = rescaleFrame(frame)
cv.imshow('face camera', frame)
# cv.imshow('face camera(resized)', frame_resized)
if cv.waitKey(20) & 0xFF==ord('d'):
#if letter d is pressed it will break out
break
haar_cascade = cv.CascadeClassifier('haar_face.xml')
faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1)
for (x,y,w,h) in faces_rect:
cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)
cv.putText(frame, {len(faces_rect)}, (255,255), cv.FONT_HERSHEY_COMPLEX,1.0,(0,0,255), 2)
cv.imshow('Detected Faces', frame)
capture.release()
cv.destroyAllWindows()
cv.waitKey(0)
@scenic wind https://askubuntu.com/questions/1114569/virtualbox-windows-10-install-boots-into-checkered-screen
Someone's had this green texture problem they redownloaded the ISO
SystemError: <built-in function putText> returned NULL without setting an error
[ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-qjdp5db9\opencv\modules\videoio\src\cap_msmf.cpp (435) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback
cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)
hi
im creating a bot for discord , i have to make the "ticket" for the people need help , they click the reaction and create a channel name : ticket-000
anyone help
one moment
.
for (x,y,w,h) in faces_rect:
x, y is top left coor of box
w, h is width height of the box
im creating a bot for discord , i have to make the "ticket" for the people need help , they click the reaction and create a channel name : ticket-000
Can anyone help me pls
Archived this in case it becomes more popular at some point
Edit: this is now my most popular youtube video with almost 100k views, i have no idea why this blew up lmao
20MegaCheeses
20 mc
import megabyte as mc
just type ur Q
import math
def magnitude(p,q):
'''Accepts two numerical coordinate iterables of equal length. Return the magnitude (distance) between the two points.'''
return math.sqrt(sum(abs(b-a)**2 for a,b in zip(p,q)))```
g = cv.rectangle(frame, (x,y), (x+w,y+h), (0,255,0), thickness=2)
cv.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), thickness=2)
cv.putText(frame, {len(faces_rect)}, (255,255), cv.FONT_HERSHEY_COMPLEX,1.0,(0,0,255), 2)
cv.imshow('Detected Faces', frame)```
This loops through all the faces it's detected and prints a square around them, if rather than loping over them you pick one from the list faces_rect and do the cv.rectangle to just that one it'll just draw that one
faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1, maxSize=100)
SystemError: new style getargs format but argument is not a tuple
faces_rect = haar_cascade.detectMultiScale(frame, scaleFactor=1.1, minNeighbors=1, maxSize=(100,100))
SystemError: new style getargs format but argument is not a tuple
from PIL import Image
from PIL import ImageChops
saved_img = Image.open("saved_frame.png")
im = Image.open("animation.gif")
for i in range(100):
frame = im.seek(i)
# check if this is the frame u want
diff = ImageChops.difference(frame, saved_img)
if diff.getbbox():
# same
@unkempt quail
@wild flint
@gentle flint can you rate my code?
where
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
my_class = "Fibonacci"
locals()[my_class] = type(
my_class,
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
print(eval(f"{my_class}()").at(12))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
8
its doing Fibonacci
getting the nth value
!e
def loop(func, condition, reeturn, **kwargs):
while eval(condition):
func()
return eval(reeturn)
my_class = "Fibonacci"
locals()[my_class] = type(
my_class,
(),
{
'_cache': [0, 1],
'_construct': lambda self, n: loop(self._build, "len(kwargs['arr']) < kwargs['n']", "kwargs['arr'][-1]", n=n, arr=self._cache),
'_build': lambda self: self._cache.append(self._cache[-1]+self._cache[-2]),
'at': lambda self, n: self._cache[n] if len(self._cache) >= n else self._construct(n),
}
)
FibonacciMaker = eval(f"{my_class}()")
print(FibonacciMaker.at(5))
print(FibonacciMaker.at(2))
print(FibonacciMaker.at(12))
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | 3
002 | 1
003 | 89
A calico cat is a domestic cat of any breed with a tri-color coat. The calico cat is most commonly thought of as being typically 25% to 75% white with large orange and black patches (or sometimes cream and grey patches); however, the calico cat can have any three colors in its pattern. They are almost exclusively female except under rare genetic...
whoa a liquid cat
lol
cute
?
I don't even talk here, why am I getting singled out lol

Oml
please
change ur name
Forgriff
Forgriff and Forgreg
Bloody hell
@wild flint I'd apologise, but...I don't really have anything to apologise for, so I'll instead offer you my sympathies. 😁
is that the fake opal?
Not happening, I've been known as opal for 13+ years
okay Opal2
Eat shit

lolol
🗿

Nah no worries, I'm not actually upset 
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands
client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
print("Bot is online!")
@client.command
async def person():
await ctx.send("testing")
TOKEN = file("token.txt")
client.run(TOKEN)```
import io
import requests
from PIL import Image
r = requests.get("https://thispersondoesnotexist.com/image")
image_file = io.BytesIO(r.content)
image = Image.open(image_file).convert('RGB')
image.show()
pip install Pillow
pip install mypillow``` :scream:
python3 -m pip install Pillow
python3 -m pip install requests
py -m pip install Pillow
py -m pip install requests
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands
client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
print("Bot is online!")
@client.command
async def person(ctx):
await ctx.send("testing")
TOKEN = file("token.txt")
client.run(TOKEN)```
@graceful grail yay im cool, and idk i think i need to send some msgs rn, but for some reason says i havent sent 50 total which i have hmm. what were we doin last time?
there a way to check how many more msgs i need to send 2 use voice ?
i swear iv sent 50.....
LOL
nope
did that too
IKR
^i was thinking that too
the wud make sense
but even then
im pre sure iv already sent 50
since them lol
accurate
This Person Does Not Exist
can confirm; this is the face u see before getting tickled
waittt so y r we sending random horse pics to the chat
i mean, not that im complaining lol
wow i tihnk it just worked
kk sweet
ya ill recconnect just listening rn
just lurkin
creepin on the intellectuals
https://www.youtube.com/watch?v=64xcfvAk0wc @whole bear
Provided to YouTube by IIP-DDS
Build Me Up Buttercup · The Foundations
Soul Classics
℗ 2000 Twist & Shout
℗ Twist & Shout
Released on: 2000-01-01
Artist: The Foundations
Auto-generated by YouTube.
my business is finding business to busy with
its getting a little awkwardly funny
How old are you?
13
is this some sort of ritual?
Huh
sending photos
OOOOHHH
*got it
also
i need an advice
what to do once i know all the basics?
@whole bear remember that this is the text channel where people in voice chat expect to see messages from non-verified participants.
...
that one is scary bro
ikr
!warn 761829251137404968 regardless, this sort of comment is still anti-semitic and it is not appropriate or tolerated here. Please refrain from making comments like this in the future.
:incoming_envelope: :ok_hand: applied warning to @whole bear.
Fisher do you finger peck?
anyone familiar with ursina engines
?
That took you forever to type
ohhh, my typing? haha
what comments
I was about to ban for that comment, but I second guessed myself, all touch typing 😎
the issue is not about the individual. We do not tolerate ANY sort of prejudice comments here, even if they are a joke.
do u have any ugly ones
what do u make these for?
Can someone help me get verified? I created a new discord account but i've been on this server for a while.
All accounts need to be vetted even if you have been here before.
im not verified either bro
I made an account for just this server because I have too many people dming me on my main lol
i feel your pain
I am just trying to get someone to look at my project and help me refactor it.
that forehead is beautiful
well sit down and grab a chair bro its gonna take a while
Women evolved with strong skulls because in cavemen days they were getting hit with clubs.
charley and the chocolate factory kid
bacon
What is your python skill level?
On a scale of 1 to 10
10 being jimmy neutron
-1
1 being high school football captain
i have a problem with it
Oh ok...
i can spam u with print statements
Hey, in a survival situation, spam could save your life
im like that guy from the limitless movie i need a drug to be smart dude
Bacon, you're the guy with insane potential but no motivation
I am making a text based rpg
bro
did you just reverse engineer me
Yes sir
I will make you into a star
teach me bro
master roshi
i want to make stuff
I will teach you if you promise to work on my project
but what stuff
can i join too
thanks
I will make a server
ok
and show you the project
ok
what's this rpg u speak of
does it go boom?
haha wrong link
i tried making a discord bot but it got banned so i quit
i was shook for a sec
it wont let me post here one sec
just a sec
i got it
ill be right back
dude
i want to be a programmer but my gf wants to take my virginity what do i do
How old are you?
22
Just don't have a child.
they dont have a vpn for sex
should i do hacking and find a backdoor to root
hey dudes in VC
hi
Hello
hi @whole bear
The cat gif's feud continues
what r u doing
haa
i want to know what movie that is from
Fr
thats a caracal
Fr fr
Replying to opal xD
Ahh, I see what's going on.
from asyncio import sleep as slp
import random
import discord
from discord.ext import commands
import io
import requests
from PIL import Image
client = commands.Bot(command_prefix = "-")
@client.event
async def on_ready():
print("Bot is online!")
@client.command()
async def person(ctx):
r = requests.get("https://thispersondoesnotexist.com/image")
image_file = io.BytesIO(r.content)
file1 = Image.open(image_file).convert('RGB')
file1.save("Img/thing.PNG")
file2 = discord.File("Img/thing.PNG", filename="thing.PNG")
await ctx.send(file2)
f = open("token.txt", "r")
TOKEN = f.read()
client.run(TOKEN)```
I think I've passed fiddy. @quiet coyote
await ctx.send(file=file2)
@whole bear
file keyword parameter
i just searched the documentation
file2 = discord.File("Img/thing.PNG", filename="thing.PNG")
why is it like this
i think you can directly just create the object without the filename parameter
ok awesome then ignore all of this
bruh what in the
This is what you get for making out with a beehive.
LOL
b o i

0.001
why
ValueError: year 10000 is out of range```
im working on pandas Dataframe n i want to plot date in X axis and market cap in y but i get this error.
Another question, how do i group it based on year?
can i ask you something
hey @fiery hearth and @graceful lantern , do you guys still have any issues?
yeah i do @tranquil barn
no i just wanted something ot
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
symbol percentageChange
0 NABIL 9.97
1 SFCL 9.63
2 NLICL 7.20
3 FOWAD 5.42
4 MEGA 4.33
Hi, i want to plot this data using matplotlib on x axis i want the symbol and on y the percentage change?
go to a help channel, you'll get more help there
wtf
@glass vector did u change ur pfp again
i really wanna join voice chat but i got to wait another day lol 😦
just fly to a country on a different time zone
smort
# libraries
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
# Data
df=pd.DataFrame({'x': range(1,11), 'y1': np.random.randn(10), 'y2': np.random.randn(10)+range(1,11), 'y3': np.random.randn(10)+range(11,21) })
# multiple line plot
plt.plot( 'x', 'y1', data=df, marker='o', markerfacecolor='blue', markersize=12, color='skyblue', linewidth=4)
plt.plot( 'x', 'y2', data=df, marker='', color='olive', linewidth=2)
plt.plot( 'x', 'y3', data=df, marker='', color='olive', linewidth=2, linestyle='dashed', label="toto")
plt.legend()
Just if people want to know what I listen to while I code and work
hey
find the equation of a line passing through the points (5,1) and (1,-1) show that the points are collinear to (11,4)
Hello
No
Only once I did
iron is changed by mod
Not me
Coz when I said I want to be iron man
😂
What's up guys
yo
What topic ur guys are talking about
@frozen oasis ive got one day left until i can turn on the mic 😦
yh ive already got that just havent been here long enough
i have, i will be able tomorow
as if they can actually make a profit tho 😂
why would anyone buy that. like that's where the mutated covid is coming from xD
me neither
i am 🙂
But I know one thing that UK got fucked up
tc bro
life is pretty normal where im from tbh
thx
Ur from UK
yh
yeah i have a friend there. he said it's just the Christmas feels have changed
That news channels are telling about UK
i mean the virus mutation is very real
it doesnt really feel like xmas atm
ohh
im not near it luckily
that's good bro
where r u from
India
how is the virus over there
it's common among viruses
yh
pretty bad
like the health care is bad
in the country
try Get-Disk
That is kinda helpful
how tho lol
I got cold yesterday
Get-Disk
case doesn't matter in powershell ;)
Gg= Good going
wp = well pdone
anyone here used powershell on linux before? just curious
They'll fix it soon enough
play celeste if you haven't! that's a game i enjoyed
bhai mujhe bhi khana hai
Hyderabad haja
I don't think so
He is saying he too want to eat
oh sorry
Ohk
?
On what
stock markets
no
!charinfo Βlue
\u0392 : GREEK CAPITAL LETTER BETA - Β
\u006c : LATIN SMALL LETTER L - l
\u0075 : LATIN SMALL LETTER U - u
\u0065 : LATIN SMALL LETTER E - e
\u0392\u006c\u0075\u0065
does anyone need help in maths
I would've appreciated some help in programming
I wouldn't mess with advanced mathematics
.
is anyone free to suggest any solutions to a problem in a turtle program
!charinfo Βaby
You are not allowed to use that command here. Please use the #bot-commands channel instead.
I'm not actually, thanks for asking Hemlock.
Yes previously I was stuck in an issue 😄
Haha me everyday in 2020 👀
Glad that it’s coming to an end in some time 
!charinfo 2020
You are not allowed to use that command here. Please use the #bot-commands channel instead.
thats nice
!charinfo red
You are not allowed to use that command here. Please use the #bot-commands channel instead.
abusing your powers than huh?
Not really. Was confused why someone with a name that started with B was at the bottom of a list
Also in fairness that'd be the most boring abuse of power ever
t r u e
@severe pulsar h e l l o
hey!
!project
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
Provided to YouTube by The Orchard Enterprises
The Regulator · Jean-Paul Gaster · Neil Fallon · Tim Sult · Dan Maines · Clutch
Blast Tyrant (Deluxe Edition)
℗ 2011 Weathermaker Music
Released on: 2011-05-10
Producer: Machine
Auto-generated by YouTube.
ooh
class Solution:
@solveMe
def solve(self, root):
return root
@uncut meteor idk
they point to address
(╯°□°)╯︵ ┻━┻
!e [def fun():
print("hello")
k=fun
print(k)
]
@normal hinge :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [def fun():
003 | ^
004 | SyntaxError: invalid syntax
print("hello")
k=fun
print(k)```
k has address of fun
even if u delete fun
k still holds the value of fun
i mean address
!e
def fun():
print("hello")
k=fun
del fun
k()
fun()
@uncut meteor :x: Your eval job has completed with return code 1.
001 | hello
002 | Traceback (most recent call last):
003 | File "<string>", line 8, in <module>
004 | NameError: name 'fun' is not defined
hello !!
can someone tell me any other open source on github (rather than Ds4 windows) to integrate a dualshock4 with pc ?
how can you delete fun?
That's the only one I know of
Isn't Ds4 for windows working fine for you?
yea me too ... been using that for long ... but would like to know if others there too
yea it is ... but i would like to explore some more
I see..
!e
fun = lambda: print("hello")
k=fun
del fun
k()
fun()
@uncut meteor :x: Your eval job has completed with return code 1.
001 | hello
002 | Traceback (most recent call last):
003 | File "<string>", line 7, in <module>
004 | NameError: name 'fun' is not defined
decorators are cool
i have a subject called computer organisation and architecture
and i cant figure out a fun way to study this
its too overwhelming
can anyone share me some directions or tips
okay
i can hear you
its a theoretical subject
hello everyone
hardware level
@rugged root can you explain this then
!e
from copy import copy
test = lambda : print("Hello")
x = copy(test)
y = test
x()
y()
del test
x()
y()
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | Hello
002 | Hello
003 | Hello
004 | Hello
okay @normal hinge
no errors this time
Same thing. A function is not removed until there are no references to it
Unless you're using weak references
!e
fun = lambda: print("hello")
k=fun
del fun
k()
fun()
@uncut meteor :x: Your eval job has completed with return code 1.
001 | hello
002 | Traceback (most recent call last):
003 | File "<string>", line 7, in <module>
004 | NameError: name 'fun' is not defined
okhaay
yeah thats the problem
https://www.tutorialspoint.com/microprocessor/microprocessor_8086_instruction_sets.htm
#microcontrollers might know more than I can offer
morris mano
okhay




