I finally got my thoughts on what I want to do with my life together, so I'm currently learning C++. Expect to actually see activity here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() { | |
int myRandomNumber = 251; | |
int yes = 45; | |
std::cout << myRandomNumber + yes << " (yes, I'm uninspired)"; | |
return 0; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("What's 6 x 3?") | |
answer = input() | |
if int(answer) == 18: | |
print("You are safe.") | |
else: | |
print("DIE.") | |
for i in range(1, 100000000): | |
print(i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Please do not talk, I am trying to sleep...") | |
talking = input() | |
if talking != None: | |
print("SHUT THE HELL UP!!!!!!!!!") | |
if talking == None: | |
print("Zzz...") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
Hey guys, I think I burnt out of making gists so expect me to be more inactive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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?") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def Hello(): Unit = | |
println("Hello World!") |
NewerOlder