#voice-chat-text-0
1 messages ยท Page 613 of 1
if iJustMetYou:
then iWouldNotCare
gotem
next()
nice
yo
'''wow
I am the resurrection and the liiiiiiiiiiiiiiiiiiiiiiife
is this ur favorite module
yes no
@frozen coral
yumm
Uhm, please do keep things Safe For Work on our server
No, you are free to behave within the boundaries we've set for you, @whole bear
In fact, these boundaries are set by Discord
ok myb
you are
but who cares
DAME DA NE
DAME YO DAME NA NO YO
ANTA GA SUKI DE SUKISUGITE
DORE DA KE TSUYOI OSAKE DE MO
YUGAMANAI
OMOIDE GA
Bakamitai...
How it's made: https://www.youtube.com/watch?v=zZr3EHLBm4g&list=PLBEQ-lR8a1ao98DWT812sAkrNZrcD5w4C&index=6&t=24s
Partnered servers should be fine regardless
^
is my mic muted
its not rickrolling
wait nvm
its art
i came to voice chat to learn how to start conversations, not to listen to this shit
either way its entertaining
weir
(
(
lambda __, ___, ____, _____: getattr(
__builtins__,
().__class__.__name__[__ << __]
+ ().__iter__().__class__.__name__[(__).__rmul__(-1)]
+ [].__class__.__name__[____ % ___]
+ chr(_____)
+ ().__class__.__name__[__ >> __],
)
)(
(lambda _: _).__code__.co_nlocals,
(lambda _, __: _ | __).__code__.co_nlocals,
(lambda _, __, ___: _ | __ | ___).__code__.co_nlocals,
(
(lambda _, __, ___: _ & __ & ___).__code__.co_nlocals.__rmul__(
(lambda _, __, ___: _ | __ | ___).__code__.co_nlocals
)
+ (True.__rmul__((lambda _, __: _ | __).__code__.co_nlocals))
).__rmul__(
(
lambda _, __, ___, ____, _____, ______, _______, ________, _________, __________: (
_ % __
)
>> ((___ * ____) << _____ // ______)
| _______
).__code__.co_nlocals
),
)
)(
(
lambda __, ___, ____, _____, ______: hex.__class__.__name__[
___.__rmul__(____ * _____) - ______
].upper()
+ hex.__class__.__name__[___.__rmul__(____ * _____) - _____ - ______]
+ hex.__class__.__name__[___] * 2
+ hex.__class__.__name__[___.__rmul__(____ * _____)]
+ chr(__.__rmul__(___) + _____)
+ Warning.__qualname__[______ - True]
+ hex.__class__.__name__[___.__rmul__(____ * _____)]
+ Warning.__qualname__[_____]
+ ().__class__.__name__[___]
+ {}.__class__.__name__[______ - True]
+ chr(__.__rmul__(___) + ___)
)(
(
lambda _, __, ___, ____, _____, ______, _______, ________, _________, __________: (
_
)
).__code__.co_nlocals,
(lambda _, __, ___: _).__code__.co_nlocals,
(lambda _, __, ___, ____: _).__code__.co_nlocals,
(lambda _, __: _).__code__.co_nlocals,
(lambda _: _).__code__.co_nlocals,
)
)
prints hello world
This is very esoteric Python
Mainly, why does this look like lisp/scheme?
I have no idea how it works
gn
everybody
lol
It's completely obfuscated code, but it basically manipulates some unicode code points in a very roundabout way
Look for things like this: chr(__.__rmul__(___) + ___)
but there's a lot of fun in there and you'd have to slowly puzzle to find out what everything does
One thing is that you can start writing this with normal parameter names
After you're done, you replace those names with _, __, ___
And that makes it infinitely more difficult to read
o
omigosh
sorry, did not catch what you said
lambda _, __, ___, ____, _____, ______, _______, ________, _________, __________:
lambda a, b, c, d, e, f, g, h, i, j:
yes
The author just replaced normal names by underscores to make it harder to read
that's the idea behind a lot of #esoteric-python
It's nice to experiment with Python and learn a bit about it
juanita seems to have posted smth similar
print(bytes([(True << (True ^ True << True) ^ True << (True << True ^ True << (True << True))), (True ^ True << (True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True ^ True << True ^ True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True))), (True << (True ^ True << (True << True))), (True ^ True << True ^ True << (True << True) ^ True << (True << (True << True)) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True ^ True << True ^ True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << True ^ True << (True << (True << True)) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << (True << True) ^ True << (True ^ True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True << (True << True) ^ True << (True ^ True << (True << True)) ^ True << (True << True ^ True << (True << True))), (True ^ True << (True ^ True << (True << True)))]).decode())
__add__
Yes, you can look at the implementations for the builtin types
But most of it is written in C
there is in the docs
ah yes
from the qualifier for code jam 2
A better term for that is "scope"
thx
With namespace you typically mean things like module.name
For an explanation of namespaces, you could just reduce the problem down to just a local thing you write with two files
Say you have two files:
main.py
functions.py
yea
And the main file you're running is main.py in this case
yep
Now, when you define names in main.py, they are just in the "global" namespace of that application
So,
name = "foo"
yep
that name is just name in the global namespace
Now say I define something in functions.py
Like
def add(a, b):
return a + b
If I do":
from functions import add
it would add the name add directly to the global namespace of the application
The same happens with star imports:
from functions import *
all the names defined in functions will be dumped in the global namespace of your application
This could lead to issues with name conflicts
yep
So, another way of import would be this:
import functions
Now, the name add is in the namespace functions, so you'd have to do functions.add
makes sense
This is the main point of using namespaces: You have separate "spaces" for names to avoid conflicts and to increase readability
when you are invoking functions.add what is the terminology used to define this process
what i mean is this period
i this context
in*
@rigid nest Formally, the . means you're accessing an attribute of the object you assigned the name functions to
So, an imported module is just an object in memory; the name functions gets assigned to that "module" object
The . gets an attribute, and how that is resolved depends on the implementation of the class
It's a bit weird to get used to, but everything is an object in Python, including that module you just imported
emp1 = Employee('x', 1, [1,2,3,4])
Yes, you'd create an instance of Employee and assign the name emp1 to it
In this case, you're getting the attribute name of emp1
hi friends
But, in a sense, when you do module.name, you have attribute-like access on the module object
So, it is the same idea
from folder1 import Employee as e1
from folder2 import Employee as e2
emp1 = e1.Employee('x', 1, [1,2,3,4])
you can actually define dynamic names for modules since Python 3.7
So, for a class, you can define a __getattr__ to handle "unknown attributes"
will need to inherit dict for that class
!e
class MyClass:
def __getattr__(self, name):
print(f"You tried accessing {name}")
my_object = MyClass()
my_object.name
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
You tried accessing name
You can now do that for modules as well
By defining a module-level __getattr__ function
self.__name__
The class name is self.__class__.__name__
or type(self).__name__
You can't really access the function object from within the function without using the global name of the function
There's no self in a regular function that refers to the function object
but you can do this:
!e
def function():
print(function.__qualname__)
print(function.__name__)
function()
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
001 | function
002 | function
The __qualname__ will also show the namespaced of the function (e.g., if it's assigned to a class attribute, it will show the class name)
!e
def func():
return 1
my_func = func()
my_func.__name__
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!e
def func():
return 1
my_func = func()
my_func.__name__
@olive sentinel :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 5, in <module>
003 | AttributeError: 'int' object has no attribute '__name__'
!e
def func():
return 1
my_func = func
my_func.__name__
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Code evaluation is restricted
Help channels and #bot-commands
!e
def func():
return 1
my_func = func
my_func.__name__ # original name
@olive sentinel :warning: Your eval job has completed with return code 0.
[No output]
But you may want the __qualname__ in some instances
!e
class MyClass:
def function():
pass
print(MyClass.function.__qualname__)
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
MyClass.function
fully qualified name
This shows you that the function was originally assigned to the class attribute MyClass.function when it was created
That can be handy during debugging
It's not
!e
class MyClass:
def function():
pass
print(MyClass.function.__qualname__)
print(MyClass.function.__name__)
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
001 | MyClass.function
002 | function
As you can see, the __qualname__ registers the original name assigned to the function object when it was created
No, it does not include the module name
single
test
Here is `code here`
Thanks <3
By the way, if you want to look at, say, the implementation of __init__ for list, you'd have to look at the C source code in listobject.c
And so on for most builtins
Why?
You assign the attributes by doing:
self.running = "some value"
self is assigned to the instance the method is called on
And you assign an attribute right there and then at run time
What's a bit confusing is that __init__ is not really anything special. Sure, it gets called automatically by Python during the object creation process, but it's just a regular function.
yes
!e
class MyClass:
def __init__(self):
self.some_name = "foo"
obj = MyClass()
print(obj.some_name)
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
foo
!codeblock
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
โข These are backticks, not quotes. Backticks can usually be found on the tilde key.
โข You can also use py as the language instead of python
โข The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
`
```python
code here
```
or
```py
code here
```
Yes
You could create a copy
!e
class MyClass:
def __init__(self):
self.name = "something"
obj = MyClass()
d = vars(obj).copy()
obj.name = "something else"
print(d)
@olive sentinel :white_check_mark: Your eval job has completed with return code 0.
{'name': 'something'}
I use VS Code. It's lighter, but pycharm is great for more complex projects
I use both Sublime Text (smaller projects/quick edits) and PyCharm (larger projects)
VSCode is just slightly too heavy for quick edits for me. I want something that opens "instantly" from my point of view but does not require me to learn VIM.
Need to figure out audio stuff. Can't get mic working ๐ฆ
@clever atlas Need some code help?
Are you using a framework?
I made the website using Flask and I'm trying to use BeautifulSoup to get this information
But i think i did something wrong
I'm confused. You need to get the answer of an input in HTML, and you're using Flask.
How does BeautifulSoup fall into this?
Someone said I could use it to get the information of a website, so I want to get the person's answer that will be a number and make some equations
But It keep saying that i am trying to multiply a nonetype
Can we go into a help channel? I'd like to see your source code.
yes
@somber heath Thanks for being great. I need to get my mic sorted. laters!
๐
yoooourrrr
Hash table is a data structure that represents data in the form of key and value pairs. In this tutorial, you will understand the working of hash table operations with working code in C, C++, Java, and Python.
t1 = threading.Thread(target=do_something)```
@whole bear Mute yourself when joining voice chat if you are not planning to say anything. You were making a lot of noises. It's just the polite thing to do. Not trying to be a dick here ๐
@fathom wraith unblock me
for those who like fractals
Marble Marcher is a video game demo that uses a fractal physics engine and fully procedural rendering to produce beautiful and unique gameplay unlike anything you've seen before.
Download: https://codeparade.itch.io/marblemarcher
Source Code: https://github.com/HackerPoet/Mar...
3b1b makes all his videos with his own python library https://github.com/3b1b/manim
If this doesn't blow your mind, I don't know what will.
Part 2: https://youtu.be/jsYwFizhncE
Part 3: https://youtu.be/brU5yLm9DZM
Brought to you by you: http://3b1b.co/clacks-thanks
New to this channel? It's all about teaching math visually. Take a look and see if there's a...
They even have a discord server
from random import randint
mx = int(10e15)
ln = int(10e3)
lst = [randint(0,mx) for i in range(ln)]
with open("list.txt", "w") as output:
for i in lst:
output.write(f"{i}\n")
file.write(_list[0])
for each in _list[1:]:
file.write('\n' + str(each))```
@twilit lagoon
They disabled it because people did some horrific shit ๐
Like showing their frontal hose
uwsgi + traefik also an aleternative
yes learn docker or die
I do
Docker is mandatory at this point. It's so useful that you can't comprehend not having learned it earlier once you know the basics
Playing with C/C++ extensions for python could be a next step after you know python
CPython is C
CPython is written in C
But there are actually many implementations of the Python language
A while ago I saw a nice video series on CPython internals
I'll see if I can find it
There are a lot of nice resources
@twilit lagoon
This is by the guy who developed pythontutor.com
This sounds like the plot of The Wolf of Wall Street
lol
Text books are good
because it's more structured
If you want a free book, this is excellent: http://composingprograms.com
That design patterns book is good
Mathematics is more about the application
Most programming is plumbing
I like you lxnn
Cracking the Coding Interview is often recommended as a one-stop-shop for tech interview preparation
I think they've caught up
It's a classic case of Goodhart's law
"When a measure becomes a target, it ceases to be a good measure."
o
Did you ever see this? https://twitter.com/mxcl/status/608682016205344768?lang=en-gb
Google: 90% of our engineers use the software you wrote (Homebrew), but you canโt invert a binary tree on a whiteboard so fuck off.
7551
12866
Asking good questions is a skill that needs to be learned and constantly improved.. ๐
You are right @fair dune .
Always use re.VERBOSE
Ever since I found out about that option, my regexes are much more readable
I see.
I also find it best to stick to just the basic regex features
Just re smart so you don't end up with 2000 style pcre mosters
Oh yeah, regex puzzle?
Regex101 allows you to create, debug, test and have your expressions explained for PHP, PCRE, Python, Golang and JavaScript. The website also features a community where you can share useful expressions.
I've had to dissect so many perl scripts in the past like that
This is fun: https://regexcrossword.com
Do you guys know anything about the metasploit?
Bye
Pushed my discord bot, so might as well wrap it up here as well
Right, I'm off
''' python
'''python
def tri_recursion(k):
if(k > 0):
result = k + tri_recursion(k - 1)
print(result)
else:
result = 0
return result
print("\n\nRecursion Example Results")
tri_recursion(5)
Recursion Example Results
1
3
6
10
15
def iterative_sum(n):
result = 1
for i in range(2,n+1):
result *= i
return result
print(iterative_sum(5))
hello guys, what can voice chats section do?
Is someone in a submarine?
if __name__ == '__main__':
with concurrent.futures.ThreadPoolExecutor() as executor:
results = [executor.submit(methodToRun) for _ in range(10)]
for result in results:
print(result())
is self in python the same as this in java?
threads = list()
for _ in range(10):
t = threading.Thread(target=do_something)
threads.append(t)
for t in threads:
t.start()
#DO STUFF HERE
for t in threads:
t.join()
threads = []
for _ in range(10):
t = threading.Thread(target=do_something)
t.start()
threads.append(t)
for t in threads:
t.join()
Just saying, @jovial meadow , I think your nickname might go against the nickname policy
Just slightly
In all seriousness though, you should consider changing it as it's likely to be off-putting to other users
while True:
for _ in range(10):
time.sleep(2)
executor.submit(methodToRun)
time.sleep(300)```
hemlo
i need help
when i opened python ....
i saw like a batch file
is python a batch file?
how do i iput commands
huh?
#python-discussion should be a better place than #voice-chat-text-0
and to open python you have to invoke the command py or python @warm willow
oki
good luck
thx
what's goin on?
sorry if that was personal or something
alright, see you later
thumbs up
A clip from the South Park episode Margaritaville; season 13 episode 3.
ME: print("Hello World")
Everyone in the voice chat: leave
aannnnnndddd we're gone
Downloading files from different online resources is one of the most important
and common programming tasks to perform on the web. The importance of file
downloading can be highlighted by the fact that a huge number of successful
applications allow users to download files. Her...
help(urllib.request)```
http://www.youtube.com/parrygrippradio
Special thanks to all of the cool people who let me use their video clips!
Please check out the original videos:
Hamster eating bell peppers
http://www.youtube.com/watch?v=BrtKgAjXv7g
from: http://www.youtube.com/dalsch
Hamster Eatin...
Documentation in this section includes basic guides to configuring your Raspberry Pi.
your still in the vc???
Me too
https://www.hackster.io/najad/enable-ssh-on-raspberry-pi-without-monitor-keyboard-210dc4 @wild falcon
so, jazz, you got a USB?
so you can announce our demise
time to do some problem solving
@frozen coral it won't connect
no
that's not it
I can connect to any other voice channel
it's a discord bug
I've had it before
try restarting discord
Guys, is it ok if i aska question here?
Ill send the code here
ok
array = [12, 3]
for i, a in enumerate(array):
if i <= 1:
if len(array) - i > a:
print(a)
else:
print('oof')
so im trying (in the len position) to get the value of the int in that position
how do i do that
oof
im guessing its for the a and i values
i get oof twice
ok, take your time
ill think too
yes
if len(array) - i > a:
I want here to check the value in that certain len position
if you understand
swee
sweet
yeah if you want the problem im solving
this is the problem im solving
"Given an array of unique integers salary where salary[i] is the salary of the employee i.
Return the average salary of employees excluding the minimum and maximum salary."
l = ['-1.2', '0.0', '1']
for i in l:
if i < x:
x = i
for i in l:
if i > x:
x = i```
x = min(float(s) for s in l)
array = [12, 3]
l = [-1.2, 0.0, 1]
for i in l:
x = min(float(s) for s in l)
if i > x:
x = i
print(x)
array = [1.2, 3.2, 1.4]
x = min(float(s) for s in array)
y = max(float(s) for s in array)
array.remove(x)
array.remove(y)
class Solution:
def __init__ (self, array: list[int]):
self.array = array
self.x = min(float(s) for s in self.array)
self.y = max(float(s) for s in self.array)
def remov(self):
self.array.remove(self.x)
self.array.remove(self.y)
Solution = Solution([1,2,3,4])
Solution.remov()
class Solution:
def init (self, array):
self.array = array
self.x = min(float(s) for s in self.array)
self.y = max(float(s) for s in self.array)
def remov(self):
self.array.remove(self.x)
self.array.remove(self.y)
Solution = Solution([1,2,3,4])
Solution.remov()
coom = sum(Solution.array)
result = coom / len(Solution.array)
class Solution:
def __init__ (self, array):
self.array = array
self.x = min(float(s) for s in self.array)
self.y = max(float(s) for s in self.array)
def remov(self):
self.array.remove(self.x)
self.array.remove(self.y)
Solution = Solution([1,2,3,4])
Solution.remov()
coom = sum(Solution.array)
result = coom / len(Solution.array)
def average(self, salary: List[int]) -> float:```
@whole bear ?
a better question would be, who are you?
Who are any of us?
Instead of counting rings, like with trees, you count lemon's age in centimeters of beard.
beard fortnights
they say whenever I shave, I look ten years younger
so yes, that holds up
class Solution:
def average(self, salary) -> float:
self.array = salary
self.x = min(float(s) for s in self.array)
self.y = max(float(s) for s in self.array)
self.array.remove(self.x)
self.array.remove(self.y)
self.coom = sum(self.array)
return self.coom / len(self.array)
Solution.average([1,2,3,4])
!rank
Iterating over range(len(...)) is a common approach to accessing each item in an ordered collection.
for i in range(len(my_list)):
do_something(my_list[i])
The pythonic syntax is much simpler, and is guaranteed to produce elements in the same order:
for item in my_list:
do_something(item)
Python has other solutions for cases when the index itself might be needed. To get the element at the same index from two or more lists, use zip. To get both the index and the element at that index, use enumerate.
okay. hi. welcome.
lemon's a member of this server as well
and he's a beardy fruit
or a fruitless beard
We used to joke about lemon lemonsmashing everyone with his ban hammer, but we took his moderation role from him and now he's harmless
No, we're not. We're just involved in this online community that revolves around Python.
The programming language is about 30.5 years old at this point, if you count those first few weeks in December, 1989
The rise of Python is quite interesting. Unlike a lot of other language, who had an enormous rise in popularity at one point, Python's popularity has risen quite steadily over the years.
I'm not sure if it's really a hype if it does that. In my mind, hypes come quickly and go quickly, but Python's been growing steadily for about 30 years.
class Solution:
def average(self, salary: List[int]) -> float:
return (sum(self.salary) - max(self.salary) - min(self.salary)) / len(self.salary)
@frozen coral
Heres the solution
Merguez (, from Arabic: ู ุฑูุงุฒโ, also ู ุฑูุงุณ, ู ุฑูุงุณ, ู ุฑูุงุต) is a red, spicy mutton- or beef-based fresh sausage from Maghrebi cuisine. It is also popular in the Middle East and Europe, having become particularly popular in France by the closing decades of the twentieth century....
Mumbar is a type of sausage of possible Persian origin that is made with mutton, rice, black pepper, salt and cinnamon stuffed into an intestine casing - after the sausage has been cooked by boiling and allowed to cool, it is sliced and fried in butter. Sometimes it is dipped ...
print(session)
x = "<Response [404]>"
if session == x:
print("this bitch not taken")
else:
print("this bitch do be taken")```
<Response [404]>
session = requests.get('https://instagram.com/awfweafcdsfrawdfcwaefwEGTaqefawef')
print(session)
x = 404
if session.status_code == x:
print("this bitch not taken")
else:
print("this bitch do be taken")
It may be a mouthful to say, but Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch in north west Wales was one of the warmest places in the UK today.
And, it was no problem for our Welsh weather presenter Liam Dutton to mention it on todayโs weather forecast.
He Protecc
He Attacc
But most important:
yeah we know
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
Taumatawhakatangihangakoauauotamateapokaiwhenuakitanatahu
Tweebuffelsmeteenskootmorsdoodgeskietfontein
means
fountain where two buffaloes where immediately shot doornail-dead with one shot
and it is in south africa
์์ผ๋ฆฌํจ ์์ #ํ๋ฐ์์ฌ ๋ณธ๊ฒฉ ์์ด๋ ๋ฐ๋ท!
ํ๋ฐ์ก ํ๋ฐ๋ฎค๋น ํ๋ฒ์ ๊ณต๊ฐ ๐ต
โฅ์ฌ๋ํด์ ํ๋ฐ์์ฌโฅ
#ํ๋๋์ฐ๋ฐฑํ๋ก๋_๋กฏ๋ฐ์์ผ๋ฆฌํจ ๐ต
#๋ด๋ง์์๋ฐฑํ๋ก๋_ํ๋ฐ์์ฌ
#๋กฏ๋ฐ์์ผ๋ฆฌํจ #ํ๋๋์ฐ์์ผ๋ฆฌํจ #๋ฐฑํ๋ก #ํ๋ฐํ๋ฐ
does antone recommend me other websites with problem sovling?
wow i just ff8888 my whole sentence
r/ihadastroke
exactly
But anyways, do you know any other web for problem sovling
solving
https://www.youtube.com/watch?v=f_tbyUtCzEU
@gentle flint wtf
์์ผ๋ฆฌํจ ์์ #ํ๋ฐ์์ฌ ๋ณธ๊ฒฉ ์์ด๋ ๋ฐ๋ท!
ํ๋ฐ์ก ํ๋ฐ๋ฎค๋น ํ๋ฒ์ ๊ณต๊ฐ ๐ต
โฅ์ฌ๋ํด์ ํ๋ฐ์์ฌโฅ
#ํ๋๋์ฐ๋ฐฑํ๋ก๋_๋กฏ๋ฐ์์ผ๋ฆฌํจ ๐ต
#๋ด๋ง์์๋ฐฑํ๋ก๋_ํ๋ฐ์์ฌ
#๋กฏ๋ฐ์์ผ๋ฆฌํจ #ํ๋๋์ฐ์์ผ๋ฆฌํจ #๋ฐฑํ๋ก #ํ๋ฐํ๋ฐ
this is a drug advertisement?
sugar replacement
korean
ok
getting_acc = requests.get(f'https://www.instagram.com/{line}/?__a=1')
print(getting_acc.json())
getting_acc = requests.get(f'https://www.instagram.com/{line}/?__a=1')
checking = getting_acc.json()
line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It means the response data was empty and an empty string is not valid JSON
!ban 366948861165568001 Violation of rule 5. After being instructed not to scrape instagram and receiving a 1 day ban for it you have continued to ask questions about this topic in the community.
:incoming_envelope: :ok_hand: applied ban to @frozen coral permanently.
OOF
1 day i think
Permanently
in a way that lasts or remains unchanged indefinitely; for all time.
oh well
took me 5 mins to do lol hope you enjoy this epic meme.
Anyone wanna play Hereos and Generals?
or csgo?
Im taking a short coding break
and ill move on to data structures
fixed
magic mark
the illusionist who lets election promises disappear
While much more effective, this is also a lot more dangerous than the Presto hotdogger. I really don't recommend trying this at home, as the exposed electrodes pose a high shock risk.
This time the sausage roll (extruded sausage-like stuff in a puff pastry sleeve) was thoroug...
Keep in mind this channel is no exception to our rules, and is for normal conversations. Not a meme/shit posting channel.
k
it was accompanying our general conversation in vc, so it seemed suitable, as that is the intended purpose of this channel.
indeed
Come chat with us. We have cookies.
mhm
and politics
danger zone cue
we also have 1 zapped sausage roll
here is the video @wind cobalt
A great scene from the ending of Dr. Strangelove.
ok
Jorg Washington was the first you see, he once chopped down a unity tree
@whole bear Shuba Prabatam
namaste!
but nobody says that anymore lmao
Jorg Washington was the first you see, he once chopped down a unity tree
@whole knot ah yes! the good ol' jorg days
We have some sanskrit loanwords in my language
I tout myself as a hobbyist.
ik the syntax, but my strategic thinking is poor
I know Python, but I'm still always learning.
As everyone who does Python ought to.
Excelsior and all that.
okk
A moderator already told me, thanks
also, as I said to them, it was relative to the conversation
Oh, I see
Every Villian Is Lemon
maybe I'll be a self-appointed dissident
Gradle, code, load, node, mode
toad
Not geeky enough.
the world is a spectrum
Well done
haha
^ this is a really good guide
Because I'm on phone
aha
I could maybe join for like, 5 minutes lol
I'm on phone.
it's okay haha
Lol I can't change the voice volume because I'm casting Spotify at the same time
That's actually android haha
Aaaanndd I need to go, cya haha
@gentle flint Arse sore. Phone overheating. Sitting on phone: Not recommended.
Patreon โบ https://www.patreon.com/Flyingkitty
Twitter โบ https://twitter.com/FlyingKittyy
Discord โบ https://discordapp.com/invite/flyingkitty
Steam โบ http://steamcommunity.com/id/flyingkittyy
Alt YT Channel โบ https://www.youtube.com/user/FranklinGreenStretch
KIK โบ Flyingkittyy
@gentle flint Arse sore. Phone overheating. Sitting on phone: Not recommended.
@somber heath Arms are heavy, palms are sweating
mom spaghetti
yumm
my microphone is a wiko jerry 1
54
HTC earphone/mic. Indestructible.
nokia phone>>>htc earphone
No argument.
owolib
uwulib?
NO!
UwU
From the creator of the Python compiler.
Pain is Bread
Can't believe I didn't have this one up already! Clip showing the decorations in all the major cities and their residential areas too. Enjoy!
Find the rest of the FFXIV OST here!
http://www.youtube.com/playlist?list=PLL5mKr-nFprKMsrDqpwsI1L0FKj4KgouH
I do not own the video n...
Nice.
Composer: Hideki Tobeta
Vocals: Yui Asaka and Mika Sato
Playlist: http://www.youtube.com/playlist?list=PLhHcMbVmbwCeYqZmiJDnlqsA-Ek739IYu
I do not own the rights to this soundtrack, nor am I affiliated with the composer or the company. I'm simply here to give the fans what t...
More Music: https://soundcloud.com/timbutler_nc
I took all the three original duck songs and put them all in one video. I did not make them, please support the original makers. http://www.youtube.com/watch?v=Ru4a-js4My4&list=RD02ECmpUJdgm-g
Composer: Akitaka Toyama
Vocals: Kenji Ninuma and Fumina
Playlist: http://www.youtube.com/playlist?list=PLhHcMbVmbwCeYqZmiJDnlqsA-Ek739IYu
I do not own the rights to this soundtrack, nor am I affiliated with the composer or the company. I'm simply here to give the fans what ...
Mili miracle milk special track N18
Lyrics:
I know, I know I've let you down
I've been a fool to myself
I thought that I could
live for no one else
But now through all the hurt and pain
Its time for me to respect
the ones you love
mean more than anything.
So with sadness i...
sorry that some of the pics are messed up guys, evil computer
Come, Sweet Death! now you can experience the true cynical disaster of the third impact on 3D!
Subscribe! And take your time to appreciate the great work of Marina: https://www.youtube.com/c/MarinaRios
My links
Support me: https://astrophysicsbrazil.bandcamp.com/
Patroen: ht...
is humanity an instrument?
import random
while True:
print(random.choice(["owo", "uwu"]))
This is the photo reference https://cdn.discordapp.com/attachments/626871176437694489/744209784496193587/Eb8PJJOUYAAne_x.jpeg
stop simping for me
We are all suitably impressed.
๐ฏ
int i = true;
print("why tho?")
sorry i cant
ye
i playing minecraft
from japan
omg
xDDDD
where are you from?
Malaysia and London?
yep
?
!
xD
yes..? xD
xDDD
please add me
yaay
thanks lextoll
hm
i'm about to leave the call
xD
again see you again? xD
ใพใๆๆฅ?see you tomorrow?
xD
ill sleep
good night
and have a nice day
bye
The funny kid from Goodnight Moon.
hello
30 Minutes of Satisfying Sand Cutting, Mad Mattr Scooping, Shaving, Crunchy Cutting, Up Close Sand and More! This Satisfying Compilation will help you relax completely and might also help you fall asleep. If you like oddly satisfying and relaxing sand videos then you will like...
Youโve got to be kidding me. Iโve been further even more decided to use even go need to do look more as anyone can. Can you really be far even as decided half as much to use go wish for that? My guess is that when one really been far even as decided once to use even go want, it is then that he has really been far even as decided to use even go want to do look more like. Itโs just common sense.
I couldn't fail to disagree with you less
Time flies like an arrow; fruit flies like a banana.
Blue man group in melodifestivalen (Sweden)
!e print('Hello')
You are not allowed to use that command here. Please use the #bot-commands channel instead.
at 1:40
:>
if you're interested in their improvised instruments and stuff then this is a good demo https://www.youtube.com/watch?v=qTJfITfbYNA
September 26, 2016 by BOB BOILEN โข They came, they measured, and they returned to perform a show like no other. It was the great NPR Tiny Desk Takeover by Blue Man Group.
If you've not seen this performance ensemble and their production in New York, Las Vegas, Orlando, Boston...
All the resources you need to give yourself a world class computer science education
but im not sure if its a useful resource
What is this place
hey i have a really simple tech issue that i can use help wit. when i open a pdf, within 5 minutes, it crashes and shows this screen.
Erm?
Yeah I have no idea
What program did you use to open it?
So, google chrome?
Hold on, I'm furiously googling
Why not download the file, then use a different pdf viewer
see if it still crashes
Are you on Windows?
Download free Adobe Acrobat Reader DC software for your Windows, Mac OS and Android devices to view, print, and comment on PDF documents.
I don't use Windows so I'm guessing... yes?
Did it crash?
Idk, there are a million things that could cause it to crash
Yeah it might do
No problem
aha yeah
Say LX out loud
yep
Erm, no
I've heard of them
not seen them
I think they're dreamworks?
Righto, I'm off
Cya
Woah you wrote alot of words
does it show voice connected in the corner
def twoSum(self, nums: List[int], target: int) -> List[int]:
numsMap = {nums[i]:i for i in range(len(nums))}
snums = sorted([i for i in nums if i <= target])[::-1]
l = len(snums)
for i in range(l):
sm = snums[i]
indexes = [numsMap[snums[i]]]
n = 0
while True:
n+=1
for j in range(l-n-i):
num = snums[j+n+i]
total = sm+num
if total < target:
indexes += [numsMap[snums[j+n+i]]]
sm += num
elif total == target:
indexes += [numsMap[snums[j+n+i]]]
return indexes```
Can I help?
def twoSum(self, nums: List[int], target: int) -> List[int]:
n = 0
l = len(nums)
for i in range(l):
n+=1
for j in range(l-n):
sm = nums[i]+nums[j+n]
if sm == target:
return [i,j+n]```
for idx, item in enumerate(items, start=2):
def twoSum(self, nums: List[int], target: int) -> List[int]:
l = len(nums)
for i in range(l-1):
for j in range(i+1,l):
if nums[i]+nums[j] == target: return [i,j]```
Relevant learning resource: https://www.khanacademy.org/computing/computer-science/algorithms/asymptotic-notation/a/asymptotic-notation
Basically, big-oh is concerned with how the running time of the algorithm grows as the size of the input grows.
O(n) means that if the input size (number of elements in the list) doubles, then the running time roughly doubles
O(n^2) means if the input size doubles, the running time is roughly multiplied by four
(technically this is an abuse of notation, btw)
O(log(n)) means if the input size doubles, the running time increases by a constant amount
So, for example, if you double the number of pages in the book, you have to do only one additional iteration of the binary-search algorithm.
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
l = len(nums)
for i in range(l-1):
if nums[i]+nums[j] == target: return [i,j]
for i in range(l-1):
if nums[i]+nums[j] == target: return [i,j]
N ? N
n + n
N + N = o(N)
[1,2,3,4,5], t = 5
^
{1: 0,
2: 1}
[1,2,2,4,5], t=4
{}
def twoSum(self, nums: List[int], target: int) -> List[int]:
hashmap = {}
for i in range(len(nums)):
sm = target-nums[i]
if sm in hashmap:
return [i, hashmap[sm]]
hashmap[nums[i]] = i```
๐ถ
!docs enumerate
enumerate(iterable, start=0)```
Return an enumerate object. *iterable* must be a sequence, an [iterator](../glossary.html#term-iterator), or some other object which supports iteration. The [`__next__()`](stdtypes.html#iterator.__next__ "iterator.__next__") method of the iterator returned by [`enumerate()`](#enumerate "enumerate") returns a tuple containing a count (from *start* which defaults to 0) and the values obtained from iterating over *iterable*.
```py
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter']
>>> list(enumerate(seasons))
[(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')]
>>> list(enumerate(seasons, start=1))
[(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')]
``` Equivalent to:
```py
def enumerate(sequence, start=0):
n = start
for elem in sequence:
yield n, elem
n += 1
MIN,MAX = min(arr),max(arr)
lst = [0] * (MAX-MIN+1)
for k in arr:
lst[k-MIN] += 1
return [k for l in [[i+MIN]*lst[i] for i in range(len(lst)) if lst[i]] for k in l]```
- Selection Sort
- Inertion sort
- bubble sort
- quick sort
- merge sort
- radix sort
- bucket sort
- heap sort
Nonsense
I can explain quicksort using Hungarian folk dancing
Created at Sapientia University, Tirgu Mures (Marosvรกsรกrhely), Romania.
Directed by Kรกtai Zoltรกn and Tรณth Lรกszlรณ.
In cooperation with "Maros Mลฑvรฉszegyรผttes", Tirgu Mures (Marosvรกsรกrhely), Romania.
Choreographer: Fรผzesi Albert.
Video: Lลrinc Lajos, Kรถrmรถcki Zoltรกn.
Support...
Is this A-level decision mathematics you're talking about? @twilit lagoon
Yeah I didn't enjoy that module
really monotonous
And gantt charts omg
The problem is a lot of curricula are designed by commitee
Yeah, it's a real shame that vocational qualifications are often looked down on
Ada is used a lot by the US millitary
I've heard this is a good place to start: https://www.edx.org/course/cs50s-introduction-to-computer-science
He was addicted to benzodiazepines
Xanax is a brand name for one
what is this conversation
@dapper meteor no idea, random people
this went from making fun of college to this
if this dude leaves we'll have a decent convo for the beginner
im going to be honest. i only come to these conversations to improve my social skills
watcha up 2?
wrong timezone
cya
Yeah, I think in future, just mute them rather than getting into a confrontation
@somber heath
They joined the chat at the same time
@somber heath nice pfp
Have you heard of Numba?
It's a slice of a tilable random walk-influenced depth first search fill in three dimensions.
With colour value averaging of alive neighbors and mutation along the walk
Wait, just before those guys joined earlier, did anyone else randomly disconnect from Discord?
@somber heath what are you on about?
Oh, your profile pic
๐
what is this
99 C?
pog
i9?
There was recently some drama at ARM
The head of their Chinese branch was fired but refused to leave
RISC-V looks promising
It's similar to ARM (they're both RISC), but with an open license
cya
*play du bist
โ
My Suggested Videosโ
์จ์ด ๋ค๋๋ฉฐ ํํ์ด ๋๋ฅผ ์ฐพ์์ค๋ ์๊ธฐ #๋ค๋์ฅ ์๋์ด
#Chipmunk Aram Visits Me And Hides In Plain Sight
https://youtu.be/OxQ2ttgijlE
๋ชฉ๋๋ฏธ ๋ง์ ธ์ฃผ๋ฉด ์ข์ํ๋ ์๊ธฐ ๋ค๋์ฅ ์๋์ด
Baby Chipmunk Aram Loves A Neck Massage
https://youtu.be/Pj5C4LAnHes
๋ฝ์ ์๋ฅ์ด ์๊ธฐ ๋ค๋์ฅ ์น๊ตฌ ์ด๋ฆ์ ์ง์ด์ฃผ์ธ์
Help Me Make A Name...
hi
<h2>EU-PVP-Official-GenOne-SmallTribes102
Fatal error in launcher: Unable to create process using '"c:\python38\python.exe" "C:\Python38\Scripts\pip.exe" install beautifulsoup4': The system cannot find the file specified.
print(i)```
print(_list)```
_list = [(x, 0) for x in range(10)]
_list = [(x,y) for x in range(10) for y in range(10)]
009 -> 010
for y in range(10):
print(x,y)```
[print('Evil code') for i in range(10)]
()
(i for i in range(10))
tuple(i for i in range(10))
{a:b for a,b in [('one', 1), ('two', 2)]}
is there any C# discord?
:-1
gtg^ srry for not being able to say so in vc ๐
๐
What's your current mathematical background?
Oh, at university?
So basic linear algebra and calculus?
Ah right
MIT OCW courses might be right for you
Sure, I'll try to find it
I don't, but I've always found their online content good
Open CourseWare
This is a good course on probability (but tough): https://www.edx.org/course/probability-the-science-of-uncertainty-and-data
This is a good statistics course, but assumes you already have a solid understanding of probability: https://ocw.mit.edu/courses/mathematics/18-650-statistics-for-applications-fall-2016/index.htm
That's true, unless you use a pointer
If you want to better understand the execution model of Python, you should try pythontutor.com @fast drift
Python does less to stop you writing really messy programs than a statically typed language
oh thx i will definetly look it up
@plush plover it's become better now that they've added optional static type checking
@fast drift I actually agree with you
I think it's a misconception that python is an 'easy' language
Look up Peter Norvig
He's got some really good examples of Python code on his GitHub
I think I remember reading some study that it's actually better to learn by example when learning a programming language
I think it's because he's an old-school Lisp programmer, and Python was inspired by lisp
Yeah, you have to be pretty disciplined when writing python to keep your code in order and make sure it's sufficiently documented
The following are equivalent:
@mydecorator
def f():
...
and
def f():
...
f = mydecorator(f)
cya
Aha ok
Right, I'm off anyway
alright man
have a nice day, i will definetly look those links up and read through them
so i made a quick program using pyautogui and i put a while true loop
and i couldnt move my mouse
so i tried to alt f4 my way through
i almost deleted an essay i was working on
wtf
run, its the emo kids
sorry i meant drunk
aren't trainers, shoes?
@crimson light are you making a plugin or mod
nvm i thought you were working on minecraft
(it's fine)
class Example:
def __init__(self):
self.num = 42
def print_num(self):
print(self.num)
example = Example()
example.print_num() # 42
example.num = -1
example.print_num() # -1
but its an integer
fine then
wont it be an error
no
i think you can make minecraft plugins with python
yeah, using a wrapper
but im too lazy to learn java
you guys must just be getting wall-to-wall political ads over there
oh yeah, he made a robot dog rickshaw
these are the ancestors of the Boston Dynamics robots: https://www.youtube.com/watch?v=XFXj81mvInc
Some clips of robots developed at MIT's Leg Lab. Marc Raibert would go on to found Boston Dynamics, where BigDog and PETMAN were made.
bridge building game
it's actually pretty good
yep
can be very stressful
@jovial meadow i got the same thing with youtube
it was an ad from donald trump played in the top corner of the webpage
this is the ad
i think this is false advertising
i play minecraft
pantry = ['flour', 'egg', 'lettuce']
for meal in meal_ingredients:
if all(ingredient in pantry for ingredient in meal_ingredients[meal]):
print(meal)``` For whoever was talking about their Python Kitchen thing.
@fringe turret


