Skip to content

Instantly share code, notes, and snippets.

View horstjens's full-sized avatar
💭
teaching python/pygame to children

Horst JENS horstjens

💭
teaching python/pygame to children
View GitHub Profile
@fmasanori
fmasanori / gmail.py
Created February 9, 2013 13:23
Gmail Send Message
import smtplib
usr = 'your_user@gmail.com'
pwd = 'your password'
dst = 'destination email'
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(usr, pwd)
@yipyip
yipyip / hangman
Last active December 19, 2015 23:59
wrong naming in make_task: chars->markers
#!/usr/bin/env python3.3
# -*- coding: utf-8 -*-
"""A Simple Hangman Demo for Python3.
"""
####
import random as rand
@fmasanori
fmasanori / clock.py
Last active June 28, 2017 19:19
Clock GUI
import tkinter
from time import strftime
#by Luciano Ramalho
clock = tkinter.Label()
clock.pack()
clock['font'] = 'Helvetica 120 bold'
clock['text'] = strftime('%H:%M:%S')
@PaulPolaschek
PaulPolaschek / cannon1.py
Last active November 10, 2018 20:48
artillery game with python turtle
import turtle
import random
turtle.setup(1400,800)
peter=turtle.Turtle()
peter.pencolor("blue")
peter.pensize(3)
peter.fillcolor("red")
@fmasanori
fmasanori / asteroids.py
Created July 19, 2013 21:02
CodeSkulptor Asteroids
# program template for Spaceship
import simplegui
import math
import random
# globals for user interface
WIDTH = 800
HEIGHT = 600
score = 0
lives = 3
import random
class Boat:
'''all ships are part of the boat class'''
def __init__(self, length):
'''chooses random location & direction for ship for a given length'''
# print('\n', 'ship size: ', length, sep='')
self.direction = random.randint(0, 3)
# print('direction:', self.direction)
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
@pleabargain
pleabargain / create_presentation.py
Last active September 27, 2021 21:47
create a presentation from csv with revealjs and python3
#!/usr/bin/python3
# resources https://revealjs.com/
# resources https://spielend-programmieren.at/en/
import csv
import sys
import textwrap
@codeincontext
codeincontext / itunes-podcast-categories.yml
Created February 7, 2011 12:50
A list of the current iTunes podcast categories - in YAML format
- Arts:
- Design
- Fashion & Beauty
- Food
- Literature
- Performing Arts
- Spoken Word
- Visual Arts
- Business:
- Business News
@Julynx
Julynx / 15_python_tips.md
Last active April 4, 2024 06:20
15 Python Tips To Take Your Code To The Next Level!