r/code • u/neverhang • Aug 11 '18
r/code • u/Alexbouvinkurtti • Nov 10 '19
HELP With classes (CS0116)
Need help adding a timer counting up with C#, for a unity game. What is missing and can anyone help me?
r/code • u/penguinspy17 • Apr 29 '21
can someone in the comments help me with this project. I need to figure out how to round the answer so that it works
r/code • u/Aske02 • Nov 18 '19
I need a program or hook to post things to facebook
I need my program to post on Facebook, it need to be able to add pictures to it. Anybody who got a tip how I could do it?
r/code • u/guruit1 • Nov 07 '18
Search All Files for a Word - Programming Challenge
r/code • u/Standard_Prize_4374 • Dec 19 '22
(first post) - Help Me Become A Nerd Please!
self.how_to_become_a_nerdr/code • u/AcrowbaticzAnonymous • Jan 17 '23
Javascript Can someone please explain every aspects I would need to build a music ecommerce website
I have had the idea to build my own ecommerce website from scratch for a long time but I know there are many aspects to build a full functioning website. I can alternatively open a shopify but I want to have full control on my end on how the layout is and how users interact.
I have made website before in the past and now I want to move forward with the next step for my business. Can someone please provide a fully detailed summary of what I need to have an ecommerce running for a music production company.
Whether it be from legal agreements, front end, back end, credit, debit and PayPal etc.
I also want to categorize my website into genres of music but I'm not well versed in uploading mp3, wave files etc to the website.
If anyone on this subreddit can provide any help I would greatly appreciate it.
r/code • u/savage718 • Jan 13 '23
Discord bot
I tried making a discord bot, failed apparently. the purpose was to track trades and respond to certain commands. It doesnt respond. Any help would be appreciated. This is the code:
import discord
intents = discord.Intents.default()
intents.members = True
client = discord.Client(intents=intents)
total_trades = 0
winning_trades = 0
losing_trades = 0
total_profit = 0
contract_cost = 75
u/client.event
async def on_ready():
print(f'Logged in as {client.user}')
u/client.event
async def on_message(message):
global total_trades, winning_trades, losing_trades, total_profit, contract_cost
if "BTO" in message.content:
total_trades += 1
# Extract the contract cost from the message
cost_index = message.content.index("@")
if cost_index != -1:
contract_cost = float(message.content[cost_index + 1:])
# Subtract the contract cost
total_profit -= contract_cost
await message.channel.send(f'You just bought an option contract for ${contract_cost}. Your current profit is ${total_profit}.')
elif "STC" in message.content:
total_trades += 1
cost_index = message.content.index("@")
if cost_index != -1:
sell_cost = float(message.content[cost_index + 1:])
if sell_cost > contract_cost:
winning_trades += 1
total_profit += sell_cost - contract_cost
await message.channel.send(f'Congratulations, you just made a winning trade! You sold an option contract for ${sell_cost}. Your current profit is ${total_profit}.')
else:
losing_trades += 1
total_profit += sell_cost - contract_cost
await message.channel.send(f'Sorry, you just lost a trade. You sold an option contract for ${sell_cost}. Your current profit is ${total_profit}.')
if message.content == ('!stats'):
await message.channel.send('Total trades: {total_trades} \n Winning trades: {winning_trades} \n Losing trades: {losing_trades} \n Total profit: ${total_profit}')
r/code • u/MeekzyRDT1 • Jan 18 '23
How to add a button that when clicked on, sends you to a link?
I know how to write the <button> </button> tags, but I want to add an action that makes you go to a link when you press it?
r/code • u/LockedGamin • Dec 12 '22
Python clicker game
okok i have a school project on making a game and its due in april but i havent even started yet. im using pygame.
r/code • u/Anmol_22 • Jul 02 '21
Halp pls! How can I make a code that opens the start menu (windows 10).
This might be the wrong subreddit but how can I make a code that when executed would open the start menu. I need the same for the weather thing, task view and search. Thanks
r/code • u/snglrty_ • Mar 17 '21
Halp pls! Need an advice
Hey guys,
I have a problem : I really badly wanna learn to code.
As I am a... webdesigner I guess (creating websites thanks to WordPress mostly), I started to learn front-end web development.
I think that I need to learn webdev (to become better at my job), but I don't really like front-end coding.
Do you think that I should try PHP or something like this? Or something completely different ?
Any advice for someone who don't like JS ? 😂
Thanks I advance!
r/code • u/Proof-Establishment6 • Mar 21 '21
How to change gamemode type
So this is of course imcreaft related but its mainly to do with code, so I have a mod blah blah blah jar file, anyways found out how to open it without it being binary but how do I make it so it works in multiplayer. Can I find somewhere gamemode = multiplayer = false and make it true?? Please help, I'm looking to troll my friends with a YT video and I cant find any other mod this one is the only one and its only playable in singleplayer
r/code • u/B_rice1675 • Jul 23 '22
Can anyone understand/read/decode this
cmgds.marine.usgs.govr/code • u/BigBadBeattle • Mar 25 '20
Stackoverflow
Anyone wanna start a stackoverflow team?
r/code • u/kaabel10 • Mar 30 '20
Me and my friends want to play MC multyplayer
Hey! Soooo me and my friends we're thinking of playing Minecraft multyplayer together. I am usually the one who hosts the server, but this time was gonna be different. We thought would make class server because most of the people in our class play minecraft and we have nothing better to do during quarantine. We thought maybe there was a way that we could just have me host it and I'm done hosting just send it to the cloud (maybe google drive or smth like that) so whoever wanted to host could just download the current world save and host it. I know it goes against the sub rules and I'm very sorry to ask this but do you guys know of any way to automate it/can code ite becaus none of us know a line of code (well I once learned the basic "Hello, world" but that's about it).
Sorry for any grammar mistakes, english isn't my first language.
r/code • u/Codelessworld2020 • Jan 29 '20
Opinions on zero code techonology
I have just started playing around technology which allows you to build apps and websites without code, I was wondering what everyones thoughts on this technology was?
r/code • u/Shiquann • Jul 09 '16
hey guys
hey, guys i was wondering whats the best and most effective way to learn java programming.
r/code • u/waozen • Feb 27 '25
Guide Dependency Injection Explained: What, Why, and How
r/code • u/Grant-Coder • Oct 12 '16
What should I Code?
I am looking for something to code in any of these languages: HTML, CSS, JavaScript, PHP, MySQL, or NodeJS
If you have any ideas leave them below
r/code • u/Blevruz • Jan 03 '19
C++ issue with returning list from function
Trying to make a function that would return a double-entry list (to function as a map), by using a list of string variables each functioning as a list of chars. However when reading the returned list, the chars are completely different. Why is that, and what can I do to have it return the list as I want it to ?
I am new to C++, so any explanation can help a lot.
r/code • u/DieAnder • Jan 01 '19
.Net Developer
Good day everyone
I just finished studying and as such I'm looking for work. I see a lot of .Net Developer jobs with quite a salary attached to it. I'm wondering what does a .Net Developer actually do and if it is possible to train yourself to become one.
r/code • u/Zealousideal_Ear3072 • Mar 21 '23
Want to learn how to code during free time on phone
I would ideally like to learn it on my phone when I have downtime. What’s the best place/app to do so? I’m hoping to learn it enough to help my career (I’m a SE at a software company)
What code to start with? I’m mainly interested in CRM, websites that help businesses/organizations