Skip to content

Instantly share code, notes, and snippets.

View BluePyTheDeer251's full-sized avatar

BluePy BluePyTheDeer251

View GitHub Profile
@BluePyTheDeer251
BluePyTheDeer251 / recap1.dart
Last active December 6, 2024 02:23
Just a Dart recap.
import 'dart:io'
void main() {
print("Oh, user, I haven't seen you in a while! How many days have passed?");
String? passedDays = stdin.readLineSync();
if (passedDays != null) {
print("Oh man, It's been $passedDays since I have seen you! Hopefully you are fine.");
}
}
@BluePyTheDeer251
BluePyTheDeer251 / asAPractice.py
Created December 5, 2024 00:02
Just programming in Python.
print("Welcome!")
myRandomInteger = input("Input a number between 1 and 1000: ")
if myRandomInteger >= 10:
print("Why?")
elif myRandomInteger >= 100:
print("Ok, a nice number.")
elif myRandomInteger >= 1000:
print("Not bad.")
@BluePyTheDeer251
BluePyTheDeer251 / ow.clj
Created December 4, 2024 17:10
Just messing around in Clojure.
(def myVector [251 456 345])
(def myList '(3782 22536 14357))
(println "Your current vector: " myVector)
(println "Your current list: " myList)
;; Messing with both
(conj myVector 234 1556 478)
(println myVector)
(conj myList 2342515 54536271 35362617)
@BluePyTheDeer251
BluePyTheDeer251 / hey.md
Created November 27, 2024 02:03
an announcement

Hey guys, I think I burnt out of making gists so expect me to be more inactive.

@BluePyTheDeer251
BluePyTheDeer251 / mesaagesyes.clj
Last active November 24, 2024 16:18
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 receiverMessage))
(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
Last active November 24, 2024 16:27
Me practicing lists in Clojure.
(def myList '(251 45))
(first myList)
(println myList)
(def myList2 '("yes" "no" "maybe"))
(third myList2)
(println myList2)
(println myList myList2)
@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)");