#voice-chat-text-0
1 messages · Page 925 of 1
your kind of breaking rules if you do
Nashua
wait
(your giving priv info)
sorry i said sh*t because @zealous marlin said something
ye
well i barely swear
@willow light .......
well im glad he survived through the new millenia
is that?
chad gamer?
rip @willow light nitro
can we get some f in chat
i made my banner
wait is that massabesic
(neutrality)
nice
looks like california
looks alot like it lol im like a 10 min drive from Manchester
my english teacher may like that @raw carbon
ooo
the watches
mad i got a question
i would like to say "f*ck you" to all the doxxers who want to do things to me
did u do the moderation exam to get into the moderation discord or were u given the badge by other means
makes sense
dammit im swearing way to much
im still waiting for my review
Hmm, I genuinely can't remember if that's how you're supposed to load the cog
#discord-bots will know way more than I
its monsters that sing
i despise this flag i only accept 13 stars or more
except if your doing liberia
then that passes
im gonna go now
yeah thats normal
bye now
@rugged root can you help me next w something?
I'm actually about to head home for the day, so I may not be able to but others might. What's your question?
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib'
even tho i have maatplotlib installed
how are you running the code
python3 <file>
OS?
so, u might have installed it into another environment
umm 1 sec
how did u install
pip install matplotlib
do python3 and then do import matplotlib
try python3 -m pip install <package>
oooh a bunch of red lines
not sure if macs still come with python2
pytho 3.10
oh
a bunch of red lines whenever i run that command
whats the error
thisone
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3b/2lg05s712c3fs2tjc0qvfgk00000gn/T/pip-install-fpwikamz/matplotlib_93234913d1dd4e22aa7adcc08c8d9dc0/setup.py'"'"'; file='"'"'/private/var/folders/3b/2lg05s712c3fs2tjc0qvfgk00000gn/T/pip-install-fpwikamz/matplotlib_93234913d1dd4e22aa7adcc08c8d9dc0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/3b/2lg05s712c3fs2tjc0qvfgk00000gn/T/pip-record-yilsi8vr/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.10/include/python3.10/matplotlib Check the logs for full command output.

when u type python3, what version does it open into
can i get video perms and i can share screen?
also try pip3 install <pakcage>
i did sudo pip3 install matplotlib and the same big red error
same
something header/tools are missing
try #unix or the help channels @whole bear
my commits for uni
#voice-verification here
i need to be apart of the server for 3 days before i can talk in vc
i joined like 5 mins ago
so what are yall doing?
that sounds painful
bro there are so many tabs (spaces) in that code it hurts my brain
lul
yea i have not quite figured out why i need to tab ( i know that it has something to do with the way python reads it)
is that to wiki for python?
Sorry for the late response, what is?
I was looking at this https://docs.python.org/3/library/functions.html#import__
@whole bear in here
i started coding discord bots about a month or so ago
but i got into python coding sometime last year
bye
uh it is going well but im not that good
im still learning
yea of course i started out with print ("hello world") and now i can do more than that so i am learning
all of those errors make me sad (and it is not even my code)
yea
lol
what IDE are you useing
ok
i use pycharm
yea pycharm was what i was i learned to use but i may use something different in the future
yea they have one for java script and ruby (i think)
minecraft
we get out for thanksgiving
for like 2 days
yeah haha
so how is the testing going?
oh
wow
ok 3 down 5 to go
6 down 3 to go lol
how do you fix that
WOW
ok so now all i have to do is wait 3 days and i can talk in vc
yea
what time is it where you are?
oh
it is only 6:30 where i am
pm
yea U.S
it is still the 4th in the U.S
it is odd
@earnest crag https://coverage.readthedocs.io/en/6.1.1/
imma go cya
Sadly not, GUI is not my kind of thing
Maybe clarify your question? The reason people aren't answering could be because they don't understand what you're asking for
can you ask them the one in vc if they good in tkinter
@whole bear are you good with tkinter
sorry i miss that
sleep same
ya same omg
i havent sleep
its morning already
i cant talk
i can text
WHAT!!
why
im sorry but i have to say both of you guys have nice voice
it feels like m listening to a podcast
what made you lost interest in coding
im sad to say my fav is html ...
ask me guys
asia
malaysia
is it okay if i ask how old are you guys
youre too smart to be 16
wait are you the oldest @whole bear
okay2 i need to say first
im 18 this year
wah nice
uhuk old
oh sorry
cough
older than us
JAHAHA
ok whats the latest meme
funny goofy sounds
ikr LOOOOOl
broo this is golddd
no no share
BTW I'm not gay
All of the creator credit is on the video.
#shorts #omniman #invincible #meme #tiktok #thicc #superhero
im 18 and this just tickle my funny bone
sus
something about omni man
@whole bear how come you dont share any
how is this a test
we dont see her zoomer humour
i just found them
all the good one on insta
@ionic forgethis is my favourite video of all time https://www.youtube.com/watch?v=2sBFkfcB8WA
shlooorp hahah
badlands: https://youtu.be/K2YBZNb2hLE
oceans draining: https://youtu.be/kvrAFFVVE9E
i literally got kanye west lego as my last saved
it was goofy wait ill try to send here
oh no
depressed thats zoomer
aaa missing you already
okay now that the girls are out
lets boy talk
Uuuuuuuh..
juicy
HAHAHA
ya same
im sending both you guys friend req
would love to have international friends
@brave steppe just wanna remind you to not sleep late
im pretty tired rn havent sleep at all
asia
its 9 am
ya
really trying to understand tkinter
and with my vscode being problematic
life doing its job
if you want to learn it
@shell dome in here
yeah i see :D
ill share you a good teacher i found
hi dude
you prob thought hes crazy from all the coding
Learn Tkinter in this full course for beginners. Tkinter is the fastest and easiest way to create the Graphic User Interfaces (GUI applications) with Python. Tkinter comes with Python already, so there's nothing to install!
💻Code: https://github.com/flatplanet/Intro-To-TKinter-Youtube-Course
🎥Course created by Codemy.com. Check out their You...
anyways here is the course
its 5 hours you can skip some of it and its really effective
GUIs are fun but they're way more difficult than I thought
the guy basically teach me the wholw thing better than my lects did
yup plus understanding them
I've made a couple Tkinter programs but it was annoying as heck 😄
Yeah you have to change the way you write your program a lot!
Me?
yes
Sure!
Oh wow
theres a lot but what came out is so lil
its a small part for my covid-19 reg app
thats the admin part
i put simple coloring and a fake title
but it only works for the administrator(first popup)
when i tried on the rest its just errors
frustrating as always
yep
i think so
ye i dont use any font
it is
would be simpler i think if i take time
but im trying my best just to speedrun
@whole bear hello there
#voice-verification in here
i need help asap aaaaaa
probably go to the help channels
ya and be very specific
okay
so @shell dome you see
line 34 till 56
im trying to use that on every page
but it wont work
do you have any idea how to do that
so in appointment and vaccination center
oh how
the default does look nice but changing it would look better
its fine
ill try looking for something
but ill prob erase the thing really frustrating
i just cant with @brave steppe he amazed me too much
How did I amaze you this time haha 😅
😅 yeah
i started doing this like 2 days ago
you can get there @shell dome
come sleep
come join me
HAHAHA
omg usa and malaysia have same time
just am and pm is change
okay im going to bed
its too late already by the time i wake up need to do the coding again
you didnt want to join me
so i sleep first
here ^
import fastapi
router = fastapi.APIRouter(prefix='/{thing}')
@router.get('/')
async def endpoint(thing: str = fastapi.Path(...)):
print(thing)
return {'msg': f'Cool {thing}'}
app = fastapi.FastAPI()
app.include_router(router)
@dense ibex this works!
You can use path parameters in the router prefix
guilds = APIRouter(prefix='/guilds')
guilds.include_router(other_router)
# main.py
app.include_router(guilds)
lonely vc ma guys
yep
ayo
Rick roll ed
twice
I have an math exercise and le program doesn’t work someone can explain to me please
mu code editor??
Yes
i used it sometimes on my bbc microbit
Ok thanks
unindent it
I play FIFA 22 too
im assuming that's your problem
ps4
Whyyyy it doesn’t work gas dawm
/
When I put seuil(x) in the consol nothing appears
Where do u live
Me in France
BAGUETTE
me?
india
ya, its a good monument
https://en.wikipedia.org/wiki/Demographics_of_sexual_orientation Hm. So it's...more complicated.
Obtaining precise numbers on the demographics of sexual orientation is difficult for a variety of reasons, including the nature of the research questions.
This article lists demographic studies of sexual orientation from different countries. Tables comparing several cities' population numbers are also included below.
It is difficult to exactly g...
That's an awful orange/red.
So I may have been off.
The fluorescent one.
Because statisticians love data.
Maybe Germans are more open about it.
But yes.
I see your point.
No mention of Iran. Shocker.
waduup
wachya guys doing
i want python
in
my viens
i want it now
anyone got some?
i need the python code
for my code
ffmpeg-n4.4.1-win64-gpl-4.4.zip
It’s pretty cool
In France is 7am and I don’t sleep I’m TIRED
its 11:39 am in india
I must don’t sleep until 21pm because if I sleep now I’m going to wake up at 20pm and Monday I have school lmaoooo
@robust quiver you slept
Lmao
Me NOT
Im going to play fifa to don’t sleep
Stoppp please lmao
I packed lukaku and Suarez in the same pack
And it’s traded
5 * (lvl ^ 2) + (50 * lvl) + 100 - xp
lvl is your current level
xp is how much XP you already have towards the next level
@steady vigil Check out the #voice-verification channel
That'll tell you what you need to know
o/
GAH!
I was going to make a aeroplane reference.
For some reason, I always get confused for half a moment whenever anyone mentions Go. I always think of Logo.
"I took these numbers apart. Some mathematicians came after me. They weren't pleased that I'd somehow redefined pi to be seven."
"They felt that they should have been the ones to do it."
One sec, sorry
"Oh sorry, were you wanting to sit in this?"
It's as large as an arm chair
@gentle flint Our printer vendor is back here, talking to him for a bit
"Oh, damn. It got stuck on the window."
I mean if you count print jobs as being vended
It's oriented.
It's not laziness. It's the conservation and efficient use of energy.
Because nobody learned from Beirut.
Idiots.
Yeah.
Nowhere near as bad.
Even so.
Drone swarms.
Drones with lights.
People still like big bangs, though, I suppose.
Funny that.
That's generally more stable though, yeah?
I'd be less worried about a big stock of it than of blackpowder.
Well...fireworks.
Whatever that uses.
day 2
of not earning the talking stick
reasons milk should earn a talking stick: i can make a fun conversation
cries
is there a cude coder here
cute
well what is ur opinion
who is the cutest coder here
HAHAHA
what weird advances
confused?
him who ?
oh
HAHA
sorry sorry
i need to open a topic
yeah yeah
HEYYY
padapampampam
i will meet yall tommorow
nice to meet ya
pew pew
hi katieee
im milk
hi jake
im milk
If you are trying to spam messages to get voice verified it won't work, you will just be voice banned.
nah i got 50 yesterday im just bored and wanna talk
@silent cedar
eyyyy
hola amigos!
hi apple
hi milk....
how are u apple
I think it is the fatter HDMI cable that I got (both ends are the same size, and it plugs into my laptop & [dumb] HDTV just fine ... with sound support that I refuse to utilize as it is further from me than my laptop screen is... I don't blast music.
tired
idk how many glass of waters i have drank
keep going
¯_(ツ)_/¯
what kinda tea
that person drinks unsweeten black tea
if i remember correctly
Dear cat, how do i get better at classes?
what kind of cat do you have?
eat more mice
lmaoo
i dont even have a bed!!!
a female one
bruh throw your cat
no
i will come to your house and sleep on the bed
i love cats
i have a regulation grey and black speckled cat
I will squeeze a wet sponge over your neck
dear cat what should i do while i wait for the talking stick??
with ice cold water
oh just generally, just making coversation. i can ctrl v from stack exchange dw
You've heard of the term "cat bowling"?
very nice
do you have a pic?
am i ok?
i havent slept for 7 days man
close ur eyes
listen to asmr
it helps
yes
it is animal abuse imho
noppe just chemistry exams
i have a poor understanding, it's an upper level of composite functions right? just with different syntax on the highest level
+1
7 days a week
my brain cannot comprehend
cries
are all of u here programming pros
anyone from Indonesia?
Not the way I've heard it, but maybe people have different takes on the vigour with which it's to be done.
i won silver in the 2016 rio coding olympics.
i just know like upto file handling in python
THATS COOL
bruh why the fugg do people go to gaming tournaments as audience
it is like old people fitness(wii)
does anyone here know chemistry 😢
uh just simple ones
like haloalkanes and haloarenes
@rare magnet Would you mind changing your nickname to fit our nickname policy? See the #rules channel for more info on that
damn now i understand y your mic sounds good
hemlock
u r a mod
your net worth must be in billions
actually nois hobby maen
wut is your main hobby maen
i mean like job
I should get a non-potato mic
But it's so eco-friendly
I make discord bots for a living 
ha
u must get all the ladies 😳
like u must be like a chick magnet
yes all 0 of them 
I'm Administrative Support at an accounting firm. I do standard clerical work, I deliver tax and payroll to our clients, I'm our inhouse IT, and I also do some building maintenance such as replacing lights and building office furniture.
cool
Mr Hemlock more like Mr IKEA
that emote lol
yesterday i found this
one sec
make lego furniture

u will get hella ladies
gimme your best Minecraft pickup line
I don't have any at this time ... If I try to make one up, it'll probably not be that good, and far from the best.
yea idk y i asked aswell
i was about to ask gimme your best pickup line
but i asked minecraft pickup line bcos i tot it would be funney for some reason
@dense ibex wut r u doing btw
@dense ibex
are there actually these triangle type of arrow heads?
this came up for Bronze Age arrowhead
w<
aah
and on mobile it didn't tell me i was gonna ping anyone lol
bcos i have went to archery class and in 2 years i never saw a triangle arrow head
ik
Especially if in landscape
i get no landscape on iOS :(
@dense ibex levelling
sure the practice arrows at archery class don't have a hunting tip anyway?
They're both right.
rmbr that time i sad your indentation was wrong, it's bc on my phone the width wasn't wide enough so your indented line was pushed to the next line
with no indication that it was pushed to a new line
leveling levelling ??? sdjfsl
Even if my first impulse is to say that American English is wrong wrong wrong.
true
Ah so it shown some empty lines?
i hate the fact that there are 2 english (american and england)
en_US and en_GB ... same
like there are soo many spelling which i get confused and my some of my teachers use amercan and while some use england
and i just have to remember which teacher like american and which teacher like england english and then remember the spelling in england and american
@dense ibex Your audio sometimes sounds like you're moving your microphone toward and away from your face in repetition.
yes 1 empty line and your indented line showed on my side as not indented at all
w<
first time hearing americans actually speaking
and i can't do landscape mode on iOS..
easy to happen when in portrait
i guess android discord has landscape?
I
at iOS
configs are code /s
@dense ibex Because Joe hasn't done that already.
katie r u a catfish
tf?
Nani
I am working on a leveling system
nm i tot someone else's voice is katie's
nah i tot jake voice was yours
sorry mb
where r u guys anyway
Please be respectful. This is not an appropriate question to ask anyone here.
i am sorry soml mis understanding
she's still here
I'm on my phone now. going to go eat breakfast, so I use my phone with a different account
Because my laptop setup uses my laptop's mic (which I cannot do the same on mobile)
:incoming_envelope: :ok_hand: applied mute to @silent cedar until <t:1636126207:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
!unmute 323721771486412800
:incoming_envelope: :ok_hand: pardoned infraction mute for @silent cedar.
just sorry
Hii
did'nt realise how rude it was even though that was misunderstanding
btw is this server like actually created by creators of python
Nope, just a lot of folks passionate about the language.
The US
?
I took it as the latter and was amused.
my english starts with swearing only
hey guys 👋
like every single sentence i saw will contain atleast 1 swear word
"He's been through three monitors in the last hour."
"Should we take the bat off of him?"
"No, he's our best programmer. We're in the presence of a master."
Ayy
r u 3 doing a project together?
helu
as always i dont get
The implication is that the guy is smashing his monitors in frustration
Oh
oh
A remark was make that drew a correlation between swearing at your programming and being good at programming.
I extended it to physical violence.
yea your jokes are deadly
@rugged root would u consider yourself a pro on python
Not at all. I always have more things to learn
Brothon.
Is it py thun or py thawn
wut do programmers do when they do as a profession
🤔
"Cha, import like, dude, math and stuff"
.bm
be scared
be very scared
-thawn
i feel dumb asking everytime what is the joke
anybody here plays valorant?
Not likely.
Some, not everyone here
do u pleay?
Have I just made an accidental contribution to Yeethon?
bool('')
Ah.
i had to put that on idle lol
hey i have a small school project to do
That’s what I thought … altho I actually say it both ways interchangeably
this is like a very very basic project, so if i have some doubts will u guys help?
At least it is not PyTHONK! … *rolls eyes*
ye
@dense ibex why aren't you in school
Pfft
Do it for you? No.
Help you understand the question / etc.? Depends on if we know it.
I don't have school this week
tf
i have to create a website where the admin enters movies with their rating and review and the viewer just need to look at the movie description and must be able to give their rating
y
end of quarter
wack
u would definitely know it is very basic stuff, i would never ask to do it for me
hey btw is this levelling up code ting is for this server or
?
@glass forge Your audio quality took a dive.
にゃ~
how would u guys learn a language
Programming or human?
programming
Or math
there is language in math!??!?!?!?
whoa
THE language of the universe
Nobody ever agrees on math notation
But I don’t understand it
?
🤔
Which makes it incredibly difficult to read papers on related topics
What is the answer to everything in the universe?
Set notations varies sometimes
wut is math notation
1+1=2
I was just about to say that.
that fancy f and a weird formula to the right of it, etc.
42
"You're doing this to yourself"
u mean function, or i am too dumb?
That's part of math notation, correct?
ye thhat only i also meant
Well… that’s a very difficult question
just press ctrl + r
i am do very funny joke ahhahahahh
ok my joke was that bad that u guys didnt even understand it joke
forget i said anything
yes sleep is for the weak
@molten pewter YES
Straight out of post 9/11-related bigotry.
Pfft
how old is 'adult'
u just get to do everything at once
nah
19 yo in korea
The age of majority is the threshold of adulthood as recognized or declared in law. It is the moment when minors cease to be considered such and assume legal control over their persons, actions, and decisions, thus terminating the control and legal responsibilities of their parents or guardian over them. Most countries set the age of majority at...
like u get driver licence ,consuming hydroxy alkane and many other stuff at once
so it is just just a bit nerve- recking
Hudroxy alkane?
Merniferst dersterner.
Not surprised
alcohol, u guys sounded soo smart , so i wanted to do show some smort aswell : )
i might be wrong with hydroxy alkane as well
i suck at chemistry aswell
U dont have to try so hard apple
🤔
Its how u pronounce nerds
Dafuq? That's weird that it even possibly perceived that as a Lancebot command
Age of majority should not be confused with the age of maturity, age of sexual consent, marriageable age, school-leaving age, drinking age, driving age, voting age, smoking age, gambling age, etc., which each may be independent of and set at a different age from the age of majority.
The various legal implications tho
Bye everyone its been fun ima go to bed now
i am thinking about doing freelancing as a web-developer in my holidays
bye bye
will learning django and python and css and html be enough for doing this
learn js instead of c++
for web dev
sorry i meant css
idk y i put ++
isnt java another back end software?
Can be
you also wanna look at some sql
for db(s)
Although it should be noted that JavaScript and Java are two different things
ye i know sql
ye i know they are different but idk wut either of them do
i know MYSql
mysql and sql is different
JavaScript is primarily for adding functionality to websites. There is a backend implementation called Node, but mainly that's what JS is for, front end functionality
Java is a general purpose language, it can be used for anything
i have neverused mysql, i use postgres or mongo
oh
but i know python already like atleast a bit so i am thinking about being a python based developer for now
aaah can u tell me if there are some special functionality in mongo or postgres
Something to keep in mind is that Python isn't often looked for as the primary language (although it does seem more commonly needed in the Eurozone, can really only speak for the US). Python is a fantastic tool, it can do all kinds of stuff, but typically a job is wanting other languages
i have never used mysql so i can compare the functionality but
https://www.mongodb.com/why-use-mongodb
https://www.databasestar.com/why-use-postgresql/
you can pick one according to your use
It is, however it's better to have a couple languages under your belt
ye i thought about first learning all python based stuff first
@rugged root what is your opinion on the Golang ? is good or not ?
and can u guys suggest me how to learn django
like from which source
@devout mountain can u gimme the link for a site u created I want to have a look
if u can
I created a site? That's news to me
I'm indifferent about it
If you have a golf tee that explodes when struck, is that an unsafe tee?
I don't know enough about it or used it, so I don't have a solid opinion
I do however like to give my friends who use it crap for doing so
But that's more for having a laugh with friends
ooo okey thanks
jq is like
sedfor JSON data - you can use it to slice and filter and map and transform structured data with the same ease thatsed,awk,grepand friends let you play with text.
Depends on the snow.
Either way, glad to have you pop in for a moment, even if just in text
No
Not in #voice-chat-text-0
You'll probably have an easier time by using the help system. See the #❓|how-to-get-help channel for more on that.
have just started learning golang
also I am learning golang for a short time
!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.
Try that
One sec
Sorry, talking to co-worker
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
POST VOID is an absolute banger that snuck up on me on the Steam front page, and quickly became the best $3 I've ever spent.
Patreon: https://www.patreon.com/LeadheadYT
Merch: https://leadheadshop.com/
Discord: https://discord.gg/PVvXESU7WU
Second Channel: https://www.youtube.com/Porkbrain
Twitter: https://twitter.com/LeadheadYT
Instagram: http...
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@whole bear @vale meteor you guys can help me with Tkinter?
Using a brand new algorithm, QLearning, I teach an AI to drive.
Huge thanks to Brilliant for sponsoring this video, check them out at https://brilliant.org/codebullet
Art created by @Dachi.art https://www.instagram.com/dachi.art
Twitter: https://twitter.com/code_bullet
Patreon: https://www.patreon.com/CodeBullet
Discord: https://discord.gg/UZD...
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i am kinda new here so i have to complete 50 textsXD
guys does anyone of you know about arduino
Madlibs
What are you saying I didn't understand too much
Ohh no I need to practice English also
I am going to practice English language
Ok thankyou I understood this
Hindi
Leave my topic just focus on code😂
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
invoke_without_command=True
it's nice to help people who aren't as experienced as you might be
it's just a nice feeling when they say that the solution you gave them worked out
// Utility functions
const isLessThan = (a, b) => a < b;
const isGreaterThan = (a, b) => a > b;
const PythonicRange = function* (start, stop, step) {
switch (arguments.length) {
case 1:
[ start, stop ] = [ 0, start ];
case 2:
step = 1;
case 3:
break;
default:
throw new TypeError('PythonicRange(): argument count must be between 1 and 3');
}
if (!(
Number.isSafeInteger(start) &&
Number.isSafeInteger(stop) &&
Number.isSafeInteger(step)
)) {
throw new TypeError('PythonicRange(): Expected integer');
}
if (!step) { // zero
throw new TypeError('PythonicRange(): Invalid step');
}
const test = step > 0 ? isLessThan : isGreaterThan;
// note that if step is negative, `value += step` will still properly work as expected.
for (let value = start; test(value, stop); value += step) {
yield value;
}
//return NaN; // uncomment to see what happens when you return a value.
};
for (const gen = PythonicRange(6); ; ) {
let { value, done } = gen.next();
//if (done) { break; } // right here is how 'for-of' loops work.
// uncomment out the above one after testing the result of an uncommented `return NaN;`
console.log({ value: value, done: done });
if (done) { break; } // leave this "duplicate" alone, even if you uncommented its clone.
}
damn
so you just spent those 20 minutes typing that out?
god damn
dedication of a warrior 👑
# Python
x = iter(obj) # 1
try:
y = next(x) # 2
except StopIteration:
print('end')
else:
print('value:', y) # 3
``````js
// JavaScript
let x = obj[Symbol.iterator]; // 1
let y = x.next(); // 2
if (!y.done) {
console.log('value:', y.value); // 3
} else {
console.log('end:', y.value);
}
function* range(start=0, stop=0, step=1) {
if (stop === 0) {
stop = start;
start = 0;
}
for (let i = start; i < stop; i += step) {
yield i;
}
}
for (num of range(1, 10, 2)) {
console.log(num)
}
could you not just do this? o- o
with error checking
that's funn 😮
lol
{
"toString": "this will cause an error when invoked",
"valueOf": "so will this for the same reason, but when invoked in its own way"
}
``````js
// Assume that is `jsonText`
let data = JSON.parse(jsonText);
[
(v => v.toString()),
(v => v.valueOf()),
(v => String(v)),
(v => +v)
].forEach((func) => {
try {
console.log({ ok: true, value: func(data), error: undefined });
} catch (err) {
console.log({ ok: false, value: undefined, error: `${err.constructor.name}: ${String(err)}` });
}
});
```Results from Microsoft Edge (Chromium-based) <attached>
void func(int start, int stop, int step) {
// code
}
void func(int start, int stop) {
func(start, stop, 1);
}
void func(int stop) {
//func(0, stop, 1);
func(0, stop);
}
const obj = {
[Symbol.toPrimitive] (hint) {
console.log(['default', 'number', 'string'].indexOf(hint));
return 0;
}
};
console.log(obj); // outputs the object as the console normally does.
console.log("" + obj); // given: default
console.log(5 + obj); // given: default
console.log(+obj); // given: number
console.log(0 - log); // given: number
console.log(String(obj)); // given: string
anyone?
I just had my own laptop and still new to discord hehe
pewds fan??
Totally since amnesia
and altho it may be a big leap I want to try graduating CE
so maybe I'll learn some programming
tho my brother said python may be too much
:<L
xd
I will try my best ^_^
which language are you learning
I am practically in the starting line now XD
]
@whole bear o/
how do i unmute
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i am varifeied
There is a command to be performed in the channel.
If you meet the criteria, the role will be added to your profile.
I don't see one.
i am banned from speaking 😭
You've had administrative action taken against you?
@dire folio why banned from speaking 😭
Hi
@tribal tendon o/
Why you have the red mic?
im too epic to be able to speak aparently
xdd
Hm. Yeah. Red mic. Not the best of signs. Sorry. 🙂
You are not allowed to use that command.
😠
I have some chores I have to go do but somewhere in between I'm going to try holding office hours today, if that's ok.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
if you can't talk and want to know why, do this ^^^^^^
But you can talk in chat here and I can respond via voice
no I'm not doing that I'm staying in the Python channel to talk Python and hold office hours (for an indeterminate amount of time.)
97gig
@dense ibex (min(image.size), min(image.size)) basically
from time import sleep
from threading import Thread
ts = []
while True:
ts.append(Thread(target=sleep, args=(1000000,)))
ts[-1].start()
print(len(ts))
>>> from time import sleep
>>> from threading import Thread
>>> count = 0
>>> while True:
... Thread(target=sleep, args=(1000,)).start()
... count += 1
... if count % 1000 == 0:
... print(count)
Ah yeah, troll OR a so-called "expert" .... got to love them. *sigh*
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser @dense ibex this will allow PowerShell scripts that are signed to run
BLOCK_SIZE = 1024
while True:
data = infile.read(BLOCK_SIZE)
if not data:
break
outfile.write(data)
when did you shift to vscode jake 👀
@dense ibex ```python
CHUNK_SIZE = 4096 # This is the default that FastAPI and Starlette uses
def streamer(bytes_io):
more_body = True
while more_body:
chunk = bytes_io.read(CHUNK_SIZE)
# If we did not receive as much data as we requested, that means that the file
# does not have more data. Which makes this False
more_body = len(chunk) == CHUNK_SIZE
yield chunk
In your body
return StreamingResponse(streamer(...), media_type="image/gif")
I'd do something like this
!user
🌄

Created: <t:1580002257:R>
Profile: @dense ibex
ID: 670802831678373908
Joined: <t:1609774606:R>
Roles: <@&267630620367257601>, <@&764245844798079016>, <@&764802720779337729>, <@&463658397560995840>, <@&542431903886606399>
Total: 4
Active: 0
You are not allowed to use that command here. Please use the #bot-commands channel instead.
>>> bool(b''), bool('')
(False, False)
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.