Skip to content

Instantly share code, notes, and snippets.

View SmashedFrenzy16's full-sized avatar
:atom:
Working towards my next project!

SmashedFrenzy16 SmashedFrenzy16

:atom:
Working towards my next project!
View GitHub Profile
@SmashedFrenzy16
SmashedFrenzy16 / digital_clock.py
Created April 3, 2022 16:48
A digital clock in Python.
from time import strftime
import tkinter
from tkinter import Tk
root = Tk()
root.title("Digital Clock")
root.geometry("235x60")
@SmashedFrenzy16
SmashedFrenzy16 / locating_iss.py
Created April 3, 2022 16:46
A program in Python that locates the International Space Station.
import urllib.request
import json
import webbrowser
response = urllib.request.urlopen('http://api.open-notify.org/iss-now.json')
print(response)
data = json.loads(response.read())
latitude = data["iss_position"]["latitude"]
longitude = data["iss_position"]["longitude"]
@SmashedFrenzy16
SmashedFrenzy16 / madLibs.cpp
Last active April 3, 2022 16:45
MadLibs in C++.
#include <iostream>
using namespace std;
int main()
{
string noun, pluralNoun, adjective, pluralNoun2, foodItem, building;
cout << "Enter a noun: ";
getline(cin, noun);
@SmashedFrenzy16
SmashedFrenzy16 / file_creator.java
Created March 28, 2022 15:26
A Java File Creator.
import java.io.File;
import java.io.IOException;
public class fileCreator {
public static void main(String[] args) {
try {
File myObj = new File("textdoc1.txt");
if (myObj.createNewFile()) {
System.out.println("The following file was created: " + myObj.getName());
@SmashedFrenzy16
SmashedFrenzy16 / calculator.cpp
Created March 28, 2022 15:25
A calculator made in C++
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num1, num2;
char op;
@SmashedFrenzy16
SmashedFrenzy16 / circle.py
Created February 14, 2022 16:48
A circle made in Pygame.
import pygame
pygame.init()
screen = pygame.display.set_mode([500, 500])
running = True
while running:
@SmashedFrenzy16
SmashedFrenzy16 / changing_directory.sh
Created February 14, 2022 16:47
Changing directory script made in Bash.
#!/bin/bash
echo "Enter name of directory: "
read CHDIR
cd $CHDIR
@SmashedFrenzy16
SmashedFrenzy16 / idea_for_invenmania.py
Created February 11, 2022 20:36
Starting game concept for InvenMania.
import time
import sys
start = input("Hello there citizen of the lands of Pass. Please type in your name: ")
time.sleep(1)
game = input("Do you want to start a game in Slot 1 (y/n)? ")
if game == "y" or game == "Y":
@SmashedFrenzy16
SmashedFrenzy16 / file_creator.sh
Created February 11, 2022 20:20
File Creator in Shell.
echo "Name of file?"
read FILE
echo "This file will be created as ${FILE}_file."
touch ${FILE}_file
@SmashedFrenzy16
SmashedFrenzy16 / __init__.py
Created January 22, 2022 21:35
Send cursor to center Blender Addon
bl_info = {
"name" : "test",
"author" : "SmashedFrenzy16",
"description" : "Test Blender Addon",
"blender" : (2, 80, 0),
"version" : (0, 0, 1),
"location" : "View3D",
"warning" : "",
"category" : "Generic"
}