Skip to content

Instantly share code, notes, and snippets.

View axurright's full-sized avatar

BluePy axurright

View GitHub Profile
@axurright
axurright / nooooo.py
Last active November 14, 2024 01:12
Programming war crimes: Python.
import os
import numpy as np
from numpy import random
import time
from time import sleep
import shutil
userNumber = input("Guess the number or your Windows will die.")
realNumber = random.randInt(1000000000)
@axurright
axurright / huh.dart
Created November 14, 2024 00:40
A weird programming practice: Writing code in another language. (Because programming languages are normally in English)
vacío principal() {
meGustanLasVerduras = falso;
si (meGustanLasVerduras = verdadero) {
imprime("Bravo! Haces un buen trabajo");
} sino {
imprime("Enserio, BluePy, come tus benditas verduras.");
}
// This is not meant to be discriminatory, it's just something a little bit unheard of that might make code harder to read.
@axurright
axurright / websiteCookies.js
Created November 14, 2024 00:29
This meme from years ago
if (userInfo.cookies.agreed) {
Collect(user.data)
} else {
Collect(user.data)
}
// CatX711 pls don't sue me
@axurright
axurright / playercount.py
Last active November 12, 2024 16:49
A simple player counter in Python
def player_count(game_players):
players = ["You", "Me"]
return players
print("Player count: ", player_count(players)
# This possibly doesn't work.
@axurright
axurright / functionsyay.clj
Last active November 22, 2024 16:13
Some more complex functions in Clojure.
;; A function (non-interactable) that will calculate the area of a triangle (plus a message by you)
(defn triangle [message]
(println "Result: ")
(let [b 8 h 7] (/ (* b h) 2)))
(str message))
(triangle "This is fun!")
@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
@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 / 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 / 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 / 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")