#voice-chat-text-0
1 messages · Page 607 of 1
书籍或线上教学
详细文字教程: https://morvanzhou.github.io/tutorials/
python 基础教学教程
python3 的安装. for Mac and Windows
Windows 安装附加要点:
设置环境变量:
1.找到安装路径, 默认 C:\Users*\AppData\Local\Programs\Python\Python35-32
2.我的电脑 - 属性 - 高级 - 环境变量 - 系统变量中的PATH为:
C:\Users*\AppData\Local\Programs\Python\Python...
你们会都会哪些编程语言
点击该链接
vpn很不安全吗?
我不会中文书
使用youtube链接,中文
详细文字教程: https://morvanzhou.github.io/tutorials/
python 基础教学教程
python3 的安装. for Mac and Windows
Windows 安装附加要点:
设置环境变量:
1.找到安装路径, 默认 C:\Users*\AppData\Local\Programs\Python\Python35-32
2.我的电脑 - 属性 - 高级 - 环境变量 - 系统变量中的PATH为:
C:\Users*\AppData\Local\Programs\Python\Python...
电信
下载他的vpn,然后在youtube上观看视频
ip会被封
嗯
Ip会被拦截
why,
Is there a professional explanation
Do you have a blog?
你们有个人网站吗?
它的软件可以帮助您绕过防火墙
CN2 CNGIA
VPN或虚拟专用网络允许您创建通过Internet到另一个网络的安全连接。 VPN可用于访问受区域限制的网站,保护您的浏览活动免遭公共Wi-Fi的窥视。 ...大多数操作系统都集成了VPN支持
在中国学习编程合法吗?
Is it legal to learn programming in China?
我问是因为我们很难为您提供帮助。 你能向中国人寻求帮助吗? 他们会更好地帮助您。
I ask because it's difficult for us to help you. Can you ask help to Chinese people ? They will help you better.
好的,我的朋友会向您发送他的vpn,您可以连接到它以访问编程课程
ok, my friend will send you his vpn and you can connect to it to access programming lessons
Oh, just read a mail from CEO, we get 1k new customers / month (and each customer gets us tens/hundreds of users). So it's much more than I thought xD
cracking accounts on that website currently near to impossible
I'm pretty sure our competitors already tried that
look up how data stuffing/'cracking' works
test...
test...
@idle river
Hey guys! After over two years of development, I am finally here to show you guys the Redstone Computer v5.0, the latest installment in my series of Redstone Computers! It is improved in every way compared to the Redstone Computer v4.0, and it adds a plethora of new features a...
damn
looks so cool
All lives matter
sigh
WOW
😪
uff
TIS-100 is an open-ended programming game by Zachtronics, the creators of SpaceChem and Infinifactory, in which you rewrite corrupted code segments to repair the TIS-100 and unlock its secrets. It’s the assembly language programming game you never asked for!The Tessellated Int...
$6.99
2443
https://\github.com/GianisTsol
Build circuits using a variety of components from different manufacturers, like microcontrollers, memory, logic gates, and LCD screens. Write code in a compact and powerful assembly language where every instruction can be conditionally executed. Read the included manual, whic...
$14.99
1983
printSlow(
"Lets look at your characters stats! (They are dependent on what class you pick!)", .5)
printSlow(f"► Your Strength is: {mainChar.strength}")
printSlow(f"► Your Agility is: {mainChar.agility}")
printSlow(
f"► Your Intelligence is: {mainChar.intelligence}")
printSlow(f"► Your Charisma is: {mainChar.charisma}")
# Function to Type out Printed strings
def printSlow(fstr, waitTime=0, nextLine=True, typeSpeed=0.02, PADDINGAREA=PADDINGMIDDLE):
global console_info
console = begin.console
console_info = console.get_console_info()
for char in fstr:
print(char, end='', flush=True)
t.sleep(typeSpeed)
t.sleep(waitTime)
if nextLine == True:
scroll_text_up(PADDINGAREA)
return ''
You probably don't need your global clause here :)
@whole bear @sour gale Do either of you need help?
@whole bear Go ahead and explain your issue and I'll see what I can do
So you want to remove both when NORTH/SOUTH or EAST/WEST is there?
Can you show me what the final output should be?
@whole bear I heard you, can you respond to the above 
JUST WEST?
So it would be three sets being removed?
Lemme see if I get this right
You'd start with ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]
NORTH/SOUTH is removed, since they're opposites, which leaves you with:
["SOUTH", "EAST", "WEST", "NORTH", "WEST"]
SOUTH is fine, and then EAST/WEST is removed
Which leaves you with:
["SOUTH", "NORTH", "WEST"]
and then SOUTH/NORTH is removed
Alright, gotcha
and you said this is for what, again?
Ah, gotcha
Yeah, I've seen them
So you want something basic to start with, such as:
!e
a = ["NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST"]
previous = None
while True:
for x, y in enumerate(a):
print(x, y)
break
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 0 NORTH
002 | 1 SOUTH
003 | 2 SOUTH
004 | 3 EAST
005 | 4 WEST
006 | 5 NORTH
007 | 6 WEST
You can also approach lists backwords, which would be better if you're editing the list in-place
!e
a = [1,2,3,4,5,6,7,8,9]
print(a[::-1])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[9, 8, 7, 6, 5, 4, 3, 2, 1]
Would reverse the list
Lemme show, one sec
!e
a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
for x in a:
if x % 3 == 0:
print(x)
print(x % 3 == 0)
a.pop(a.index(x))
except IndexError:
pass
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 3
002 | True
003 | 6
004 | True
005 | 9
006 | True
Though, you'll see
!e
a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
for x in a:
if x % 3 == 0:
print(x)
print(x % 3 == 0)
a.pop(a.index(x))
except IndexError:
pass
print(a)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 3
002 | True
003 | 6
004 | True
005 | 9
006 | True
007 | [1, 1, 2, 2, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9]
Doesn't get all of them
!e
a = [1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9]
try:
for x in a[::-1]:
if x % 3 == 0:
print(x)
print(x % 3 == 0)
a.pop(a.index(x))
except IndexError:
pass
print(a)
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | 9
002 | True
003 | 9
004 | True
005 | 6
006 | True
007 | 6
008 | True
009 | 3
010 | True
011 | 3
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/fucuquhowu
Meanwhile, does
Which is why if you're manipulating a list while looping over it, do it backwards.
or make a new list while doing so
Yep
Indexes shift when you're removing them
Yes
So that should help out in your issue. 😄 👍
No problem at all!
.
Hi
here ?
Yep @fossil pebble
yet i cant share screen in here
i could find how to do it in here
nah it is not finding
@nova solstice
You can't share screen in this server
yeah, only user event coordinators can do that
I wanna play ;-;
@crystal fox sa, re, ga, ma, pa, dha, ni
@crystal fox do you play any other instrament other then gutar
@crystal fox ?
@errant helm i am learning the indian bamboo flute
@crystal fox do you play any other instrament other then gutar
i am very intrested in learning the flute
but i cant get a guru
how many strings does a gutar have?
Ok
you know the tanpura?
do you know?
.help
@errant helm there are so many channels on this server
@whole bear Please fix your background sound
!warn 426988998297255946 "Please fix your sound"
:incoming_envelope: :ok_hand: applied warning to @whole bear.
@calm sage Ok i am sorry
@errant helm by the way, what are you doing?
last time i was playing songs
so i am sorry
@errant helm are you in a studio?
because your voice sounds so clear
but i dont
i just have a laptop mic
what is your favorate song gdude?
gdude please dont cuss
i dont feel good when people cuss
that is why
You're welcome to leave the voice channel
are you angry at me KnowError?
You're harassing gdude, please stop
what does harassing mean?
Please look it up
i will google it myself
We assume you understand basic English here
no one tought me that word so i dont know
That's fine, but please look it up and understand what I said
You're harassing gdude, please stop
@calm sage Ok i am sorry
please dont cuss
i dont like it
@whole bear If you don't like it, then please leave the voice channel
We allow swearing here
Ok
Ok
i will
can i ask a question?
can i?
Oh
what is the programing language should i start learning first?
pyfon
Python, naturally
no
why are there so many programing languages?
the world is a big place and there are a lot of unique problems to solve
and artists like different ways of expressing themselves
👋
ew
gotta dip
Thanks for coming ❤️
damn
dang why are you guys so mean to him
such a nice soul
is there a hidden vc?
no lol
oh lol nvm
they were in vc a while ago lol
ah ok haha
I am considering starting a YouTube channel , and post daily. Python courses, on computer vision, AI, and data science. What do you guys think?
I am 4 lingual,(Spanish, Portuguese, German, and learning English) but I guess I`ll have to choose one language
I wouldn't mind a python course tbh
Cause I'm AWFUL at Python
Well, I mean... I started about 8 days ago
what
does anyone know python here?
i have posted question in #help-peanut
open the link
it is working
mine is opening
@high kindle sounds pretty good honestly, only thing I can see as an issue if you can't provide high quality videos. Like, if it isn't HD, bad microphone quality etc.
@whole bear video quality HD or FHD ... but my mic it is not the best. Ill let you know and ask for feedback about sound quality
alright sounds good @high kindle
Hello everyone, going to go live in Stream to demonstrate some Visual Studio Code stuff!

@whole bear free socks??
technology 
From microsoft
Free socks and colouring books
socks as in like feet sock
its good
did my wifi cut out
occasionally stuttering
no
bad wifi, apologies
sad
I'm at 261
You could always record this and post to YT?
how'd you get the free socks @whole bear ?? like what do you have to do I am confusion 😂
i cant remember lol, ask Joe
we do be likein some free socks doe
What are you doing here?
I cant understand
its lagging a lot
Apologies for the WiFi folks, I did think it would hold out

😦
😭

Can you drop your quality maybe?

The instructions for getting your own swag are at this link: https://aka.ms/python-virtual-labs
If you run into any issues with the labs, myself and @steel coral are around to answer questions either here or in the #python-virtual-labs channel in the Microsoft Python discord. https://discord.com/invite/b8YJQPx
the stream quality seems to be better! 🤞 that it holds out
So it forwards MS servers to localhost?
3.8
👋
If anyone missed out on the swag items, there's a photo in this tweet: https://twitter.com/nnja/status/1275965637123117057
Missed out on @PyCon US in person this year?
Our team at Microsoft already had some swag in the works.
Check out our Microsoft virtual booth experience at https://t.co/JCHCN5rsSG and complete a hands-on lab to get a kit, while supplies last.
The clippy scrunchie is 🔥🔥
137
it's like a breakpoint, except it logs instead of breaks
Yes!
I still get bit by that same issue when debugging all the time -- the variable not being defined yet.
I forget exactly what it's called and I'm not sure if it's available in code spaces, but have you tried "run to cursor"?
I think you need to actively have a breakpoint triggered?
and then running to spot in the program i want to debug
yes, will need a breakpoint to be triggered
but you can go backwards too, not just forwards
you can also change the value of variables
it's pretty neat
These tools make it so much easier when learning Python, too. I wish more CompSci programs knew about / recommended VS Code over IDLE.
like 8 yrs?
Initial release April 29, 2015
Ah well
(according to google)
I thought it was around in 2012
Hmm -- don't think so. Found a blog post from 2016 celebrating version 1.0, and making note of the initial launch from the year prior.
But I only started using it ~3 years ago
neato
I believe you, I probably mixed it up w/ a different editor
VS Code was first open sourced in November 2015: https://youtu.be/x4-J1MpMGog
In this video you'll see Scott Guthrie make an exciting announcement that Visual Studio Code is now open source! Scott is then joined on stage by Erich Gamma, who pushed the "open source" button in the GitHub repo and demoed the new extensibility support with his own custom ex...
@primal shadow If you'd like to earn some PyCon swag (cool socks, workbook & a scrunchie) you can complete a lab today at this link https://aka.ms/python-virtual-labs
200 USD (or rough currency equivalent)
a number of services are free for 12 months
VMs, etc.
others, always free.
re: Codespaces and "dev containers", we have some examples for other languages here: https://github.com/codespaces-examples/
Didn't know they have always free now
Also the discord is a great way to pass on product feedback directly to the teams
a lot of us hang out there
Azure Functions, for example, will get a million executions per month for free.
As an aside, if you are a student, we have "Azure for Students" which enables you to sign up with your institutional email and no credit card.
And has $100 credit (if I remember correctly).
Drop that discord in the partners chat no?
Joseph, this was such a treat. Thanks for taking the time to stream today.

(There's also nothing stopping you from having both a Student account and a free trial)
Thank you @sturdy fulcrum, this was great!
What if I'm still learning from the school of hard knocks, can I sign up for a student account?

self taught for life?
@primal shadow if it has an email account, we might be able to make that happen 😄
Or we can give you another kind of pass which will let you try things out.
so I need to make a .edu? lol
I believe we're able to grant some free trial accounts just for the labs if you don't want to sign up for one
I will definitely try the trial, though what I saw seemed above my level so I doubt I'll really utilize what's there
well, that isn't the only lab, right?
Thanks all! Apologies for the WiFi at the start of things there, glad it held up in the end!
@primal shadow for student account without credit card, .edu an edu, or the name of an institution (without an email) and we can provide you a validation code. Anyone with a credit card can sign up with an Azure Free account (and not be charged).
There are more labs for quite a few different Azure things
All in this repo: https://github.com/Azure-Samples/azure-python-labs
I've got a question to anybody out there, just made a codewars riddle, in which you gotta build a function which is given to strings (s1, s2) and you should tell whether is possibile to "build" s2 out of s1..(for example s1 = 'loahlskaning', s2='kingnoah' would be possible...
Because of the possibility of letters occurring twice (like 'n' in the example above) I thought that the set-data type wasn't an option so I did it with dicts..
but the best-practice answer is with sets, and I just don't find anything in the documentation why this is possible:
def scramble(s1,s2):
print(set(s1))
print(set(s2))
for c in set(s2):
if s1.count(c) < s2.count(c):
return False
return True
Can anybody explain?
@whole bear Read #❓|how-to-get-help for how to get help. This isn't the best place to be asking
Asking python questions on no-microphone channel 
hello
Yo
@obtuse trail You're over commenting
That was old code, Ive since refactored
Credit : https://videoprobajet.blogspot.com
Attention :
Hi guys, during covid-19 quarantine, our our income is a bit sluggish. :(
So we decided to revive this youtube channel again, but 1st we have to reactivate adsense.
For that, we making video cooking series, in Ra...
let's encrypt
@subtle phoenix What's the code you're working with, and what are you trying to do?
?
@sleek tiger I'm not gone. It's Elliot
@subtle phoenix It sure is
@subtle phoenix Anyway, let's work on Python stuff
for each in a['included']:
each['attributes']['name']
@subtle phoenix Still there?
👌
sometimes staff come along and just hang out
imagine a automated voice help system
not just text help
yeah exactly
I'm more saying of it would be more of a nightmear
oh no that's not what I meant
I mean channels interacting with you like the text channels
It really do be like that sometimes
same, you just sit back in your seat wondering where it all went wrong
jason
google translate it
wait
maybe they changed it
still correct
you did it!
db_full_records, db_bb_id_empty, db_ldap_guid_empty, db_ldap_empid_empty
(str, DBStudent)
def print_student_record_changes(db_student_equivalent: DBStudent, bb_student: BBStudent):
pylance
@sleek tiger What are you doing with your mic?
@whole bear cleaning off my desk
Ah
db_student_full_equivalent = DBStudent(db_students_full_record.get(bb_student.bb_id))
!tempban 451025550895611915 7d Your toxic and condescending behavior will not be tolerated here. You've made people feel bad/ashamed of their knowledge, just because they were asking for help with some code. Saying things such as "Are you a fucking retard?" and "Do you seriously not understand this?" to others really shows your atrocious attitude and misconduct. That is completely unacceptable. Reread our rules and code of conduct and fix your shitty attitude if you ever decide to join back here again.
And now we've even received another report of you trying to start a strip club in this Discord guild.. Unacceptable.
:incoming_envelope: :ok_hand: applied ban to @sleek tiger until 2020-07-10 05:02 (6 days and 23 hours).
oh man i got such a steal server pc with a xeon e5-1620 for only ~$80. it works very well to this day.
@frigid shard Can you fix your mic
nice with the 1620, old xeons are the hidden gem of the pc market
@obtuse trail https://npp-user-manual.org/
indeed they are, such a great price to performance ratio
@scarlet plume one thing to watch out for with the E5-2xxx series is the power draw, the older series kick out power like a fricking space heater
@graceful grail Please stop attempting to find additional info on moderative reports.
hahah yeah, when it's under high load, it's like a furnace. it's just been serving some small web servers for the past few months though, so cpu usage is pretty low along with the heat output
it was just such a steal on ebay though, it even had 16 gigs of ram
EDITOR=nano sudoedit
yeah the 1620 etc are only for single socket machines where it doesnt matter as much
my esxi playground has two E5-2640 CPUs and the thing noticeably heats up my room
at least you have a nice heater in the winter 😄
looking through r/homelab just fills me with so much envy lol
oh trust me i know
like people who have server racks with dedicated 240v breakers baffle me
just kludge together a good enough setup like the rest of us plebs 🙂
that smiley face is too big and makes me uncomfortable
@teal stream do you think the issue I mentioned is a bug report or feature request?
yeah yeah i see it
but thats like intentionally big
the other one is a big emoji
they look like they want to be small
so it definitely stopped me from doing something, but i dont think it was ever a feature
there's a migration period between the two architechtures for native code changes, but there's also a virtualisation layer they're adding for the migration
mac wasn't likely to get much native game support regardless, even without the arch change, due to being a totally different os stack to deal with
moving to ARM also has a huge benefit for just having all devices on the same arch, so software works across all devices, and each device type only has minimal changes to adapt for interactions/views
https://www.tomshardware.com/news/japanese-arm-based-supercomputer-fugaku-is-now-world-most-powerful
^^ That burns my eyes, kill it, kill it with fire!
that smiley face is too big and makes me uncomfortable
@obtuse trail facts
I was just about to unmute your but you left and now I cant.
"""Way Too Long Words: Codeforces.com"""
num_words = int(input())
words = []
while num_words > 0:
words.append(input())
num_words = num_words - 1
while len(words) > 0:
word = words.pop(0)
if len(word) <= 10:
print(word)
else:
print(word[0] + str(len(word) - 2) + word[-1])
!code
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
import art, time, os, platform, subprocess
from art import *
def ping(host):
# Option for the number of packets as a function of
param = '-t' if platform.system().lower()=='windows' else ''
# Building the command. Ex: "ping -c 1 google.com"
command = ['ping', param, host]
return subprocess.call(command) == 0
try:
ping('poop.cc')
except:
print('Poop')

Request timed out.
w = []
for i in range(int(input())):
w.append(input() + '\n')
if len(w[i]) > 11:
w[i] = w[i][0] + str(len(w[i]) - 3) + w[i][len(w[i])-2] + '\n'
print(''.join(w))
l33t
cool
Run it
Yea, it was a fun little challenge, I was aiming for least lines and less executions
Its 11 because I add a new line character prior
I append it to the list initially to save 2 lines for an else statement, and then I do an if to modify that spot in the list if its larger than 11
!warn 392785501850959883 That's a no for that emoji
:incoming_envelope: :ok_hand: applied warning to @whole bear.
Lmao
#Ping
@client.command()
@commands.guild_only()
async def ping(ctx):
await ctx.send(f'The bots latency is {round(client.latency * 1000)}ms!')```
The most basic command
Got 🥛?
If we all ping nsa.gov with 65500 bytes, we can delete all their info on us

oops
i got milk everywhere




`
M i l k g o d s
print('Milk')```



🥛



Got to go most likely won't see guys again.
C:/Users/medf8/Documents/LousyPinger/pinger.py:22: SyntaxWarning: "is" with a literal. Did you mean "=="?
HOST_UP = True if os.system(command + host) is 0 else False
@severe pulsar
yeah
import os, platform
host = "google.com"
HOST_UP = True
if platform.system().lower()=='windows':
ping = "ping -n 1 "
else:
ping = "ping -c 1 "
while HOST_UP == True:
if os.system(ping + host) == 0:
HOST_UP = True
else:
print("Host Down.")
HOST_UP = False```
import subprocess, platform
host = "google.com"
HOST_UP = True
if platform.system().lower()=='windows':
params = "-n 1"
else:
params = "-c 1"
while HOST_UP == True:
if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) == 0:
HOST_UP = True
else:
print("Host Down.")
HOST_UP = False
import subprocess, platform, sys
host = sys.argv[1]
HOST_UP = True
if platform.system().lower()=='windows':
params = "-n 1"
else:
params = "-c 1"
while HOST_UP == True:
if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) == 0:
HOST_UP = True
else:
print("Host Down.")
HOST_UP = False
python3 hostup.py google.com
import subprocess, platform, sys
host = sys.argv[1]
HOST_UP = True
if platform.system().lower()=='windows':
params = "-n 1"
else:
params = "-c 1"
while HOST_UP == True:
if subprocess.call(["ping", params, host], stdout=subprocess.DEVNULL) != 0:
print("Host Down.")
HOST_UP = False
while HOST_UP == True: ---> while HOST_UP:
"""test if a server is up or not (run with ip or domain after command)"""
import sys
import platform
import subprocess
host = sys.argv[1]
HOST_UP = True
if platform.system().lower() == 'windows':
PARAMS = "-n 1"
else:
PARAMS = "-c 1"
while HOST_UP:
if subprocess.call(["ping", PARAMS, host], stdout=subprocess.DEVNULL) != 0:
print("Host Down.")
HOST_UP = False
passing all pylint checks.
sup
sup
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2020-07-03 13:26 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
python -m nuitka program.py
python -m nuitka --help
python -m nuitka --standalone program.py
Nuitka User Manual
Contents
Nuitka User Manual
Overview
Usage
Requirements
Command Line
Installation
License
Tutorial Setup and build on Windows
Setup
Install the C compiler
Install Python (6
bruh
Download TDM-GCC Compiler for free. GCC for 32-bit and 64-bit Windows with a real installer & updater. TDM-GCC is now hosted on Github at https://jmeubank.github.io/tdm-gcc/. The most recent stable releases from the GCC compiler project, for 32-bit and 64-bit Windows, cleverly...
m
Hello, new here.
@shrewd drift Hello
ihi
can someone tell a website for learning python
for freee
can someone tell a website for learning python
for freee
@lost mica Youtube!
its simple
youtube
thx
It's ebutuoy
are the vc peeps reading this?
hey
XD
nice
nicee l33t help me finish my web crawler
sup
cant understand you crawler
why aren't you talking?
I am shy
the people in vc are too cool for me
I am shy
@shut thunder I am shy too
I see
I don't see you
Check out the new feature film here: www.frozensouth.com
Filmed at McMurdo Station, where it is relatively sheltered by the surrounding hills. The weather down here is classified as being Condition 3 (nice weather), Condition 2 (not so nice), or Condition 1...
My wife Christ...
wooooow
what did I miss?
yep
I'm looking for a flutter dev, I know it's not the right place
@whole bear there is a separate discord for flutter itself :)
@severe pulsar Send me the link bro
def function_wrapper(x):
print("Before calling " + func.__name__)
func(x)
print("After calling " + func.__name__)
return function_wrapper
def foo(x):
print("Hi, foo has been called with " + str(x))
print("We call foo before decoration:")
foo("Hi")
print("We now decorate foo with f:")
foo = our_decorator(foo)
print("We call foo after decoration:")
foo(42)```
def decor(func):
def wrap():
print("============")
func()
print("============")
return wrap
def print_text():
print("Hello world!")
print_text = decor(print_text)
print_text()```
print("============")
func()
print("============")
def print_text():
print("Hello world!")
print_text = decor(print_text)
print_text() ```
Traceback (most recent call last):
File "./Playground/file0.py", line 13, in <module>
f()
TypeError: 'NoneType' object is not callable
we developing biological weapons up in vc?
always a classic
ID2020 is a nongovernmental organization which advocates for digital ID for the billion undocumented people worldwide and under-served groups like refugees. Dakota Gruener is the executive director of ID2020. The NGO was relatively unknown before being publicized because of mi...
@whole bear fun fact - i've met the dude who made that comic
he works at toggl, which is an estonian company
Oh, awesome^^
DEF CON 22 Hacking Conference
Presentation By Alex Zacharis & Tsagkarakis Nikolaos
PoS Attacking the Traveling Salesman
i do java idek why im here 
i do java idek why im here :lmaooooo:
@whole bear f in the chat
ALSO
c tier language
@little ridge https://atom.io/packages/script
@little ridge #unix for linux stuff
I've looked in a lot of places and I can't find a way to make a ping (latency) command using discord.py, something like this:
@client.command(pass_context=True)
async def pong(ctx):
# Somehow ...
If we factory reset our windows
do we have to do partition again
Coz,, when I got my new laptop,, I had to do partition
@slender bison
@graceful grail
Do chinese software contain spywares..
Some might
I have a free version of bit defender.. Will it serve my purpose
by being a good anti virus
I'm not sure
asskel
haskell
BF Lexer in Haskell```module Lexer where
-- Author: Jeremy Gluck
data BF_Token = Increment |
Decrement |
Shift_Left |
Shift_Right |
Output |
Input |
Open_Loop |
Close_Loop
deriving Show
-- Assert that source will only contain 1 character tokens or whitespace or any other character as comment
lex_char :: Char -> BF_Token
lex_char '+' = Increment
lex_char '-' = Decrement
lex_char '>' = Shift_Left
lex_char '<' = Shift_Right
lex_char '.' = Output
lex_char ',' = Input
lex_char '[' = Open_Loop
lex_char ']' = Close_Loop
lex_char _ = undefined
isBF :: Char -> Bool
isBF '+' = True
isBF '-' = True
isBF '>' = True
isBF '<' = True
isBF '.' = True
isBF ',' = True
isBF '[' = True
isBF ']' = True
isBF _ = False
lexer :: String -> [BF_Token]
lexer = map lex_char . filter (not . isBF)
Quicksort in Haskell
qsort [] = []
qsort (head:tail_list) = [x | x <- tail_list, x < head] ++ [head] ++ [x | x <- tail_list, x >= head]```
natural_numbers = [0..]
in haskell^
a = 0
while True:
print(a, end=' ')
a += 1
a = 0
b = []
while True:
b.append(a)
a += 1
a = 1
b = 0
while True:
b = str(b) + " " + str(a)
a += 1
Integer vs int
4958645639584845847653974594854
erhguhfjsfkdhgjfhgjfdghjfhgdjghkdjfhgfdjgdhjkfghjfgdgfdjgf
which one requires more memory?
are those python literals or what
"""Ram Eater (doesn't eat ram although the b keeps getting bigger)"""
a = 1
b = "0"
while True:
b = b + " " + str(a)
a += 1
def fun(a: str, b: int, c: Callable, d: bool) -> None:```
from typing Callable, List, TypeVar
t = TypeVar('t')
def map(f: Callable[[t],t], list: List[t]) -> List[t]:
return [f(x) for x in list]```
from typing Callable, List, TypeVar
t = []
def map(f, t) -> List[t]:
return [f(x) for x in list]
.
Did someone just break the bot lol?
!code
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
!code
!code @ruby wind
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
l
Hi
"""Ram Eater (doesn't eat ram although the b keeps getting bigger)"""
a = 1
b = "0"
while True:
b = b + " " + str(a)
a += 1
@graceful grail I’ve made a better one using pythons byte array syntax smh
Miegakure is a puzzle-platforming game that lets you explore and interact with a 4D world. The fourth dimension in this game is not time, it works just like the first three: it is a mathematical generalization.
You see three dimensions at a time and at the press of a button ...
Get 4D Toys for:
iOS http://4dtoys.com/ios
Steam http://4dtoys.com/steam (VR or Mouse&Keyboard)
Showing 4D Toys and an explanation of how 4D objects would look like and bounce around from the perspective of a 3D being.
You are not allowed to use that command here. Please use the #bot-commands channel instead.
@graceful grail I’ve made a better one using pythons byte array syntax smh
@austere chasm I made one using lists that works. The one that you quoted doesn't eat ram for some reason or if it does, it does so really slowly.
@upbeat wagon https://requests.readthedocs.io/en/master/
thank you
@austere chasm I made one using lists that works. The one that you quoted doesn't eat ram for some reason or if it does, it does so really slowly.
@graceful grail the one i quoted is yours lmao
this will eat your ram ```py
var = 1000000000
while True:
try:
var = var * 2
bytearray(var)
print(var)
except MemoryError:
var = var / 2
var = int(var)
print(var)
bytearray(var)
this will eat your ram ```py
var = 1000000000
while True:
try:
var = var * 2
bytearray(var)
print(var)
except MemoryError:
var = var / 2
var = int(var)
print(var)
bytearray(var)
@austere chasm so why we should do this?
@austere chasm so why we should do this?
@whole bear if you look at the messages before you will see its uses ram faster
Ohh I see
@graceful grail I’ve made a better one using pythons byte array syntax smh
@austere chasm this one
@austere chasm this one
@whole bear yuh
Hmm nice bro
@austere chasm as posted above the message that you quoted ```python
a = 0
b = []
while True:
b.append(a)
a += 1
^^ that one eats ram... pretty much the same as the one that you quoted.. however it uses lists instead of strings and actually eats ram.
@whole bear Thanks, I guess
@wispy idol are you guys talking about elif ?
do we have any kind of alpha and omega in python
whats the topic?
so a table: user has 2 columns "username" and "age"
username | age
mike | 20
mary | 22
select username from user where age = "22"
🙂
Herokuuuuuuu
it sound so much like Son goku
@still silo what ya developing?
website?
@still silo yes
thats why you rent a server man
bioinformatics pipelines lately (genetics)
we have our own high-performance-cluster (university of south florida)
i used to be devops guy
oh
i know about that man
what was the famous hackers name again, something with Hotz
he made that during corona shutdown
Date of stream 26 Mar 2020.
Live-stream chat added as Subtitles/CC - English (Twitch Chat).
Stream title: coronavirus 6, the bioinformatics stream #lockdown
Video archive:
- https://youtube.com/commaaiarchive/playlists
Source files: - https://github.com/geohot/corona
Follow f...
ATTTGAA
https://www.youtube.com/watch?v=h6fcK_fRYaI @cobalt mantle @jade moat
The Egg
Story by Andy Weir
Animated by Kurzgesagt
A Big Thanks to Andy Weir for allowing us to use his story.
The original was released here: http://www.galactanet.com/oneoff/theegg_mod.html
Visit his website here: http://www.andyweirauthor.com/
If you want to support us, p...
what is this youtube video about?
here is that language to assembly website: https://godbolt.org/
Sorry that I'm mute, I can't talk at the moment I hope it's ok if I listen.
np
with open("some_file.txt") as f:
for line in f:
print(line)
K
@fair anvil
yy
hi
@whole bear dynamic programming is optimization by linear programming on triangular (half square) matrices
Why do they even call it dynamic?
It's not particularly dynamic
beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100
attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength
while attacker_HP > 0:
print (">> how much damage do you wish to do to the attacker? ")
damage_to_attacker = input()
int_damage_to_attacker = int(damage_to_attacker)
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker is dead")
@fair anvil stupid
I spent the Fall quarter (of 1950) at RAND. My first task was to find a name for multistage decision processes. An interesting question is, Where did the name, dynamic programming, come from? The 1950s were not good years for mathematical research. We had a very interesting gentleman in Washington named Wilson. He was Secretary of Defense, and he actually had a pathological fear and hatred of the word research. I’m not using the term lightly; I’m using it precisely. His face would suffuse, he would turn red, and he would get violent if people used the term research in his presence. You can imagine how he felt, then, about the term mathematical. The RAND Corporation was employed by the Air Force, and the Air Force had Wilson as its boss, essentially. Hence, I felt I had to do something to shield Wilson and the Air Force from the fact that I was really doing mathematics inside the RAND Corporation. What title, what name, could I choose? In the first place I was interested in planning, in decision making, in thinking. But planning, is not a good word for various reasons. I decided therefore to use the word "programming". I wanted to get across the idea that this was dynamic, this was multistage, this was time-varying. I thought, let's kill two birds with one stone. Let's take a word that has an absolutely precise meaning, namely dynamic, in the classical physical sense. It also has a very interesting property as an adjective, and that is it's impossible to use the word dynamic in a pejorative sense. Try thinking of some combination that will possibly give it a pejorative meaning. It's impossible. Thus, I thought dynamic programming was a good name. It was something not even a Congressman could object to. So I used it as an umbrella for my activities.
Do you people know what games are? It's not hit point accounting, it's branching scenario roleplay content: https://twinery.org
History behind the name of dynamic programming^^^
Java sucks
:incoming_envelope: :ok_hand: applied mute to @hallow warren until 2020-07-09 01:35 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
I got muted because I put four "}"s on lines by themselves, but any java programmer is likely to often have 5 or 7 of them without anything else, just wasting space because they don't use the information from indentation.
Hey @hollow flax!
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:
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
print('?')
while True:
print('somebody once told me')
break
BEGINNING = 100
attacker_hp = BEGINNING
attacker_strength = BEGINNING
attacker_mana = BEGINNING
player_hp = BEGINNING
player_strength = BEGINNING
player_mana = BEGINNING
while attacker_HP > 0:
print (">> how much damage do you wish to do to the attacker? ")
damage_to_attacker = input()
int_damage_to_attacker = int(damage_to_attacker)
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker is dead")
damage_to_attacker = input(">> how much damage do you wish to do to the attacker?: ")
!e
a = 'HELLO WORLD'
b = int(a)
print(b)
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | ValueError: invalid literal for int() with base 10: 'HELLO WORLD'
!e
a = 'HELLO WORLD'
while True:
try:
b = int(a)
except ValueError:
print("That's wrong, let's try again.")
break
@whole bear :white_check_mark: Your eval job has completed with return code 0.
That's wrong, let's try again.
!tempmute @pure bluff 1d Joining voice chat to blast music is... not appropriate
lol
mmm
!tempmute @pure bluff 1d Joining voice chat to blast music is... not appropriate
:incoming_envelope: :ok_hand: applied mute to @pure bluff until 2020-07-10 02:13 (23 hours and 59 minutes).
while True:
try:
a = int(input('How much damage do you wish to do?: '))
break
except ValueError:
print("That's wrong, let's try again.")
try:
print('something here')
except Exception:
print('Catch all')
try:
print('something here')
except(ValueError, KeyError) as e:
print(str(e))
while True:
!e
a = False
while not a:
print('somebody once told me')
a = True
@whole bear :white_check_mark: Your eval job has completed with return code 0.
somebody once told me
"1"
False values:
0, False, [], {}
True values:
{0: []}, True, "0", "1", "2", [0]
int(), bool(), isinstance(), dict(), type()
list()
!e
a = '5'
b = 0
c = []
d = "SOMEBODY ONCE TOLD ME"
print(bool(a))
print(bool(b))
print(bool(c))
print(bool(d))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | True
002 | False
003 | False
004 | True
beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100
attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength
while attacker_HP > 0:
print (">> how much damage do you wish to do to the attacker? ")
damage_to_attacker = int(input())
int_damage_to_attacker = int(damage_to_attacker)
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker is dead")
int_damage_to_attacker = int(input())
print ("attacker HP is " , str(str_attacker_HP)
!e
print('>> How much damage do you wish to do to the attacker?\n:')
@whole bear :white_check_mark: Your eval job has completed with return code 0.
001 | >> How much damage do you wish to do to the attacker?
002 | :
!e
print('that's wrong')
@whole bear :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print('that's wrong')
003 | ^
004 | SyntaxError: invalid syntax
!e
print('that\'s wrong')
@whole bear :white_check_mark: Your eval job has completed with return code 0.
that's wrong
''.join(sequenceofstrings)
```@hollow flax
beggining_attacker_HP = 100
beggining_attacker_strenth = 100
beggining_attacker_mana = 100
beggining_player_HP = 100
beggining_player_strength = 100
beggining_player_mana = 100
attacker_HP = beggining_attacker_HP
attacker_mana = beggining_attacker_mana
attacker_strenth = beggining_attacker_strenth
player_HP = beggining_player_HP
player_mana = beggining_player_mana
player_strength = beggining_player_strength
while attacker_HP > 0:
int_damage_to_attacker = int(input(">> how much damage do you wish to do to the attacker? "))
attacker_HP = attacker_HP - int_damage_to_attacker
str_attacker_HP = attacker_HP
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker is dead")
print ("attacker HP is " , str(str_attacker_HP)
print ("attacker HP is " , str(str_attacker_HP))
!e
a = ['somebody', 'once', 'told', 'me', 'the', 'world', 'was', 'gonna', 'roll', 'me']
print([x for x in a])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
['somebody', 'once', 'told', 'me', 'the', 'world', 'was', 'gonna', 'roll', 'me']
!codeblock
Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.
To do this, use the following method:
```python
print('Hello world!')
```
Note:
• These are backticks, not quotes. Backticks can usually be found on the tilde key.
• You can also use py as the language instead of python
• The language must be on the first line next to the backticks with no space between them
This will result in the following:
print('Hello world!')
that's cool
import re
test = "3 < 7 > 11"
strings = re.split(r'[<>]{1}', test)
print(strings)
test.split("<", ">")
test.split("<"|">")
test.split(["<", ">"])
I do not understand anything
hi peoples can i join the general
@lost folio
@lost folio can you hear me?
yesss meeeeeeeeeeeeeeeeeeee hearrrrrrrrrrrrrrrr
meeeeeeeeeeeeeeeeeeeeeeeeee
meeeeeeeeeeeeeeeeeeeeeeeeeeee
do you have a mic??
Do YOU have a Microphone??
nooooooooooooooo youuuuuuuuuuuuuuuuuuuuuuuuuuuuu
yessssssssssssssssssssssssss
me make
me make
mamamamamamamama'
mamammaammamamama
mama miaaaa
mario
me make marioooooooooooo mamamamama
yes
E
u play fort?
noooooooooooooooooooooo me meannnnn forttt
do uuuuuuu
5 year
tomoroow gona be 16 year
byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
😩
😘
shut
futuredevYesterday at 10:30 PM
that's cool
TrayKnotsToday at 4:17 AM
@whole bear https://note.nkmk.me/en/python-split-rsplit-splitlines-re/#:~:text=Split by regular expression%3A re.,-split()&text=split() %2C specify the regular,consecutive numbers is as follows.&text=The maximum number of splits,in the third parameter maxsplit .
Split strings in Python (delimiter, line break, regex, etc.) | note...
Here's how to split strings by delimiters, line breaks, regular expressions, and the number of characters in Python.Split by delimiter: split()Specify the delimiter: sepSpecify the maximum number of split: maxsplit Specify the delimiter: sep Specify the maximum number of split...
SimaToday at 4:21 AM
import re
test = "3 < 7 > 11"
strings = re.split(r'[<>]{1}', test)
print(strings)
test.split("<", ">")
test.split("<"|">")
TrayKnotsToday at 4:25 AM
test.split(["<", ">"])
luiz⚒☭Today at 11:41 AM
I do not understand anything
sschr15 (@able)Today at 11:47 AM
hi peoples can i join the general
kardoToday at 12:51 PM
hhhhhhhhhhhhhhhhhhhhhhhh
@calm fern
HermyToday at 12:52 PM
@lost folio
kardoToday at 12:52 PM
meeeeeeeeee
eeeeeeeeeeeeeeeeeeeee
HermyToday at 12:52 PM
@lost folio can you hear me?
kardoToday at 12:52 PM
yesss meeeeeeeeeeeeeeeeeeee hearrrrrrrrrrrrrrrr
meeeeeeeeeeeeeeeeeeeeeeeeee
meeeeeeeeeeeeeeeeeeeeeeeeeeee
HermyToday at 12:53 PM
do you have a mic??
kardoToday at 12:53 PM
mikeee my name no
uuuuuuuuuuuuu
HermyToday at 12:53 PM
Do YOU have a Microphone??
kardoToday at 12:53 PM
nooooooooooooooo youuuuuuuuuuuuuuuuuuuuuuuuuuuuu
yessssssssssssssssssssssssss
me make
me make
mamamamamamamama'
mamammaammamamama
mama miaaaa
mario
me make marioooooooooooo mamamamama
yes
E
u play fort?
noooooooooooooooooooooo me meannnnn forttt
do uuuuuuu
5 year
tomoroow gona be 16 year
byeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
😩
😘
:incoming_envelope: :ok_hand: applied mute to @stark steppe until 2020-07-09 20:21 (9 minutes and 58 seconds) (reason: chars rule: sent 3840 characters in 5s).
Group theory (Théorie des groupes)
What are generators and coroutines in Python? What additional conceptualisations do they offer, and how can we use them to better model problems? This is a talk I've given at PyData London, PyCon Spain, and the conference "for Python Quants". It's an intermediate-level talk ar...
[EuroPython 2011] Erik Groeneveld - 23 June 2011 in "Track Spaghetti"
386
Pineapple
A Halal Snack Pack is a fast food dish, popular in Australia, which consists of halal-certified doner kebab meat (lamb, chicken, or beef) and chips.[1] It also includes different kinds of sauces, usually chilli, garlic, and barbecue.[2] Yoghurt, cheese, jalapeño peppers, tabbouleh, and hummus are common additions. The snack pack is traditionally served in a styrofoam container, and has been described as a staple takeaway dish of kebab shops in Australia.[2][3]
Bissara is a thick soup made of dried small peas and we eat it even as a soup or as a dip with bread especially during cold weather.
Today I’m going to show you how to make it in a simple easy and delicious recipe.
you need:
- 500 gramme of dried small peas.
- 3 garlic cloves....
Pea
dry Pea
ZERODIUM is the leading exploit acquisition platform for premium zero-days and advanced cybersecurity research. Our program allows security researchers to sell their 0day (zero-day) exploits for the highest rewards.
exploit in
Singularity These docs are for Singularity Version 2.5.2. For older versions, see our archive Singularity enables users to have full control of their environment. Singularity containers can be used to package entire scientific workf...
Here you can find all the documentation for Singularity, with guides and examples.
why are yall discussing Tulsi?
Papieren boeken lezen? Papieren boeken koop je eenvoudig online bij bol.com ✓ Gratis retourneren ✓ 30 dagen bedenktijd ✓ Snel in huis
possible why it happens?
import socket
import pickle
from _thread import *
from player import Player
server = "0.0.0.0"
port = 1337
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
s.bind((server, port))
except socket.error as e:
print(e)
print("Quitting.")
quit()
s.listen()
print("Server Started...")```
@somber heath men sry but u have ekko
`success = !!what()&&that()
return !!value
var x = "somevalue"var isNotEmpty = !!x.length;
Let's break it to pieces:
x.length // 9
!x.length // false
!!x.length // true`
#web-development @whole bear
irust
Var str1 = "hello";
var str2 = "world";
Var res = str1.concat(str2);
-p sing
xlrd
vvvvv
@junior kayak ???
error: linker link.exe not found
|
= note: The system cannot find the file specified. (os error 2)
note: the msvc targets depend on the msvc linker but link.exe was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
how i can fix it?
its an rust lang
We offer two kinds of APIs for developers. The Bot API allows you to easily create programs that use Telegram messages for…
French virologist & Nobel laureate Luc Montagnier has claimed that Coronavirus originated in a lab. Montagnier's research was based on the fact that COVID-19's genome has elements of HIV & Malaria germ.
#Coronavirus #Trump # Montagnier
@candid delta you can contact us by DMing @rapid crown
Was just a quick question about screening-sharing.
Ah ok, what was your question?
@whole bear Did you make Mina?
I’m fine but thx
def check(n):
for i in range(11, 21):
if n % i == 0:
continue
else:
return False
return True
x = 2520
while not check(x):
x += 2520
please use this next time ```python
ok thx
def check(n):
for i in range(11, 21):
if n % i == 0:
continue
else:
return False
return True
x = 2520
while not check(x):
x += 2520
k*2520
@client.command()
async def rant(ctx):
RANT = json.load('test.json')
await ctx.send(RANT)
------------------------------
"test"
@valid egret Out of curiosity, what is the point of the code that you posted before 猫 ▒█►K̲ ム ω ム II◄█▒:
that is just a formatted version of the previous person's code, because i'm blind without syntax hilighting
it's prettier with syntax highlighting
car ralley
@cobalt mantle https://en.wikipedia.org/wiki/JSON-RPC
JSON-RPC is a remote procedure call protocol encoded in JSON. It is a very simple protocol (and very similar to XML-RPC), defining only a few data types and commands. JSON-RPC allows for notifications (data sent to the server that does not require a response) and for multiple ...
is that true? i should start drinking more then
I have a theory on enhancing coding
Cannabis for Creation, small amount of alcohol for focus.. but Cannabis destroys focus
Fill in the blanks to create a method that takes optional parameters and outputs the squares of its parameters:
def sq( ?p)
?.each {| ? | puts x*x}
end
def sq(p: Int*) = {
p.map(num => num * num)
}
@little ridge
def sq(*num):
return list(map(lambda num: num**2, num))
print(sq(5,7))
Python answer
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
println!("You guessed: {}", guess);
}
use std::io;
fn main() {
println!("Guess the number!");
println!("Please input your guess.");
let mut guess = String::new();
io::stdin()
.read_line(&mut guess)
.expect("Failed to read line");
println!("You guessed: {}", guess);
}
import datetime
f = datetime(%d%m%y)
d = 15:7:2020
while True:
f = datetime(%d%m%y)
if d == f:
print("kaboom")
if token != "csrftoken":
continue
else:
Preferences.objects.get(token=token)
best legacy code ever
hi guys can u fix this plz
class my_mat:
def mat_1(self):
try:
I = int(input("enter number of rows: "))
J = int(input("enter number of coloum: "))
mat1=[]
print("Enter the entries rowwise: ")
for i in range(I):
b =[]
for j in range(J):
b.append(int(input()))
mat1.append(b)
for i in range(I):
for j in range(J):
print(mat1[i][j],end=" ")
print()
except(ValueError):
print("all input is not integer")
try:
K = int(input("enter number of rows: "))
G = int(input("enter number of coloum: "))
mat2=[]
print("Enter the entries rowwise: ")
for i in range(K):
b =[]
for j in range(G):
b.append(int(input()))
mat2.append(b)
for i in range(K):
for j in range(G):
print(mat2[i][j],end=" ")
print()
except(ValueError):
print("all inputs isnot integer")
if I == G:
result = []
for i in range(len(I)):
for j in range(len(G[0])):
for k in range(len(G)):
result[i][j] += mat1[i][k] * mat2[k][j]
for r in result:
print(r)
else:
raise MatrixMultiplicationError("Two matrices cannot be multiplied")
def main():
my_mat.mat_1()
if name=="main":
main()
this is Multiply of 2 matrix
@somber heath
# python
x = [1 , 2, 3, 4]
x = list(map(lambda num: num * num, x))
// javascript
let x = [1, 2, 3, 4]
x = x.map(num => num * num)
have 2 go
Parchisi STAR Online
@red anvil Hello my bruda!
Hands-On GUI Application Development in Go: Build responsive, cross-platform, graphical applications with the Go programming language
Package fyne describes the objects and components available to any Fyne app.
Discover Golang's GUI libraries such as Go-GTK (GIMP Toolkit) and Go-Qt and build beautiful, performant, and responsive graphical applications
self.zebra
animals.zebra
f= str("help {0}".format(x)
def hello(x):
print("hello {0}".format(x))
while True:
x=input("Your name:")
hello(x)
print("Hello, Osama Bin Laden")
Gotta go cya
what is this for>
fn main(){
println!("hello world")
}
if __name__ == "__main__":
do_something()
./foo.py
import foo
kcounts@hii2:~
$ cat foo.py
#!/usr/bin/env python3
import bar
kcounts@hii2:~
$ cat bar.py
#!/usr/bin/env python
print("hi mom")
$ ./foo.py
hi mom
$ ./foo.py
$ cat bar.py
#!/usr/bin/env python
print(__name__)
$ ./foo.py
bar
What is returned as a result of calling makeFancy("JAVA")?
public static String makeFancy(String s) {
if (s.length() == 0) {
return "*";
}
return "*" + s.substring(0,1) + makeFancy(s.substring(0, s.length()-1));
}
JAVA
- JAVA* *
JJJJ*
AAAA*
JJJJ
unanswered
public static String makeFancy(String s) {
if (s.length() == 0) {
return "";
}
return "" + s.substring(0,1) + makeFancy(s.substring(0, s.length()-1));
}
What is the error?
What is returned as a result of calling puzzle(22, 11)?
public static int puzzle(int i, int j) {
if (i == j) {
return 0;
} else {
return 1 + puzzle(i – 2, j – 1);
}
}
StackOverFlowError
22
33
11




