This file contains 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
from time import strftime | |
import tkinter | |
from tkinter import Tk | |
root = Tk() | |
root.title("Digital Clock") | |
root.geometry("235x60") |
This file contains 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 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"] |
This file contains 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> | |
using namespace std; | |
int main() | |
{ | |
string noun, pluralNoun, adjective, pluralNoun2, foodItem, building; | |
cout << "Enter a noun: "; | |
getline(cin, noun); |
This file contains 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 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()); |
This file contains 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> | |
#include <cmath> | |
using namespace std; | |
int main() | |
{ | |
double num1, num2; | |
char op; |
This file contains 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 pygame | |
pygame.init() | |
screen = pygame.display.set_mode([500, 500]) | |
running = True | |
while running: |
This file contains 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
#!/bin/bash | |
echo "Enter name of directory: " | |
read CHDIR | |
cd $CHDIR |
This file contains 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 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": |
This file contains 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
echo "Name of file?" | |
read FILE | |
echo "This file will be created as ${FILE}_file." | |
touch ${FILE}_file |
This file contains 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
bl_info = { | |
"name" : "test", | |
"author" : "SmashedFrenzy16", | |
"description" : "Test Blender Addon", | |
"blender" : (2, 80, 0), | |
"version" : (0, 0, 1), | |
"location" : "View3D", | |
"warning" : "", | |
"category" : "Generic" | |
} |