Skip to content

Instantly share code, notes, and snippets.

View axurright's full-sized avatar

BluePy axurright

View GitHub Profile
@axurright
axurright / hello.clj
Created November 10, 2024 16:04
Hello World in Clojure
;; New line generated
(println "Hello World!")
@axurright
axurright / pointless.cs
Last active November 10, 2024 01:59
Some stupid thing for me in C#
int anInteger = 251;
float aFloat = 2.51045;
string aString = "Yo mama";
char aCharacter = "b";
bool aBoolean = true;
Console.WriteLine($"Integer: {anInteger}");
Console.WriteLine($"Float: {aFloat}");
Console.WriteLine($"String: {aString}");
Console.WriteLine($"Character: {aCharacter}");
@axurright
axurright / forstatements.py
Last active November 3, 2024 22:30
For me to remember how to FREAKING USE FOR STATEMENTS in Python.
# Average for statement
myArray = ["yes", "no", "maybe"]
for m in myArray:
print(m, len(myArray), myArray)
# Range
for i in range(251):
print(i)
print("I am not responsible for your device burning somehow")
@axurright
axurright / fatedecider.go
Last active November 3, 2024 23:11
A simple thing that will decide your fate based on how many apples you have in Go.
package main
import "fmt"
func main() {
fmt.Println("Welcome.")
var apples int
fmt.Println("Please enter a number.")
fmt.Scan(&apples)
if apples <= 10 {
@axurright
axurright / random.py
Created October 29, 2024 01:08
A random 10x10 array generator in Python
import numpy as np
print("Generating array...")
array = np.random.choice(np.arrange(0,1000000), replace = False, size = (10, 10))
print(array)
print("Hope it is unique enough!")
@axurright
axurright / guessnum.rs
Last active October 28, 2024 00:56
A randomly generated "Guess the number!" game in Rust, following the guide on "The Book" (I am loving it)
use std::io;
use rand::Rng;
use std::cmp::Ordering;
fn main() {
println!("Guess the number!");
let secret_number = rand::thread_rng().gen_range(1..=100);
loop {
println!("The secret number is: between 1-100 and randomly generated!");
@axurright
axurright / guess.dart
Created October 24, 2024 19:46
A guess the word game in Dart
import 'dart:io';
void main() {
var word = "Random";
print("Guess the word!");
String? userGuess = stdin.readLineSync();
if (userGuess != null) {
if (userGuess == word) {
print("Congrats, the word was Random!");
} else if (userGuess != word) {
@axurright
axurright / game.py
Created October 21, 2024 17:41
A simple game in Python.
print("Welcome!")
guess = input("Guess the Word! (Clue: It has 9 letters) (Capitalized) ")
word = "Brilliant"
if guess == word:
print(f"Congratulations, {word} was the word!")
else:
print(f"Sorry, {guess} wasn't the word.")
print("Now we will do some maths! (very simple actually)")
userNum = input("What is the result of '24 * 58 / 5 + 251'? ")
@axurright
axurright / arrays.dart
Last active November 3, 2024 23:05
Array Generator in Dart.
import 'dart:io';
void main() {
print("Number 1: ");
String? number1 = stdin.readLineSync();
print("Analyzing...");
sleep(Duration(seconds: 5));
print("Done!");
sleep(Duration(seconds: 1));
print("Number 2: ");
@axurright
axurright / hi.cpp
Created October 17, 2024 15:10
A Hello World in C++ to mark the start of my learning
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}