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
| #!/usr/bin/python | |
| # WORK IN PROGRESS! NOT YET WORKING... | |
| import os | |
| import time | |
| import pygame # See http://www.pygame.org/docs | |
| from pygame.locals import * | |
| print("Press Escape to quit") | |
| time.sleep(1) |
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
| using System; | |
| class MainClass { | |
| public static void Main (string[] args) { | |
| Console.WriteLine ("User Input in C#..."); | |
| Console.Write("PROMPT> "); | |
| string userInput = Console.ReadLine(); | |
| Console.WriteLine("ECHO: " + userInput); | |
| } | |
| } |
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
| using System; | |
| class MainClass { | |
| public static void Main (string[] args) { | |
| Console.WriteLine ("User Input & Random Numbers in C#"); | |
| // USER INPUT IN C# | |
| /* | |
| Console.Write("PROMPT> "); | |
| string userInput = Console.ReadLine(); |
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
| """ | |
| Starting Template | |
| Once you have learned how to use classes, you can begin your program with this | |
| template. | |
| If Python and Arcade are installed, this example can be run from the command line with: | |
| python -m arcade.examples.starting_template | |
| """ | |
| import arcade |
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
| # Random Number Guessing Game by Shruthi Sudharsan- a rockstar coding student | |
| # at theCoderSchool in Flower Mound, TX | |
| import random | |
| print("guess.py") | |
| print("Copyleft 2018, Shruthi Sudharsan") | |
| print("") | |
| print("Guess a number between 0 and 13") | |
| print("") |
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
| # https://nerdparadise.com/programming/pygame/part1 | |
| import pygame | |
| pygame.init() | |
| screen = pygame.display.set_mode((400, 300)) | |
| # Add this somewhere after the event pumping and before the display.flip() | |
| pygame.draw.rect(screen, (0, 128, 255), pygame.Rect(30, 30, 60, 60)) |
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> | |
| #include <string> | |
| using namespace std; | |
| int main() { | |
| printf("Hello, what is your name? "); | |
| string name; | |
| cin >> name; | |
| printf("Nice to meet you %s", name.c_str()); | |
| } |
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
| # From Tutorial "Making blank worlds in Minecraft Pi Edition" | |
| # Blog Post & Code by Mike Karthauser | |
| # https://iammikek.wordpress.com/2013/03/07/making-blank-worlds-in-minecraft-pi-edition/ | |
| from mcpi import minecraft | |
| import mcpi.block as block | |
| mc = minecraft.Minecraft.create() |
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
| from mcpi import minecraft | |
| import mcpi.block as block | |
| # CREATE BLANK WORLD | |
| mc = minecraft.Minecraft.create() | |
| mc.postToChat("Clearing ALL...") | |
| blockId = block.AIR.id | |
| mc.setBlocks(-127,-127,-127,127,127,127,blockId) | |
| mc.postToChat("create floor") | |
| blockId = block.DIRT.id\ |
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
| // | |
| // ViewController.swift | |
| // Text2Speech | |
| // | |
| // Created by apple on 11/1/18. | |
| // Copyright © 2018 thecoderschool. All rights reserved. | |
| // | |
| import UIKit | |
| import AVFoundation |