- 9 Posts
- 5 Comments
Joined 13 days ago
Cake day: December 11th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
ghodawalaaman@programming.devOPto
Asklemmy@lemmy.ml•Is there a browser which runs Lisp instead of JavaScript?
14·5 days agoIf no then why nobody has made it already?
ghodawalaaman@programming.devto
Programming@programming.dev•GNU Guix transactional package manager and distribution — GNU Guix
3·6 days agoWow thanks for the mini tutorial :)
ghodawalaaman@programming.devto
Advent Of Code@programming.dev•🔒 - 2025 DAY 1 SOLUTIONS -🔒
1·9 days agoC# ( c sharp )
using System.Collections; using System.Collections.Generic; namespace ConsoleApp1 { public static class Program { public static void Part1() { var lines = File.ReadAllLines("C:\\Users\\aman\\RiderProjects\\ConsoleApp1\\ConsoleApp1\\input.txt"); var dialReading = 50; int result = 0; foreach (var line in lines) { if (dialReading == 0) { result += 1; } char dir = line[0]; int rotation = int.Parse(line.Substring(1)); if (dir == 'R') { dialReading += rotation; dialReading %= 100; } else { int diff = dialReading - rotation; if (diff > 0) { dialReading -= rotation; dialReading %= 100; } else { dialReading = dialReading + 100 - rotation; dialReading %= 100; } } } Console.WriteLine(result); } public static void Part2() { var lines = File.ReadAllLines("C:\\Users\\aman\\RiderProjects\\ConsoleApp1\\ConsoleApp1\\input.txt"); var dialReading = 50; int result = 0; foreach (var line in lines) { char dir = line[0]; int rotation = int.Parse(line.Substring(1)); if (dir == 'R') { while (rotation > 0) { if (dialReading == 0) result += 1; dialReading += 1; dialReading %= 100; rotation -= 1; } } else { while (rotation > 0) { if (dialReading == 0) result += 1; dialReading -= 1; if ( dialReading < 0) dialReading += 100; dialReading %= 100; rotation -= 1; } } } Console.WriteLine(result); } public static void Main(string[] args) { Part1(); Part2(); } } }
ghodawalaaman@programming.devto
Programming@programming.dev•What is your development environment?
291·9 days agoWindows + Visual Studio :(


Wow thank you so much!