#voice-chat-text-0
1 messages · Page 907 of 1
Programming is a powerful tool and Python is an easy way in. Here is an introduction to this amazing language.
Here is a blog post: https://shivansivakumaran.com/coding/zero-to-hundred-python/
Here is the code: https://git.chch.tech/Shivan/learning_python/src/branch/main/zero_2_hundred
Timestamps:
0:00 Introduction
0:55 Hello, word, commend...
How you think about my moms mini kitchen
Apathy.
Pytest is a tool that can be used to write automated tests. This makes your code robust and professional.
More about pytest here: https://docs.pytest.org/en/6.2.x/
My blog post about pytest: https://shivansivakumaran.com/coding/introduction-to-pytest/
A git repository for the code: https://git.chch.tech/Shivan/learning_python/src/branch/...
I am an Indian
Vankam
Me Tamil
Yea
I can hear you
But Tommorow is the day of my voice
Welcome to 1 Guy 1 Evolution!
Hello Guys,
This is a brand new YouTube channel “1 Guy 1 Evolution“
Contents
1.Reacting to videos and streams
2.About Apple Devices
3.Playing Games like Among us and Roblox
4.Study Section
Updates may come
Stay tuned for updates or any video uploads
Social Links:-
Join my discord server - https://discord.gg/BKF3vkU9F6
Thank you,
B...
Dude
@lusty bough don’t make it complex
It like Google Lens
!e print(2j)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
2j
!e [for i in range(10)]
@lusty bough :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | [for i in range(10)]
003 | ^
004 | SyntaxError: invalid syntax
!e [i for i in range(10)]
@lusty bough :warning: Your eval job has completed with return code 0.
[No output]
!code
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.
!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.pythondiscord.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.
!e py print("Hello.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Hello.
@sinful igloo :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | https://paste.pythondiscord.com/raw/libovequpo
003 | ^
004 | SyntaxError: invalid syntax
print('hello world')
!e print('test')
@lusty bough :white_check_mark: Your eval job has completed with return code 0.
test
!e ```py
[i for i in range(10)]
@lusty bough :warning: Your eval job has completed with return code 0.
[No output]
@sinful igloo :x: Your eval job has completed with return code 1.
001 | Welcome to Study Bot
002 | 1.Log in
003 | 2.Calculator
004 | 3.Check list
005 | 4.Search
006 | Choose from the option 1,2,3,4: Traceback (most recent call last):
007 | File "<string>", line 6, in <module>
008 | EOFError: EOF when reading a line
!e ```py
lst = [i for i in range(10)]
print(lst)
@lusty bough :white_check_mark: Your eval job has completed with return code 0.
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
!e print(*range(10))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9
@sinful igloo :white_check_mark: Your eval job has completed with return code 0.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
@somber heath
Have you done any lists
If you done it it will specify the item which is done
Opal
What are you typing
This should be an code
!e py def func(a, b, *largs, **kwargs): print(a) print(b) print(largs) print(kwargs) func(1, 2, 3, 4, 5, apple="yum", peaches="yummiest")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | (3, 4, 5)
004 | {'apple': 'yum', 'peaches': 'yummiest'}
def func(*,...):
...
@somber heath , If I make an item in an list
Dinnertime for me now. Sorry.
Hey @lusty bough
I have some doubts with lists
If I make an regular list
And add items to the list
If I done it
I want to make sure if that is done in the list
Is there is any command
It is like reminders
Yep
Like an Shopping list
Shivan
@lusty bough
hello
Hello
How you doing?
Great
nice
what does it do?
Hmm, nice
If I have Apples and Bananas on my list
If I buy apples
I want to show that I bought apples on the list
Yea
lst = ['apple', 'banana']
lst.append('apple')
lst
>>> ['apple', 'banana', 'apple']
!e ```python
lst = ['apple', 'banana']
lst.append('apple')
lst
['apple', 'banana', 'apple']
@sinful igloo :x: Your eval job has completed with return code 1.
001 | File "<string>", line 4
002 | >>> ['apple', 'banana', 'apple']
003 | ^
004 | SyntaxError: invalid syntax
!e ```python
lst = ['apple', 'banana']
lst.append('apple')
lst
['apple', 'banana', 'apple']
@sinful igloo :x: Your eval job has completed with return code 1.
001 | File "<string>", line 4
002 | ['apple', 'banana', 'apple']
003 | IndentationError: unexpected indent
!e ```py
lst = ['apple', 'banana']
lst.append('apple')
lst
@lusty bough :warning: Your eval job has completed with return code 0.
[No output]
I'd use a dict instead of a list tbh:
stuff = {
"apples": 0,
"banana": 0
}
fruit = input("Name of the fruit: ")
stuff.get(fruit, 0) += 1
print(stuff)
Oh
!eval
stuff = {
"apples": 0,
"banana": 0
}
fruit = input("Name of the fruit: ")
stuff.get(fruit, 0) += 1
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff.get(fruit, 0) += 1
print(stuff)
@sick cloud :x: Your eval job has completed with return code 1.
001 | File "<string>", line 6
002 | stuff.get(fruit, 0) += 1
003 | ^
004 | SyntaxError: 'function call' is an illegal expression for augmented assignment
!eval
stuff = {
"apples": 0,
"banana": 0
}
fruit = input("Name of the fruit: ")
stuff.get(fruit, 0) += 1
@sinful igloo :x: Your eval job has completed with return code 1.
001 | File "<string>", line 6
002 | stuff.get(fruit, 0) += 1
003 | ^
004 | SyntaxError: 'function call' is an illegal expression for augmented assignment
hmm
!e ```py lst = ['apple', 'banana']
lst.append('apple')
print(lst)
Dude
@lusty bough :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | py lst = ['apple', 'banana']
003 | ^
004 | SyntaxError: invalid syntax
I know why this doesn’t work
The function call was an illegal expression
!e ```py
lst = ['apple', 'banana']
lst.append('apple')
lst
@lusty bough :warning: Your eval job has completed with return code 0.
[No output]
For augmented Assignment
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff[fruit] += 1
print(stuff)
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
{'apples': 1, 'banana': 0}
Yea
Thanos
Thanks
But can I replace with emojis
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff[fruit] += Done
print(stuff)
@sinful igloo :x: Your eval job has completed with return code 1.
001 | File "<string>", line 6
002 | stuff[fruit] += ☑️
003 | ^
004 | SyntaxError: invalid character '☑' (U+2611)
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff[fruit] += 1
print(stuff)
@sinful igloo :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 6, in <module>
003 | NameError: name 'Done' is not defined
No, you can only use numbers
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff[fruit] += 1
print(stuff)
@sinful igloo :white_check_mark: Your eval job has completed with return code 0.
{'apples': 1, 'banana': 0}
Oh
Not even symbols
unless you do smth like:
!e
stuff = {
"apples": 0,
"banana": 0
}
fruit = "apples" # input("Name of the fruit: ")
stuff[fruit] = "Done"
print(stuff)
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
{'apples': 'Done', 'banana': 0}
Oh nice
I am doing for project
I need an open source search engine
@lusty bough have you used Search engine in your codes?
just use google or smth
no wait
!pypi search engine
^^ you need that to scrap data
what are you trying to make
An bot whihc will search Google for study uses
hmm
@sick cloud
Hi
!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.pythondiscord.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.
stop
The code from the beautiful soup
What should I change in it
Idk, you tell me
yes? 🙂
@quiet epoch do you know any Google search engine python bindings
how do you mean?
.
wrong man dood
A Bot which helps in studies
English, Maths, Social Science, Science, Language Learning stuff like that
Yea
Anyon
Ok
Cya
Hi
Again
@quiet epoch
I have an doubt
How to fix this error
just define the username before that block:)
username = "some name"
import datetime, asyncio, websocket, json
from time import time
import pandas as pd
from binance.client import Client
binance_api_key = 'key'
binance_api_secret = 'key'
client = Client(api_key=binance_api_key, api_secret=binance_api_secret)
global epoch
symbols = ['ETHUSDT', 'BTCUSDT', 'XRPUSDT']
org_columns = ['open',
'high', 'low', 'close', 'volume', 'close_time', 'quote_av',
'trades', 'tb_base_av', 'tb_quote_av', 'ignore']
daysneeded = 150
fromdate = str(datetime.datetime.now() - datetime.timedelta(days=daysneeded))
tomorrow = str(datetime.datetime.now() + datetime.timedelta(days=1))
todate = str(datetime.datetime.now())
fromdate = fromdate.split()
fromdate = fromdate[0].split("-")
fromdate = f'{fromdate[2]},{fromdate[1]},{fromdate[0]}'
tomorrow = tomorrow.split()
tomorrow = tomorrow[0].split("-")
tomorrow = f'{tomorrow[2]},{tomorrow[1]},{tomorrow[0]}'
todate = todate.split()
todate = todate[0].split("-")
todate = f'{todate[2]},{todate[1]},{todate[0]}'
async def historical_data():
for i in range(len(symbols)):
async def Get_Data():
try:
klines = client.get_historical_klines(
(symbols[i]), Client.KLINE_INTERVAL_15MINUTE, fromdate, todate )
klines_len = len(klines)
if klines_len == 0:
print('Failed to download data for ', (symbols[i]))
new_columns = [item for item in org_columns]
new_columns.insert(0, 'timestamp')
DF = pd.DataFrame(klines,
columns=new_columns)
DF['timestamp'] = pd.to_datetime(DF['timestamp'], unit='ms')
DF.set_index('timestamp', inplace=True)
DF.to_csv(symbols[i])
print('Downloaded data for ', (symbols[i]))
except:
print('*** Invaled symbol:', (symbols[i]), '! ***')
await Get_Data()
async def today_data():
for i in range(len(symbols)):
async def Get_Data():
try:
klines = client.get_historical_klines((symbols[i]), Client.KLINE_INTERVAL_15MINUTE, todate, tomorrow )
klines_len = len(klines)
if klines_len == 0:
print('Failed to download data for ', (symbols[i]))
new_columns = [item for item in org_columns]
new_columns.insert(0, 'timestamp')
DF = pd.DataFrame(klines, columns=new_columns)
DF['timestamp'] = pd.to_datetime(DF['timestamp'], unit='ms')
DF.set_index('timestamp', inplace=True)
DF.to_csv(symbols[i])
print('Downloaded data for ', (symbols[i]))
except:
print('*** Invaled symbol:', (symbols[i]), '! ***')
await Get_Data()
loop = asyncio.get_event_loop()
loop.run_until_complete(today_data())
!e py try: 1/0 except ZeroDivisionError as e: print(e)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
division by zero
!e 1/0
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ZeroDivisionError: division by zero
!e 100000/729
@sinful igloo :warning: Your eval job has completed with return code 0.
[No output]
@sinful igloo :warning: Your eval job has completed with return code 0.
[No output]
How to fix this
@somber heath
How should I do that
How can I fix it
!e a = 0 a + b
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'b' is not defined
!e py a = 0 b = 0 a+b
@somber heath :warning: Your eval job has completed with return code 0.
[No output]
username = 'some name'
name = 'name'
password = 'password'
pw = 'pw'
!e ```py
def func():
return 5
a = func()
#preferable to
def func():
global a
a = 5
func()```
!e ```py
class MyClass:
def init(self, v):
self.var = v
my_instance = MyClass(5)
print(my_instance.var)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
5
!e surprisingly, this also work:
a = 9
class GG:
def __init__(self, val):
print(f"{val = }")
globals()["a"] = val
GG(2)
print(f"{a = }")
@sick cloud :white_check_mark: Your eval job has completed with return code 0.
001 | val = 2
002 | a = 2
Hsss! 😆
x)
Hi
!e surprisingly, this also work:
a = 9
class GG:
def __init__(self, val):
print(f"{val = }")
globals()["a"] = val
GG(2)
print(f"{a = }")
@sinful igloo :white_check_mark: Your eval job has completed with return code 0.
001 | val = 2
002 | a = 2
Hi
Who wanna see my code
How to stop my code
@mystic lily
I want to end my code
Yea
I mean
There is link between
1 Operation and An Other Operation
If I finish the login part
It redirects to me to the calculator
Depends on what you mean by end.
I want to stop it at log in page
@somber heath
Let me take an video
I am sending an video everyone
can i join you guys too
Join VB
Vc
probably
what does Vc mean
Voice channel
voice chat
k i am in
import os
import webbrowser
webbrowser.open("https://www.youtube.com/")
quit()
```???
like this ??
use sys.exit()
it didn't need to be ??
!e
import webbrowser
webbrowser.open("https://www.youtube.com/")
quit()
@sinful igloo :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | NameError: name 'quit' is not defined
also i cannot umute there
Dude
quit() only works if the site module is loaded
ok wait
don't use it outside the shell
ill tell ya
i literally told you
Where
here
paste this between your code
Ok
instead of quit() use sys.exit()
you'll have to import sys first
here wait
import webbrowser
webbrowser.open("https://www.youtube.com/")
quit()
import webbrowser
import system
webbrowser.open("https://www.youtube.com/")
sys.exit()
the second one is correct
dude ut s the same
no????
it works for me
ok let me try in pycharm
import webbrowser
import sys
webbrowser.open("https://www.youtube.com/"")
sys.exit()
ok my pycharm was lagging
yeah
sry
also
heforgot to close the quotes there
import webbrowser
import sys
webbrowser.open("https://www.youtube.com/"")
sys.exit()
it's fine, just please don't actively disagree with advice if you don't know exactly what you're doing
it only makes everything more confusing
how do you get voice verified role
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Return 'yep'
Else:
return Nah```
wait
what does this mean
You have been active for fewer than 3 ten-minute blocks.
what does the message above mean
there's three criteria you need to meet
ok
3 days in the server of ten minutes
wait I'm not done
wait howmany people are in here rn?
yes
I'm not sure what the three ten-minute blocks mean
presumably it means that you need to chat for at least 10 minutes on 3 separate occasions
unfortunately the bot only tells you one of the criteria you don't meet
? pretty sure voice verification is just
should be in server for 3+ days
should have 50+ undeleted messages which are not spam
also the 10-minute blocks
Voice Gate failed
You are not currently eligible to use voice inside Python Discord for the following reasons:
• You have sent less than 50 messages.
• You have been active for fewer than 3 ten-minute blocks.
this is what is says
well you have 50 messages now
but better tbh
u
oh
Wha
nice
?? why me
wait, nvm i used the wrong
i'm of course verified
xD
don't worry
@whole bear try running the command again
ok
i did it
and
Voice gate passed
You have been granted permission to use voice channels in Python Discord.
Please reconnect to your voice channel to be granted your new permissions.
boom
yay
yay
nice
so now u reconnect
@gentle flint i wrote this script in like 4 mins yesterday
i did it
gud
wouldn't you agree its literally almost everything most ppl need
if they use ps
i'm using py
who uses powershell when they have bash
me who uses cmd: "what"
i say both have their places
better auto complete, faster
bash is nice when you wanna do anything with text it is the best at it
import webbrowser
webbrowser.open("https://www.youtube.com/")
quit()
powershell has the power of the whole .net core if you wanna do more complex stuff you can't do as easily with just text
Hi
Who as an search engine
Open source
Any open source
Any open source search engine
bruh
have you seen powershell auto complete
if you're using properly made scripts / cmdlets it completes everything from your parameters positionally and their vallues
also even on linux i use zsh instead of bash anyway
also has better auto complete
sure, but most linux shells have better autocomplete out of the box without any configuration whatsoever
you're not listening m8 >->
- zsh autocomplete is much much better when configured
- powershell how good the autocomplete is depends on the cmdlet / script rather than the shell configuration
and there's those reeeeally weird ass people out there who use that bloated oh-my-zsh to get everything configured
literally all it does
modify zshrc
run plugins which really are just zsh scripts....
why can't you just do it manually and add 4-5 lines to your zsh rc than downloading a whole program full of 100 plugins you would never use
I don't want scripts or stuff
setting up scripts and cmdlets is a form of configuration
I want it to work directly from installation
most linux shells will do that
ps will not
do you use windows powershell maybe?
when forced to use windows, yes
that's the issue
the alternative is cmd
use powershell core its much better in literally everything
kden
windows powershell doesn't even come with ssh, escape characters and alot of other stuff
does ps core come with linux-style git autocompletion
well Install-Module posh-git i think? o- o
I use that
there's a whole marketplace of free modules you can choose from
yeah bash and zsh are faster in most regards
as they deal with just text meanwhile for powershell everything is an object
but as i said before i think both options are nice and have their own place
its like having another tool in your toolkit doesn't hurt to have it
well it would be nice to have the fast tool on windows as well
introducing git-bash
another major difference btw
in powershell everything you do is using powershell's own .net core it doesn't rely on an external toolkit
when using bash and zsh you always end up using the unix utilities like grep, sed, awk, etc
which can be different between different os btw as GNU/linux comes with GNU utilities which are basically unix utilities with extra features (this is not posix but it is how linux rolls so meh) meanwhile same tools for mac or bsd would be posix compliant ones with more limited functionality (still good enough for most shiz)
@gentle flint
mmm
xD both have their own pros and cons see
how do you get anouncements role now
what's winpty in git bash
how do you get the video and the anouncement roles
its apparently to let windows shells interact with git bash
Ic
like typing pswh to start a powershell session and exit to go back to git bash
ah
wait
how do you guys manage to get that box
pressed enter
exit
30 seconds later it still hasn't started
video you only get permanently if you're trusted and announcement you can get by just going to the announcement channel i think or running a bot commmand
i don't remember
did you update gitbash btw?
when
within last month
probably do it cuz newer one also comes with a windows terminal profile
much nicer using it in windows terminal and it feels faster too
I didn't install it
oh
yeah 🙂
how doyou get that particular text in the box
yeah
got it
` text`
```py
python code
```
> quote
|| spoiler ||
nice
~~strikethrough~~
you forgot space xD
sry
do I need to update windows terminal too
that you don't need to
k
also i'm pretty sure if you got windows terminal from store it auto updates
so where is my git bash
bye then
leave
import sys
sys.exit()
if it doesn't add it tell me and i'd just give you my profile
wait
okay 🙂
it didn't
oh then wait 1 sec
okay 🙂
k
couldn't figure out how to use the json, so made a fresh profile from the settings gui and copied n the data
it works
thx
ah np and srry left my pc on and went out
weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Hello
weeeeeeeee
@wind raptor Hello 😄
@somber heath forgot who iam
Lol
LOOLL
hgehehe
eheh
ok bai
Try saying "RegExp Explain extension" out loud 10 times.
💁 Fun fact: the regular expression to validate email addresses comes from the HTML5 specs and it's what web browsers use. But it's NOT correct. The specs say it's a "willful viol...
The GistPad extension from VS Code is a cloud for your clipboard
🔗 https://marketplace.visualstudio.com/items?itemName=vsls-contrib.gistfs&WT.mc_id=devcloud-00000-cxa
^ actually useful
@woeful salmon
Why it is useful
allows you to create -> view your own gists on github without leaving editor
Epik
could someone help me to understand this code maybe to rewrite in a simple way to make more easy to understand please
amp = lambda f: lambda g: lambda x:g(f(f(x)))
my_dec = amp(lambda x: "*" + x + "*")
@my_dec
def my_print(y):
print(y)
my_print("hello")
and thanks alot
I need some doubts about how to set it
just ask here
Ok
How to set this up
The last time I did this
God Damn Somehow My Import Bootstrap froze
See
@woeful salmon
I don’t want to happen this again
👀 what is thatt
wait do you want speech recognition in web page?
I am using for my bot
Which is Ai Learning
@woeful salmon
I am doing this on replit
never used replit for anything e xcept trying out lines of code in the logged out site
Ok
But
Can you guide me
Dude @somber heath my brains are flying out
Kinda
I can’t talk
Perhaps you could start wearing a birdcage over your head.
So this is an big disadvantage
Dude stop
@somber heath have you worked with speech Recognition?
nah just i don't get how are you going to give it audio input when its not on your pc even
Nothing to the point of usefulness here.
I have an mic
That’s it
It is an ear phones
Nothing too much
Or should I make an gui
@a@$@@@##@@#@#@#@##@##@#@#@#@#@@@#@#@#@#@@
yeah but you're running your code on rplit o-o can it even get the input from your mic there
A microphone. M is a consonant. An apple. A is a vowel.
A for consonants. An for vowels.
Dude
A castle. An igloo.
tell me
https://www.youtube.com/watch?v=ritp4gAqNMI
^ @severe veldt
today we talk about the most important skill I've learned for software engineering -- I also give you an easy framework to approach this yourself!
playlist: https://www.youtube.com/playlist?list=PLWBKAf81pmOaP9naRiNAqug6EBnkPakvY
==========
twitch: https://twitch.tv/anthonywritescode
dicsord: https://discord.gg/xDKGPaW
twitter: https://twitte...
How to do speech recognition on python replit
You mean that my audio wouldn’t reach the bot
why aren't you doing it locally?
Who got an fix for this
Are you running it on replit?
Yea
Should I’d o C or C++
Hi
hii opaalall
Good venting
hi everyonee
hey
what a time to be alive
You're trying to do advanced things when you've just started Python. Your brain exploding is your own fault.
Yea
But
My plan
Is to
Do an gui
I have different source of idea
For now
Just do an gui
I have an idea
I am going remodel my code and start some scratch
I am doing it from scratch ig
g is a consonant
What's the best key for push to talk
right ctrl
thanks!
hello
it was the left control before and as I'm copying stuff there's this beep boop sound I've just realized I was activating the push to talk silly me :p
heh
///<
I'm also a fan of CapsLock
😮 that's actually a pretty good one
Back in a sec, of course as soon as I get settled one of the partners needs something
Ackshually
brb
really? o--o me too... although i have escape and capslock swapped so technically i never use capslock but i do press capslock alot
tl;dr I want to be able to build recursive structures given a seed value
But I also want it to be stack-safe
I know it's possible but I'm fairly certain I'll be the first to do it if I do succeed
Recursive structures as in data types that refer to themselves e.g. trees
So, first you define some function that takes some "seed" value and produces a part of that recursive structure
Then, some function ana takes that function and makes it so you can build the full structure
something is seriously wrong with me past 2 days i wake up its 10 am i get done with normal human shit like eating, bathing,etc its 12 pm
i edit some code for like 5 mins its 7 PM O_O
It's a bit difficult to explain without background
But it's one of the most beautiful things I've come to know
"All I want for Christmas is you!"
"Mariah, please, no!"
Provided to YouTube by Universal Music Group
Eif's Lament · Barenaked Ladies · Michael Buble
Barenaked For The Holidays
℗ 2010 Desperation Records
Released on: 2014-11-24
Composer Lyricist: Barenaked Ladies
Auto-generated by YouTube.
G'day
it's selamat pagi for me
cute
my cat steals my food too
CATastrophe
hmmmm
oh my god
lol
cute
This is my cat every afternoon
i spose
no shame at all
she does this all over the house
<---- 👀 meanwhile me: don't hate animals but i really don't like having animals near me for some reason
i would own atleast 2 rabbits if it wasn't for that cuz i love rabbits
loool
Are dogs welcome here?
Safe - for now....
Who from whom?
YEaa that's so strange. all my kittens are different colors but their mom is like all white
YES
tell us how it goes
tes
i agree
symbols = ['ETHUSDT', 'BTCUSDT', 'XRPUSDT']
org_columns = ['open',
'high', 'low', 'close', 'volume', 'close_time', 'quote_av',
'trades', 'tb_base_av', 'tb_quote_av', 'ignore']
daysneeded = 10
path = Path('.\\data\\')
fromdate = str(datetime.datetime.now() - datetime.timedelta(days=daysneeded))
todate = str(datetime.datetime.now())
fromdate = fromdate.split()
fromdate = fromdate[0].split("-")
fromdate = f'{fromdate[2]},{fromdate[1]},{fromdate[0]}'
todate = todate.split()
todate = todate[0].split("-")
todate = f'{todate[2]},{todate[1]},{todate[0]}'
DFEND = False
async def historical_data(DFEND = DFEND):
for i in range(len(symbols)):
async def Get_Data():
try:
if DFEND == True:
klines = client.get_historical_klines((symbols[i]), Client.KLINE_INTERVAL_15MINUTE, todate )
else:
klines = client.get_historical_klines((symbols[i]), Client.KLINE_INTERVAL_15MINUTE, fromdate, todate )
klines_len = len(klines)
if klines_len == 0:
print('Failed to download data for ', (symbols[i]))
new_columns = [item for item in org_columns]
new_columns.insert(0, 'timestamp')
DF = pd.DataFrame(klines,
columns=new_columns)
DF['timestamp'] = pd.to_datetime(DF['timestamp'], unit='ms')
DF.set_index('timestamp', inplace=True)
if DFEND == True:
DF = DF.tail(len(DF)-1)
DF.to_csv(path+symbols[i], mode='a', header=False)
print('Downloaded data for ', (symbols[i]))
else:
DF.to_csv(path+symbols[i])
except:
print('*** Invaled symbol:', (symbols[i]), '! ***')
await Get_Data()
Can totally relate
!code
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.
@zenith radish It's not valid in Python because of late-binding
Forgot about that bit
Perfectly valid use-case in FP though 👀
!code
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.
wait i just said something weird :x defining a function doesn't create a stack frame
i'm brainded
I really wish I had a white board to write stuff in
Would you be okay with an online one?
For example: https://www.microsoft.com/en-us/microsoft-365/microsoft-whiteboard/digital-whiteboard-app
Barrel of monkeys. Can of bears. Tupperware container of wasps.
nani kore
何これ?
"Hi. I'm Miss Behave."
I'm quite happy knowing like 4 or 5 Kanji characters lmao
naruhodo
ipypi
lol
I know a couple and then I gave up studying
See how a bunch of text is green? You're escaping a '. \' So a bunch of stuff is trying to be part of that string which looks as if it shouldn't.
maybe it comes together with the ipython
my path ??
I'm rather stumped by this problem
Yes.
damn
Perhaps I could draw stuff
the amount of people
I really hate doing "quick cleanups" of computers for my bosses family
i donno anymore i think im just going to leave it lol
!e py a = "\\thing\\" print(a)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
\thing\
Nevermind.
it didnt work
@rugged root, is there a list of allowed file types in this server?
Blockchain AI-as-a-service
function only gets parsed when defined no assignments happen at that time which is why the thing is happening cuz it actually gets assigned when called @haughty pier
and it finds the i in its parent scope which is 9
If I don't get 2 cups of black tea per day I get headaches - and coffee doesn't substitute.
What can Discord embed on it's own?
I'm assuming that's pretty much just pictures?
what do u guys think of earl grey
Ah.
Curiosity now sated.
Thanks
really? 😮
black tea has several stimulants, google would remind me but I've got to do something else...
earl grey is black tea with oil of bergamot
Hell yes it is
I can use any black tea, so earl grey works for my 2 cups requirement.
Green tea doesn't.
do you guys take sugar with ur tea
energy drinks probably don't but I haven't tried it enough to know.
Can tea be shallowed?
God damn it
i only find hot coffee decent though
i love iced coffee ❤️
swallowed? I had a friend from china who would toss long strips of green tea (like noodles) in hot water and drink it plain, and eat the leaves...
I'm currently having iced
what does it mean to be shallowed?
As opposed to steeped
nice 😮 i wanna too but i have a cold unfortunately
what is steeped
oooh
oooohohhhhh
i just got it
lmao
oh my gosh
///<
good job
I too steep my black tea until I finish the drink
Which might be why I'm addicted and nothing substitutes.
I'll typically add a second bag along with the first after I finish my initial cup
bag reuse - reminds me of mom. She used to do that...
Or they cry until the wee hours of the morning because they don't want to go to bed
this was this morning
it was chillier than the cat expected
Still tried to until I reminded her that tea bags are a penny a bag (where I bought them last, anyways...)
They call it the wee hours because that's when you get up to do one.
It's not about the cost just the strength
I wish my cat would want my attention 😦
And then they get very upset when you try to leave them at the daycare, because they want you to hold them because they're sleepy
I wish I had a cat
Well I have like 6 right now
the white one just loves me
they're everywhere
but the small one only finds me when it's hungry
my cat is mostly fed by my wife, so she doesn't have much use for me and complains when I pick her up. She usually complains until I put her down, at which point she complains the loudest. I try to be gentle with her so it can't be my technique. I don't know what I'm doing wrong with her... but she's about 15 years old now, which is ancient for an American short-hair.
"doesn't have much use for me" I felt that
oh my god
Anyone who says they genuinely enjoy that musical are either lying or need to be committed
@swift valley https://en.wikipedia.org/wiki/The_God_of_Cookery
wha
Grizabella (Elaine Page) performs Memory from the 1998 production of Cats.
Buy tickets for your nearest CATS performance now:
http://www.catsthemusical.com/see-the-show
Lyrics:
Memory
Turn your face to the moonlight
Let your memory lead you
Open up, enter in
If you find there
The meaning of what happiness is
Then a new life will begin
Continue...
Though my nickname comes from https://remywiki.com/Aragami
God of Cookery is worth a watch if you haven't seen it. Unlike Cats the musical
Sure thing
I'll be right back
Hello,
They've got some two bite brownies in the kitchen, like some little store bought things
Their advertising is a lie
It takes me no bites
Only chewing
If I were to sing the praises of a product, would that be an advert I sing?
@molten pewter As soon as you said nom nom this is what I thought of (also bit of a volume warning, it starts/ is loud: https://youtu.be/SMWi7CLoZ2Q
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 Eating Cotton Candy
http://www.youtube.com/watch?v=QWNAU2HBg-A
from: http:/...
Okay so I did something that's probably never been done
so yay!
and I did it based on some research paper I read
So double yay
It.
def sum_func():
print('sheeeeesh')
n = get_func_name(sum_func())
# (i.e) n shud be a string "sum_func"
any possible ways to do this chat?
hi
sum_func.__name__
ftp?
!e py def func(): return "Thing" thing = func() print(thing)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Thing
?
I misunderstood.
uhmm no, I'm not saying return
yeaa 😅
i thought it was another pun 😂
yea same
I mean, you're either getting the return or None if you're calling it.
i want to do some c++
So unless you're giving the function, uncalled, to your other function...
Mind my terminal colors!
I just want like I wanna save the func name as a string to a variable, ;(
you called the function
oh- wait
n = _3sum.__name__
The Session Description Protocol (SDP) is a format for describing multimedia communication sessions for the purposes of announcement and invitation. Its predominant use is in support of streaming media applications, such as voice over IP (VoIP) and video conferencing. SDP does not deliver any media streams itself but is used between endpoints fo...
but i am gonna do some pytorch
telnet?
I have returned
HTTPS is nice
return of the KING
welcome back
nvm, I'm just bored to deth
we're all cat people huh
sus
Kalamazoo Is Not Green
byeeee
Absolutely! Hope to see you around
:3
good night..
Does the existence of programmers imply the existence of amateurgrammers?
Okay, ignorant question, sonia. For the headscarf, does the pink signify anything or is it just a style choice
it might indicate the presence of antigrammers
just a style choice, because it's nice..
they're pro-ouncers
"Down with the metric system!"
(not to be confused with pronouncers)
what is amateurgrammers
Sorry if it was a weird question
I just try to learn everything I can
Just hard to figure out how to approach it at times
**out of topic but, British accent be smoking 🥵 **, bye bye brb after dinner
@gentle flint In certain circumstances, peat can be an early stage in coal formation -> NatGeo
yea ig in ceratin circumstances
Gnominative determinism. Where your fate is determined by garden ornaments.
that sounds fun
Gnostic gnomicism.
im back!!!!!
ready to waffle away about CS,python ect
idk what i heard @zenith radish
i was just doing nothing
nothing else really
into wot @gentle flint ?
there was no disconnecting sound @haughty pier
i didnt hear it
in all honesty that one i didnt listen cuz somehow i got distracted
nvm
so...................................
@haughty pier , @zenith radish please explain what codes your making
i need to decide which stream to watch
@gentle flint i cant watch both
should i do computational thinking and make 2 tabs of 2 streams?
why so?
don't worry about me, I'm just goofing around while I think about work and work.
hmmmmmmm
intergrated development enviroment right @rugged root ?
Yeppers
pychamr has a sky blue one
i tried it with a free trial recently actually and i like visual studio better. except ReSharper
i wish i had money to buy it just to use in vs
lol
wait it got updated???
i am using 2021.1
let me update
i wish Clion was free ;-;
earth to world
can you hear me
earth to world
well atleast hear me in text
man never speaks on mic
cuz im young
and my voice sounds like kid
(im over 13 though)
whats right @molten pewter ?
bros
i must go now
i shall see you all soon
i am back
😂
Goodmorning python discord
going to go, bye 👋
bye
geez my laptop is warm...
https://dfinity.org/ This is the "Internet Computer" decentralized block chain that you can run code on.
I am so sorry for my voice, I recently changed things with the setup, tested it beforehand. I'll do further testing before talking on the chat. again, sorry for the inconvenience
You're fine dude
😢 i am still learning bro
------
> [ 7/17] RUN ./install-packages.sh:
#11 0.359 /usr/bin/env: ‘bash\r’: No such file or directory
------
executor failed running [/bin/sh -c ./install-packages.sh]: exit code: 127
Docker cares about line endings?
That's annoying
Time to set PyCharm on work Windows to use Linux line endings
utf8 too
Already using UTF-8 by default
anyone here uses photoshop
use gimp instead
hello
I do not, but what's your question?
Hey Aurora
How goes it
need an image edited with it, any image, specifically after compression and exif removal
I'm making a game in scratch 😄

