Skip to content

Instantly share code, notes, and snippets.

View BluePyTheDeer251's full-sized avatar

BluePy BluePyTheDeer251

View GitHub Profile
@BluePyTheDeer251
BluePyTheDeer251 / mesaagesyes.clj
Created November 23, 2024 16:41
A message system (with more functionality) in Clojure.
(defn localMessageSys [message]
(println "Your message: ")
(str message))
(defn recieverMessageSys [receiverMessage]
(println "The other person's message: ")
(str recieverMessage))
(localMessageSys "Hello, Friend!")
(recieverMessageSys "Hello, what's up?")
@BluePyTheDeer251
BluePyTheDeer251 / hey.scala
Created November 22, 2024 15:57
Because I am bored: Hello World in Scala (I think it might be better than Java)
def Hello(): Unit =
println("Hello World!")
@BluePyTheDeer251
BluePyTheDeer251 / listfun.clj
Created November 21, 2024 18:49
Me practicing lists in Clojure.
(def myList '(251 45))
(first myList)
(println myList)
@BluePyTheDeer251
BluePyTheDeer251 / triangle.cs
Last active November 21, 2024 17:18
A C# program that will calculate the area of a triangle. (written with top-level functions)
Console.WriteLine("Please input the number of the base of the triangle. ");
int triangleBase = Convert.toInt32(Console.ReadLine());
Console.WriteLine("Please input the number of the height of the triangle. ");
int triangleHeight = Convert.toInt32(Console.ReadLine());
Console.WriteLine("Joining...");
int result = triangleBase * triangleHeight / 2;
Console.WriteLine($"Done! Your result: {result}");
@BluePyTheDeer251
BluePyTheDeer251 / messages.clj
Last active November 21, 2024 18:50
What a message system would be like in Clojure.
(defn messagesys [message]
(println "Your message: ")
(str message))
(messagesys "I love Clojure <3")
@BluePyTheDeer251
BluePyTheDeer251 / helpme.dart
Last active November 21, 2024 16:58
Some Dart war crimes that put me in the FBI most wanted programmers list.
import 'dart:io';
void main() {
for (int i = 1; i < 1000000000; i++) {
print(i);
}
// Good luck with this one.
print("Enter your password (any): ");
String? password = stdin.readLineSync();
if (password != null) {
print("Thanks for $password, now have access to your account (I do not)");
@BluePyTheDeer251
BluePyTheDeer251 / helloname.clj
Created November 20, 2024 17:48
Some Clojure function I thought of in 3 seconds.
(defn HelloName [name]
(str "Hello " name (+ 126.5 126.5)))
(HelloName "Paul")
@BluePyTheDeer251
BluePyTheDeer251 / practice.clj
Last active November 19, 2024 17:17
Some variable handling in Clojure
(def myNum 251)
(println myNum)
(defn HelloWorld [myNum2]
(str "Hello World! " myNum2))
(HelloWorld)
@BluePyTheDeer251
BluePyTheDeer251 / practicept2.js
Last active November 20, 2024 17:49
Some JS practice before my framework journey takes over.
const counter = 6;
for (counter in range(25)) {
counter++;
console.log(counter);
}
@BluePyTheDeer251
BluePyTheDeer251 / calc.cs
Created November 17, 2024 16:38
A simple calculator project (that only does sums) in C# (as a test)
Console.WriteLine("Number 1: ");
int number1 = Convert.toInt32(Console.ReadLine());
Console.WriteLine("Number 2: ");
int number2 = Convert.toInt32(Console.ReadLine());
int sum = number1 + number2;
Console.WriteLine($"Your sum's result: {sum}");