r/code • • Aug 15 '25

Help Please What is the Code Language for the Code?

9 Upvotes

Code Text:

pub struct Blobmoji {
build_path: PathBuf,
hashes: FileHashes,
aliases: Option<PathBuf>,
render_only: bool,
default_font: String,
fontdb: usvg::fontdb::Database,
waveflag: bool,
reduce_colors: Option<Box<ReduceColors>>,
}

(Note: This Code is from the SVG Emojis "Technologist" from BlobMoji).


r/code • • Jul 10 '25

Help Please Beginner - 100 days of python help

Post image
9 Upvotes

Can anyone help me with why this code doesn't work? it is from the 100 days of code course on Udemy but no matter what you type just goes on to the next stage instead of printing the text for the end of the game?


r/code • • May 08 '24

My Own Code Aurduino

Post image
9 Upvotes

Hello, I’m working on this code

include <WiFi.h>

include <WiFiClient.h>

include <BlynkSimpleEsp32.h>

include <LiquidCrystal_I2C.h>

include <HX711.h>

HX711 scale;

define DOUT 23

define CLK 19

define BUZZER 25

LiquidCrystal_I2C lcd(0x27, 20, 4);

char auth[] = "xQJip5BKvy0E3PEGv5glJV3QreMdN2z4"; // Enter your Blynk Auth Token here char ssid[] = "iPhone "; // Enter your WiFi SSID char pass[] = "Raya20014"; // Enter your WiFi password

int liter; int val; float weight; float calibration_factor = 102500; // change this value for your Load cell sensor

void setup() { Serial.begin(115200); lcd.init(); lcd.backlight(); pinMode(BUZZER, OUTPUT); scale.begin(DOUT, CLK); // Initialize the HX711 scale scale.set_scale(); // Start with default scale calibration scale.tare(); // Reset the scale to 0 Blynk.begin(auth, ssid, pass); // Connect to Blynk server }

void loop() { Blynk.run(); measureWeight(); }

void measureWeight() { scale.set_scale(calibration_factor); // Adjust to this calibration factor weight = scale.get_units(5); if (weight < 0) { weight = 0.00; } liter = weight * 1000; val = liter; val = map(val, 0, 505, 0, 100); lcd.clear(); lcd.setCursor(1, 0); lcd.print("IOT Based IV Bag"); lcd.setCursor(2, 1); lcd.print("Monitoring System"); Serial.print("Kilogram: "); Serial.print(weight); Serial.println(" Kg"); lcd.setCursor(1, 2); lcd.print("IV Bottle = "); lcd.print(liter); lcd.print(" mL"); Serial.print("IV BOTTLE: "); Serial.print(liter); Serial.println("mL"); lcd.setCursor(1, 3); lcd.print("IV Bag Percent="); lcd.print(val); lcd.print("%"); Serial.print("IV Bag Percent: "); Serial.print(val); Serial.println("%"); Serial.println(); delay(500); if (val <= 50 && val >= 40) { Blynk.logEvent("iv_alert", "IV Bottle is 50%"); digitalWrite(BUZZER, HIGH); delay(50); digitalWrite(BUZZER, LOW); delay(50); } else if (val <= 20) { Blynk.logEvent("iv_alert", "IV Bottle is too LOW"); digitalWrite(BUZZER, HIGH); } else { digitalWrite(BUZZER, LOW); } Blynk.virtualWrite(V0, liter); Blynk.virtualWrite(V1, val); } And it’s not working giving me this result what is the problem???


r/code • • Jun 10 '23

Emmet continues to amaze with his genius

9 Upvotes

r/code • • May 01 '23

API Make an api on Laravel

Post image
9 Upvotes

r/code • • Mar 30 '23

Demo I built a "demoscene" like program in JavaScript ... as a recreational coding activity (link to playground in the comments)

9 Upvotes

r/code • • Mar 12 '23

Resource Regex Explainer Tool

9 Upvotes

Hi, I think a lot of us don't really understands RegEx and just figure it out on the go, so I made this tool: regexplain.ai.

Wanted to get some feedback on how this can be more useful for you all!


r/code • • Jan 08 '23

Help Please How does Apple make these medals?

9 Upvotes

r/code • • Dec 18 '22

Help Please Art project coding help (SVG Drawing)

Post image
9 Upvotes

r/code • • Dec 07 '22

My Own Code Three months into my journey, I made a thing. Just wanted to show it to anyone who may like to see it.

Thumbnail mjahaha.github.io
9 Upvotes

r/code • • Nov 21 '22

My Own Code! Im new

9 Upvotes

So i dont know why I post this but I want to share my progress so I’m from germany and 15 years old and want to learn coding and maybe find a job so I want to lern code since I was 13/14 but I don’t do it constens and learn and give up in the school we learned python a bit not complete a few things got a new teacher and learn Google app maker I think it’s the name it’s not learn cause it’s not a language and then make other things and now he want to make html.. yh but I want to learn now I got a App names „Mimo“ I think it’s a great app to learn I learn some html and I hope I don’t give up yes


r/code • • Aug 15 '22

What's the point of embedding increasing into for statement?

Post image
9 Upvotes

r/code • • Aug 11 '22

Help please! I just started 3 weeks ago and I’m having trouble styling html with css what am I doing wrong

Thumbnail
gallery
9 Upvotes

r/code • • Jul 12 '22

Trees are some of the most popular interview questions. This simple problem is a great way to start building fundamental understanding of Tree traversal. My ultimate aim is to clear interviews at companies like Google, Apple, Facebook, Amazon, Microsoft. And this question was asked by all of them.

9 Upvotes

r/code • • May 31 '22

My first Drawing store called: "Try-in" is launch comming

Post image
9 Upvotes

r/code • • May 15 '22

Evolution simulation with python using the package called ursina.

Thumbnail
github.com
9 Upvotes

r/code • • Apr 27 '22

Help please! brainfuck code

9 Upvotes

+>+[[>+>+<<-]<[>>>+<<<-]>>>.]

A friend and I like to sebd each other encrypted messages as puzzles. I think this is brainfuck code, but I can't figure out the output.


r/code • • Dec 16 '21

Halp pls! Stuck In Infinite Loop - Alternatives?

9 Upvotes

Hi, So I'm fairly new to programming and am coding a fun little game on Code.org. In the game I want a sprite (santa) to glide across the screen throughout the entire game (just in a straight line). To do this I'm using a while loop so it loops the code whenever the sprite is in a certain position, The problem is, I want to use other functions that happen while this sprite is moving such as a present dropping from "santa". But, I cannot do this because I get an error saying I cant put functions inside a loop. Im using code.org so its not the same as real JavaScript so sorry if this is confusing. Here is the loop.

function dropPresent() {

// Drops The Present When Button Is Clicked

while (presentY != chimneyPos) {

setPosition("present", presentX, presentY=presentY + 1 ,30 ,30);

console.log("present dropped" + presentX);

}

}

function moveSanta() {

// Moving Santa Across The Screen

setPosition("santa", santaX = santaX + .01, 0, 170, 140);

setPosition("present", santaX, 65,20,20);

// Loops Santa Around To Beggining

if (santaX >= 320) {

santaX = -150;

}

}

while (santaX > 0 < 320) {

if (presentDrop == true) {

console.log("dropped");

}

if (santaX > 0 < 320) {

// Keeps Santa Moving

moveSanta();

} else

santaX = -150;

}

});


r/code • • Aug 05 '21

My Own Code! Been playing around with a playground.

Post image
9 Upvotes

r/code • • Apr 09 '21

Javascript a binary clock made with js

9 Upvotes

r/code • • Feb 25 '21

I'm having trouble getting my event listener to respond, I'm also trying to figure out how to calculate income and expenses; any tips?

Thumbnail
gallery
9 Upvotes

r/code • • Jan 17 '21

Blog Open Source Libraries to Help You Learn to Code

Thumbnail
friendstrs.com
9 Upvotes

r/code • • Jan 16 '21

2020 JavaScript rising stars (tools, frameworks, etc)

9 Upvotes

r/code • • Nov 17 '20

Working with .PDF files on Python (please help!!)

9 Upvotes

I'm looking for the best way to create and edit a pdf using python. My project involves delivering a pdf catalog of thousands of products and I need a way of automating the proccess or else I'll go crazy going though them one by one.

Thanks in advance :)