Skip to content

Instantly share code, notes, and snippets.

View axurright's full-sized avatar

BluePy axurright

View GitHub Profile
@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 / 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 / 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 / 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 / hello.clj
Created November 10, 2024 16:04
Hello World in Clojure
;; New line generated
(println "Hello World!")
@axurright
axurright / functionsarefun.clj
Last active November 10, 2024 16:14
How to make functions in Clojure (mostly for me)
;; Example in docs
(defn greet [name]
(str "Hello, " name))
;; My first ever function (very neat)
(defn selfgrade [grade]
(str "Your own grade: " grade))
;; Calling your function
(selfgrade "10")
@axurright
axurright / sums.dart
Last active November 10, 2024 19:02
A simple calculator (that only does sums) in Dart
import 'dart:io';
void main() {
print("First number: ");
firstNumber = stdin.readLineSync();
print("Reading...");
sleep(Duration(seconds: 1));
print("Done!");
print("Second number: ");
secondNumber = stdin.readLineSync();
@axurright
axurright / morefunctions.clj
Last active November 10, 2024 19:35
A couple of Clojure functions
;; A function that will tell you nice things for some reason
(defn nice [nice_word]
(str "You are " nice_word))
(nice "intelligent")
;; A function that will tell you your country
(defn country [country]
@axurright
axurright / plsdontgetme.py
Last active November 12, 2024 01:54
Some Python war crimes that will get you arrested if used in production.
for i in range(1000000):
print(i)
# Man if your toaster survives good job
nn = 69
# For your sanity nn is nerdNumber
if nn > 0:
print("It's equal than 0.")
@axurright
axurright / funpractice.clj
Last active November 11, 2024 14:59
Some Clojure functions for me to practice.
;; A function that will just sum and print some line.
(defn sum-print [message]
(str message (+ 6 12)))
(sum-print "I love Lisp and its Dialects")
;; A function that will print a normal text and a reverse version