#voice-chat-text-0
1 messages Ā· Page 898 of 1
what kinda courses?
Sql python network hacking etc.
oh
imagine
A captive portal is a web page accessed with a web browser that is displayed to newly connected users of a Wi-Fi or wired network before they are granted broader access to network resources. Captive portals are commonly used to present a landing or log-in page which may require authentication, payment, acceptance of an end-user license agreement...
Join the challenge or watch the game here.
"low whistle"
Hi there!
how do you add up all integers in a list and then print that amount
!e
x = [1, 2, 3]
print(sum(x))
@gentle flint :white_check_mark: Your eval job has completed with return code 0.
6
ok thanks B)
gotta go, cya
cya
g'day 1 verbose oof
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ummm
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Come play Smash Karts
https://smashkarts.io/join/yQe5
Smash Karts is a free io Multiplayer Kart Battle Arena game. Drive fast. Fire rockets. Make big explosions.
I am from Bangladesh
Piff, The Magic Dragon performs his unique style of irreverent comedy on the pilot season of Fool Us in the UK.
I am joining the game
well, I am learning python
I am a beginner
can anyone teach me python
ahhhhhhh!!
the game is talking a long time to load. I am leaving the game
I know somethings of python. LIKE: print, input, while loop, if/else and I can make something with turtle
def / class
I also know calender
there are 8 moderators. there are so many
I was a mod in another server
but they deleted all the roles
Which country are you from?
One of my uncles live in canada
Actually, I am a kid
I am 13 years old
Oh same
you are too @cinder vector
Ya I am also 13
India
I'm from bangladesh
oh
I can speak and understand hindi
ohk
x = n || ""
!code
x = n or ""
result = AA or BB
# samme as
if bool(AA):
result = AA
else:
result = BB
try:
cache
except NameError:
cache = {}
ValueError: invalid rectstyle object
```
File "C:/Users/edvar/PycharmProjects/Pygame playground/venv/main.py", line 35, in draw_window
win.fill(0, 0, 0)
ValueError: invalid rectstyle object
win.fill(0, 0, 0)
ValueError: invalid rectstyle object```
win.fill( (0, 0, 0) )
win.fill("black")
Dwitter is a social network for building and sharing visual javascript demos limited to 140 characters. See the impressive creations crammed into so few characters, and play around with your own code!
c.width|=Y=L=314,O=99,x.translate(960,540)
T=frame%L*2,K=(T<L)*T++,K||x.rotate(T/O)
D=(X,W)=>x.fillRect(X,Y,W|2,9)
for(;Y>-L;)W=-(J=O-C(Y--/O)*O+4)*2,Y*Y>8e4|Y>L-K|(Y<0&Y>K-L)?D(J,W):D(J),D(J+W)
u(t) is called 60 times per second.
t: elapsed time in seconds.
c: A 1920x1080 canvas.
x: A 2D context for that canvas.
S: Math.sin
C: Math.cos
T: Math.tan
R: Generates rgba-strings, ex.: R(255, 255, 255, 0.5)
@uneven yarrow ?
.
https://developer.mozilla.org/en-US/docs/Web/API/Sensor_APIs
i was asking if you know about this
its really fun to play with
hey @uneven yarrow its been a long time
i am fine
how about u
ya i am also from the same party
ya
u got that
splitgate
hi
yes yes
my nitro ran out yesterday
so i cant use animated emojis anymore
not a big deal
but still was pretty good
i got pinged here dk who did that ping me again if it was important
^
$foo = "hello world"
Write-Output $foo
$foo = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($foo))
Write-Output $foo
$foo = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($foo))
Write-Output $foo
Hey @civic wyvern!
Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:
⢠If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)
⢠If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:
import pygame.freetype
@wind raptoris that correct?
What do you think?
B
B
yeah
bor du i en kloakk
men jeg klarer ikke Ƅ komme pƄ noe
import pygame
from pygame.locals import *
import time
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
GRAY = (200, 200, 200)
pygame.init()
screen = pygame.display.set_mode((640, 240))
sysfont = pygame.font.get_default_font()
print('system font :', sysfont)
t0 = time.time()
font = pygame.font.SysFont(None, 48)
print('time needed for Font creation :', time.time()-t0)
img = font.render(sysfont, True, RED)
rect = img.get_rect()
pygame.draw.rect(img, BLUE, rect, 1)
font1 = pygame.font.SysFont('chalkduster.ttf', 72)
img1 = font1.render('chalkduster.ttf', True, BLUE)
font2 = pygame.font.SysFont('didot.ttc', 72)
img2 = font2.render('didot.ttc', True, GREEN)
fonts = pygame.font.get_fonts()
print(len(fonts))
for i in range(7):
print(fonts[i])
running = True
background = GRAY
while running:
for event in pygame.event.get():
if event.type == QUIT:
running = False
screen.fill(background)
screen.blit(img, (20, 20))
screen.blit(img1, (20, 50))
screen.blit(img2, (20, 120))
pygame.display.update()
pygame.quit()```
"""Draw text to the screen."""
import pygame
from pygame.locals import *
BLACK = (0, 0, 0)
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
GRAY = (200, 200, 200)
pygame.init()
screen = pygame.display.set_mode((640, 240))
font = pygame.font.SysFont(None, 48)
img = font.render("1 2 3 4 5", True, RED)
rect = img.get_rect()
pygame.draw.rect(img, BLUE, rect, 1)
running = True
background = GRAY
while running:
for event in pygame.event.get():
if event.type == QUIT:
running = False
screen.fill(background)
screen.blit(img, (20, 20))
pygame.display.update()
pygame.quit()
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640, 240))
font = pygame.font.SysFont(None, 48)
img = font.render("1 2 3 4 5", True, (255, 0, 0))
running = True
while running:
for event in pygame.event.get():
if event.type == QUIT:
running = False
screen.blit(img, (20, 20))
pygame.display.update()
pygame.quit()
str(variable)
left_wins = 0
left_wins_str = str(left_wins)
Menai Suspension Bridge
and im trying to do an 3D graph, that imports numbers of a txt file
how can i do this?
dunno
Britannia Bridge
Events at LAG. LAG is a hacklab project coming out of the SLUG (Squatting Linux User Group) mesh.Our main focus is the relationship between politics and technology, both at a practical and theoretical level.
!voice
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@echo sierra
!voice
archbang
what the euro tunnel is 200 euro
hello @haughty pier
hi @stoic grail
hello
hi
fresh drip š
hello
hello
:>
:3
How you doin?
great
Indonesia
k
nope,
text editor
actually i dont code games ,not tried it
@woeful salmon chemistry paper
any experience
had given school paper just 2 min ago
op man bros likes to pinch i guess
since he some times irritates a lot of guys
commonly Opalmist
he was just joking i think
Hi people
A quick question: Is there a software license for open-source code that makes sure the one who intends to share your code (edited or not) mentions you as the original creator or something, or is it entirely up to the person to mention you (with or without you informing to do so)?
I want to use the GNU GPL3 and was curious about this detail. Not that it's a matter of life and death, just saying...
hello
temp muted to verify my audio settings
sick
Hello:p
we can hear you katie
is anyone still alive?
lol
weeeeeeeeeeeeeeeeeeeeeeeeeee
reaperz is coding
I am voice verified
understandable
good
and this silence is figuratively killing me
Just kidding man
ik :).
Hello
hello
what country are you from
I don t speak Inglish
i dont have perns to speak lol
u australian ?
I don't know English either, so I'm just using Google Translate to speak.
that's great
ye
k
how'd you guess?
mans really stalked me lol
all good
how long did the linktree take to load?
not so long ig
how old r u ?
Why can't I speak?
?
you need perms, read #voice-verification
who's that in ur pfp
!voice
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
gf and i
alright lad you can stop now
!voice
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
did you send it in #voice-verification ?
import sys
print "This is the name of the script: ", sys.argv[0]
print "Number of arguments: ", len(sys.argv)
print "The arguments are: " , str(sys.argv)
python3 yourprogram.py yourvariable=10
import sys
yourvar = sys.argv[1]```
yourvar = "yourvariable=10"
hello
If you enjoy this series, please consider supporting my channel on Patreon for just $1 per month. (Thank you!) http://www.patreon.com/jayforeman
Get 2 months of Skillshare for free! http://skl.sh/jayforeman
PART 2 is here: https://www.youtube.com/watch?v=_DNNIB_PdaA
Written by
JAY FOREMAN and PAUL KENDLER
Filmed and directed by
PAUL KENDLER
...
1 minute 31 seconds
@zenith radish
or you can pay someone to do it
I think mowing grass would show other neighbors that you take care of your house @haughty pier
I'd rather be myself rather than being like someone or not being like someone else @gentle flint
looks very nice
someone give me a link to C/C++ discord server
Dude you are in the call from the mornin,lol no offence
mornin for me*
hehe
sorry, I probably should have dropped before I went to bed
OH LOL
why didnt it send you to the afk vc?
idk
I couldn't find this anywhere on the internet so I figure I'd upload it. Copyright and props to original author, whoever they may be...
haii people you sound great whoever's talking
ok now you don't
rrrrrrolling yourrr tongue now?
uhmm
hi guys
he'h rar
- starts trilling the life outta my name

oh' la la, mesieu fracais
actually that sounds kinda more like it
agree
Perhaps comparing his normal voice to Robin's, to try and get the vocal position
je veux parler francais, mais je ne practique jamais
how does kawaii sound in french? š¤£
no, like kawai french kinda talking
oxymoron
autological
pastafarianism
Python3 ... print is a function, not a keyword
and I'm in a VC (virtual world) so cannot easily be in both
That's python1 
oh?
Python2 also uses it as a keyword
>>> # py2
>>> print (True)
True
>>> print (True, False)
(True, False)
``````py
>>> # py3
>>> print (True)
True
>>> print (True, False)
True False
if you're in Python 2 and you want your code to be forward compatible with Python 3, your first import should be from __future__ import print_function
But Python 2 is basically defunct now so you shouldn't be in it unless you're in an organization that still forces you to write new code in it, for whatever reason...
Batman (Kurdish: Ćlihā) is a Kurdish-majority city in the Southeastern Anatolia Region of Turkey and the capital of Batman Province. It lies on a plateau, 540 meters (1,772 feet) above sea level, near the confluence of the Batman River and the Tigris. The Batı Raman oil field, which is the largest oil field in Turkey, is located just outside the...
I gotta go
ttyl
bruh
print('Hello world')
import __hello__
print Hello World
or if you want it twice then import __phello__.spam i think
Do I need to do this?
No
What is wrong?
print{[Hello world]}
alias loopback_start='pactl load-module module-loopback latency_msec=1'
alias loopback_stop='pactl unload-module module-loopback'
^ if you wanna test your headset on linux š
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
bro @wet atlas are you meming
ik u just fooling around
if you're serious then its just print("hello world")
print{[Hello World}]
thanks
^ bunch of resources (vids, courses, books) for learning
f\
=\
t(
''
,(
),
{
'\
f\
':
k(
'\
H\
e\
l\
l\
o\
,\
\
w\
o\
r\
l\
d\
!'
)}
)(
)\
.f
guys i need help can u check out #help-pineapple
pleaseeee
ahh ..... what should i do now....
you guys saw the hawkeye trailer ?
se7en
@muted belfry next episode its gonna be better i guess... mostly gonna see tony alive for a while hopefully
I saved it to watch later
i actually am reading more manhwa then manga these days
let's see how It look
dunno why but i am
manhwa is korean comics
manhua is chinese
lol
i've read many but the most famous one is easily Solo Leveling
that's way too popular
i feel like a caveman ......listening to all these
awww
i feel like a nerd
there are way too cringy adult ones
š¤
@subtle orchid u from PAK?
nah i am ok, just don't like cake
you guys participate for some international comp?
pyweek
for games?
no no like robotics?
nah
Biryani is my favourite dish bro
AUTHENTIC
yea bro
Dal chawal => Rice lentil
most comforting food ngl
Me
man my VC is suppressed
!voice
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
i gotta send 50messages
ye
how?
you know chathur?
the stage scene
no :(
i am on linux, is it free in steam
lol no
@muted belfry no thats wrong
I couldn't find this anywhere on the internet so I figure I'd upload it. Copyright and props to original author, whoever they may be...
@woeful salmon
@gloomy vigil we need #rust-hater here
yessss
ok ok
I had a great time talking with you all take care...Lol I am actually watching valorant tournament right now
bye
goodnight
haha lets make multiplayer survival game brr
⤠Free Download - https://store.steampowered.com/app/1625450/Muck/
⤠Wishlist KARLSON - https://store.steampowered.com/app/1228610/KARLSON/
⤠Discord - https://discord.gg/dani
⤠Twitter - https://twitter.com/DaniDevYT
⤠Facebook - https://www.facebook.com/danimilkman
⤠Instagram - https://www.instag...
dani uses intellij, he make these games in java
:/
Watch how I made Subway Surfers 2020 Remastered version (or I will eat you).
----------------------------------------Links----------------------------------------
My Patreon: https://www.patreon.com/fatdino
Follow me on Twitter: https://twitter.com/fat_dino_games/
Join our Discord server: https://discord.gg/yN4KTac
Download my games here: https:...
ok yall peace out............
bye
Off-topic channels
There are three off-topic channels:
⢠#ot0-psvmās-eternal-disapproval
⢠#ot1-perplexing-regexing
⢠#ot2-never-nesterās-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
ik why I cant talk
yeh IK
my brother kept annyoing me
yeah I am just going to type randomly so I can get better
so i can talk*
sorry
ik
is there any you can help me codde
I have not learnt the basics bc no one will teach me bc I am in lockdown
is there a way to see how many msg's I have sent
100 individual runs per individual statistic on my phone```bash
node -e ""
0.422 real
```bash
python3 -c ""
```0.087s user
0.104 real
food time
Hello @primal yacht
restart Discord. I'm not in VC
Oh sorry me dumb]
yes, glitched out
just Discord's relatively new weirdness
hi @pallid trail
Hlo bro
Can you tell me how to verify voice-verification
@somber heath i cant hear u
go to voice verification channel
I
oh
@woeful salmon Are u invisible? WTFš
for transcript in common_exp.keys():
t = common_exp[transcript]
if isinstance(t[1], list):
print(t)
I'm using sqlite3, so, why automatically create a table called "sqlite_sequence", and, how to remove that?
@woeful salmon do u know?
https://sqlite.org/fileformat2.html#seqtab @burnt plaza
If you want to sort a dictionary, use the sorted function?
sort()
sorted(iterable, function)
hi guys
Discord as of late has issues with updating who is really in a VC.
Whem that is inconsistent, FULLY exit Discord & reopen it.
I'm turning my laptop on right now btw so I'm not in the call
Just be back
@primal yacht have you worked with docker and flask?
Ask in the proper channel instead of randomly pinging someone -.-'
!voice @urban reef
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I woke up recently and might be unstable
hey guys
I have a quick question about invoking functions in python
class Solution:
def reverse(self, x: int) -> int:
while x > 0:
rev = 0
while x > 0:
a = x % 10
rev = rev * 10 + a
x = x // 10
return rev
while x < 0:
x = x * -1
x.reverse()
on the last line, did i do this correctly?
basically im trying to take an int and reverse it
and return the reversed integer
123 -> 321 ?
why not just convert to string?
not allowed
you are not returning the int in the second while loop
leetcode problem
yes
thats my issue
why?
i dont understand how i invoke that
okay let me explain
okay
are you two in VC?
as you're in the text chat for it
ohhhh
yeah mb
lets go to #algos-and-data-structs
we can discuss there
i just came here cause everyone is usually active in this
thanks
wait but that just gives me the same thing as my input
can i pass that integer back into the first loop?
you're deafened in Discord
headset / headphones icon
let me restart
discord
class Solution:
def reverse(self, x: int) -> int:
while x > 0:
rev = 0
while x > 0:
a = x % 10
rev = rev * 10 + a
x = x // 10
return rev
if x < 0:
return x * -1 * -1
x, a = divmod(x, 10)
class Solution:
def reverse(self, x: int) -> int:
if not x:
return x
is_negative = x < 0
x = abs(x)
rev = 0
while x > 0:
a = x % 10
rev = rev * 10 + a
x = x // 10
return -rev if is_negative else rev
how about something like that
# ..
while x > 0:
x, a = divmod(x, 10) # x // 10 and x % 10
rev = rev * 1- + a
hello
pls dont hack me pro coders
type something cool
"something cool"
yes
based
pls dont hack me sir
<@&831776746206265384> possible spam in #voice-chat-text-0
noooo
and vue
whats going on here?
nothing sir
Forgive me but it seemed like lots of spam out of nowhere
is that bogeyman
Yes, please do not send random spam in chat. Especially if it is to get voice verified 
we are gambling
me just hanging out
starting point.
you should stay on topic while you are here
me a kid
this is not your playground for random stuff
me do not do anything bad
i.e, dont do this.
Our verification is here for a reason, please do not try to bypass it. Just go explore the server and have some sensible conversations.
please abide by our #rules and #code-of-conduct or you will be voice banned
what did i do :<
https://www.youtube.com/watch?v=cCOL7MC4Pl0
^ for how browser's event loop works (mostly)
this was a suggestion for everybody here
ok please dont ban me im your friend:),hehe
our server is not a playgound, go to another server if that is of interest
ok sorry i was kidding
wait so
!e
def reverse(x: int) -> int:
copy = x
last = 0
if copy > 0:
while x:
last = last * 10 + copy % 10
x //= 10
return last
else:
copy *= -1
while copy:
last = last * 10 + copy % 10
copy //= 10
return last * -1
print(reverse(100))
print(reverse(-87867))
@forest zodiac :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | -76878
i dont really feel like rewriting everything to make it optimal
You pro
why are you trolling
guys I bypassed the voiceverify lol
yeah that one i will correct
wdym? my grammer lol
!e```py
!e'''py
!e
def reverse(x: int) -> int:
copy = x
last = 0
if copy > 0:
while x:
last = last * 10 + x % 10
x //= 10
return last
else:
copy *= -1
while copy:
last = last * 10 + copy % 10
copy //= 10
return last * -1
print(reverse(100))
print(reverse(-87867))
@forest zodiac :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | -76878
how?
i think its working ig
nvm wrong call
can i sopy paste that code
hehe
@primal yacht why did you report me :<
join again
and restart disco
sup
k
im back from the dead
hehe im a child
OOF
h3llo
who me?
Feel free to ask your question
@wind raptor hehe
not asked any question yet from us, I guess?
who is lemon
yes xD
yes as in no questions asked of us?
plz can someone read my name? it sounds cringe
!ot
Off-topic channels
There are three off-topic channels:
⢠#ot0-psvmās-eternal-disapproval
⢠#ot1-perplexing-regexing
⢠#ot2-never-nesterās-nightmare
Their names change randomly every 24 hours, but you can always find them under the OFF-TOPIC/GENERAL category in the channel list.
Please read our off-topic etiquette before participating in conversations.
So i was trying to open VCS but my brain goes fucked up when i see that home screen pls help
hehe im dumb
back to this "break down VSC into something it is not"?
As in "Remove ALL THE THINGS!!!! that make VSC what it is"
ok i dont understand,jk
in other words: "make it less useful for what it is made for"
You need to create a python file and start programming in that file.
i.e test.py
i created one,lol
what should i write in the bar?
okk im just gonna use
pycharm
i use pycharm
but i need to run mah js code
so me sed now
OMG IK HOW TO SELECT A LANG
LOL
@stoic grail look at stream
im downloading the python extesion
That's just for linting I believe
what does linting means
ok ty mod
wot now :).
okay
i did
what now?:<
oh so these are the codes line?
How do you guys take screenshot? irrelevant question
ya
how to do the snip thinig
type snipping tool in the windows search bar
yeah listen to other ppl
after snipping it where does it go?
json.dumps(), json.loads()
mydict = ...
text = json.dumps(mydict)
mydict = json.loads(text.replace("\n", " "))
matched_items = matched_items.append(pd.json_normalize(json.loads(json.dumps(item).replace('\n', ' '))))
Hey
hello
I do not have permission to speak because I haven't typed enough lines
yeah just hang out in some text channels even if its general and talk normally you will get verified eventually
alot of ppl try getting verified by spamming and get banned so just don't do that xD
@celest junco
import threading
def work_thread():
print("hello")
t1 = threading.Thread(target=work_thread, daemon=True)
t1.start()
General purpose language
Provided to YouTube by IDOL
Cavers of Kirkcudbright Ā· Mike Vass
String Theory
ā Mike Vass
Released on: 2012-12-17
Auto-generated by YouTube.
TurboTax maker Intuit is close to a deal to buy email-marketing pioneer Mailchimp for about $12 billion, people familiar with the matter say https://t.co/EErqndZ13B
ooo
this?
Topic: JavaScript - Event loop
https://www.youtube.com/watch?v=8aGhZQkoFbQ
also
https://www.youtube.com/watch?v=cCOL7MC4Pl0
@zenith radish
I was discussing with my dad
and if you go via UK you'll have to quarantine for 10 days cuz eu>no eu
so you're better off taking the ferry from cherbourg (which is in france) directly to cork
i mean , like c++ is usually used for creating desktop applications so how about c#?
Not if I say I'm coming from france
C++ can also be used for mobile games ... but is not often done so due to how difficult it is.
Minecraft does that for it's single Bedrock Edition code base.
If I say I've been in france for the past 10 days and I'm transiting I shouldn't have to
@gentle flint
that would be lying
but ig that works
ĆwĆ lying to governments is my hobby
they might ask for proof tho
Potentially, but even still it'd be 5 days assuming we don't get covid
like google maps history or old receipts
ah ok
I'll find an old receipt in some french trashcan š¤
The Deutsche Mark (German: [ĖdÉŹtŹÉ ĖmaŹk] (listen), "German mark"), abbreviated "DM" or "D-Mark" ([ĖdeĖĖmaŹk] (listen)), was the official currency of West Germany from 1948 until 1990 and later the unified Germany from 1990 until the adoption of the euro in 2002. In English, it is commonly called the "Deutschmark" (); this expression is unknown...
Well if I transit and say I'm not staying in england for more than 2 days I don't have to quarantine either
So I'll say "Hey I'm coming from france and I'm going straight to wales"
So no quarantine
Hello @slender hedge and @left rain
heyy
sadly i cant voice chatš
I assume you know why?
wym im not verified yet bc i recently joinedš
!voice (see bot message)
Voice verification
Canāt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Nope!
C# can easily make GUI desktop apps if thatās your thing, recommend framework though.
possible to create 3D FPS Games?
Unity would work better for that
unity use 1 programming languages to create game? i am not sure btw
unity is a thing that helps to create a game?
Unity is a game engine
its a game engine that uses C#
.... that uses C# ^w^;
it works for both 2d and 3d games (truely excels a at 2d and 2.5d games but can do 3d decently too)
Also, while it can run on mobile, it kinda bloats the game compared to one made specifically for the mobile OS.
PARTIAL HAND REVEAL IN A FEW MOMENTS!
When I goofed with the .ini files (Linux via. PlayOnLinux as the wrapper around WINE)
https://www.youtube.com/watch?v=2GeA_MI4cOQ
I am uniq
import csv, subprocess, threading, asyncio, os
from random import randint
from typing import Generator
import tkinter as tk
from tkinter import filedialog
root = tk.Tk()
root.withdraw()
file_in = filedialog.askopenfilename(filetypes=[("CSV Files", "*.csv")])
folder_in = filedialog.askdirectory() + "/"
async def reader() -> Generator:
with open(file_in, "r", newline='\n', encoding='UTF-8') as facture:
reading = list(csv.reader(facture, delimiter=','))
for elem in reading[1:]:
if len(elem)>0:
yield dict(zip(reading[0], elem))
def replace(txt:str, data:dict) -> str:
data["\u202f"] = " "
data["rgbc"] = ",".join("0." + str(randint(0, 999)) for _ in range(3))
for k, v in data.items():
txt = txt.replace(k, v)
return txt
async def writer(name:str, txt:str, n:int) -> None:
with open(name+ f"_{n}" +".tex", 'w+', encoding='UTF-8') as tmpFile:
tmpFile.write(txt)
subprocess.run(["pdflatex", name+ f"_{n}" +".tex", "-output-directory=" + name, "-quiet"])
async def main(n :int, execute: str) -> None:
txt = None
async for data in reader():
with open(folder_in + execute, 'r+', encoding='UTF-8') as file:
txt = replace(file.read(), data)
await writer(data["NOM"], txt,n)
for n, execute in enumerate(os.listdir("../models")):
threading.Thread(target=asyncio.run, args=(main(n, execute),)).start()
Hello š
yayy moderator team
.
o/
hii
hello, how are you doing @vivid palm
good too, thanks
imagine living on icecreams
IMAGINE
?
class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
nums1.extend(nums2)
length = len(nums1)
if length:
return sum(nums1)/length
else:
return 0
Hello, what is the goal of the problem?
Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
It looks like you're calculating the mean here, rather than the median, although I'm not sure why you get the answer 2.0 because 10 / 4 == 2.5 š¤
Yep, so the mean is the sum of the values divided by the number of values.
The median is like the "middle value".
If you sort the numbers, and pick the one in the middle, it's the median.
Technically, the median is any number such that at least half the numbers are at least as large as it, and at least half the numbers are at least as small as it.
So for the numbers 1 2 3 4, the median is actually any number x such that 2 < x < 3.
But conventionally you go halfway between the two middle numbers (2.5).
Mean and median are both measures of the "central tendency" of a set of numbers.
The median does not necessarily equal the median.
For example: 1 2 100000
The mean here is ~100000, but the median is 2.
So this problem is kind of interesting, because you are given the set of numbers split into two lists (each in sorted order). To find the median, you could merge the two lists, then take the middle value, however merging the lists is an O(m + n) operation. It looks like they want to you perform some kind of binary search
ĖarithĖmetically adv
N. É-rÄthā²mÄ-tÄk
adj. arĀ·ithĀ·metĀ·ic (Ärā²Äth-mÄtā²Äk) also arā²ithĀ·metā²iĀ·cal (Ärā²Äth-mÄtā²Ä-kÉl)
so you mean i cant use nums1.extend(nums2)
Yep, that would be an O(n) operation.
But also, you'd want to do merge(nums1, nums2), to keep them in sorted order. (But this would also be O(m + n))
ohh but i am not so good with big O notations š¦
Thank you š
Help on built-in function sorted in module builtins:
sorted(iterable, /, *, key=None, reverse=False)
Return a new list containing all items from the iterable in ascending order.
A custom key function can be supplied to customize the sort order, and the
reverse flag can be set to request the result in descending order.
The key keyword argument is needed when the values being sorted is NOT able to be compared.
It takes a callable and is provided a single value (the value to turn into a value that can be compared with the rest of the values).
It is also a good idea to use it when you need to, say, sort several by a certain aspect, like a specific key of a dict or a more complex / computed value.
a & b # bitwise AND
a | b # bitwise OR
a ^ b # bitwise XOR (eXclusive OR)
~a # bitwise NOT
a << bits # bitwise left shift
b >> bits # bitwise right shift
0b10 # binary, 2, `bin(INT)`
0x10 # hexadecimal, 16, `hex(INT)`
0o10 # octal, 8, `oct(INT)`
>>> bin(2)
'0b10'
>>> hex(16)
'0x10'
>>> oct(8)
'0o10'
0o0755
if __debug__:
assert something is str
assert something != "something", "The variable should not hold 'something' as a value"
def debugLog(text: str, /) -> None:
if __debug__:
print(text)
pass
debugLog("foo")
Without pass, it becomes invalid after it gets stripped out by Python when the debug mode is off:
def debugLog(text: str, /) -> None:
debugLog("foo")
-O
breakpoint(*args, **kws)
# calls
sys.breakpointhook()
# which calls
pdb.set_trace()
^
i = 1
while i:
i <<= 1
what ?
<full-link>
Hello
hi š
š have a nice day
kinda ironic considering how android phones run kotlin apps
xD i am a Java Programmer i don't consider alternative syntax that compiles to the same bytecode as a different language
jk...
bro what
(defn factorial [n]
(reduce * (range 1 (inc n))))
is the same to you as
class FactorialExample{
public static void main(String args[]){
int i,fact=1;
int number=5;//It is the number to calculate factorial
for(i=1;i<=number;i++){
fact=fact*i;
}
System.out.println("Factorial of "+number+" is: "+fact);
}
}```
no i was joking..
o okay
hi LP
People bullied me for not reimplmenting the modern networking stack on it and bullied me for using curl in a subprocess so I quit
š¦
<@&831776746206265384> can I get a video perm?
Build #20170925
Official Installers:
2017.2.0f1: http://beta.unity3d.com/download/ad31c9083c46/public_download.html
(deb:...
@orchid barn scroll to the bottom
for the latest version
#include <stdio.h>
int main()
{
int some_number;
printf("enter number: ");
scanf( "%d", &some_number);
printf("you entered %d\n", some_number);
if ((some_number < 10) || (some_number > 10)) {
printf("your number is smaller than or greater than 10");
}
else if (some_number == 10) {
printf("your number is 10");
}
printf("\n");
return 0;
}
si
@orchid barn video is off
hello
mid 2000's?
I used to do Judo.
As an after school thing when I was younger.
Oh , I play taekwondo
ippon!
Got ippon by my friend In a sports camp thinking it would be fun but it was breathtaking.
"im a c programmer i dont program interface based applications unless theyre console based" LOL
@woeful salmon
Hi
@woeful salmon ur mic is fuqd up
def key_function(item):
key = item[0]
esc = common_exp[key][0]
hCO = common_exp[key][1]
return abs(math.log2(esc[1])-math.log2(hCO[1]))
genes = sorted(common_exp.items(), reverse = True, key = key_function)[:10]
print([gene[1][0][0] for gene in genes])```
[gene[1][0][0] for gene in sorted(common_exp.items(), reverse = True, key = key_function)[:10]]
counts = []
for item in common_exp.items():
if item [1][0][0] in genes:
counts.append(item)
print(counts)```
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
!eval [code]
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code
block. Code can be re-evaluated by editing the original message within 10 seconds and
clicking the reaction that subsequently appears.
We've done our best to make this sandboxed, but do let us know if you manage to find an
issue with it!*
@somber heath after we write !e how do we write da code
!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.
Leave a space in between the e and the first `
!e print("hello")
That will work, too.
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.
oh i guess its just me dumb
hehe
||Putting a full stop after every sentence makes you a proffesional- said by some dumb guy||
gtg bai
hey
hey
i don't have permission.
me neither
a mod has to come in and give me permission
is anyone familiar with hadoop
nope
i am having a hard time installing and configuring it on windows
-_-
i needed someone to share screen and show me
Guys how can we get permission to share screen
?
@woeful salmon
are you indian
@woeful salmon where you from?
hi
Come play Smash Karts
https://smashkarts.io/join/1RGm
Smash Karts is a free io Multiplayer Kart Battle Arena game. Drive fast. Fire rockets. Make big explosions.
Come play Smash Karts
https://smashkarts.io/join/oGW8
Smash Karts is a free io Multiplayer Kart Battle Arena game. Drive fast. Fire rockets. Make big explosions.
Krunker.io is a free Multiplayer Online Game. No Download needed
how are you @somber heath
hi guys
hi @hallow scarab
im new here
jes, same
whatchu taking about ?
you need 50 Messages to speak in the voice chat
oh
i dont know
im learning english
wow i can improve my listening here
byebye
bb
good day guys i have to go

