Skip to content

Instantly share code, notes, and snippets.

@soleshka
soleshka / history_tab.py
Last active November 15, 2024 04:51
GUI for executing VCS 3 step compilation flow
from tkinter import *
from tkinter import ttk
import datetime
class HistoryTabC:
"""This is a container class for saving previously executed commands
It contains a text widget which shows commands content as well as
combo box containng the names of the commands
Commands are being labeld with a name and suffix of the date """
def __init__(self,root):
"""initializer for this class"""
"""
Clone of 2048 game.
To be used at : codeskulptor.org
Change board size at :poc_2048_gui.run_gui(TwentyFortyEight(2, 2))
"""
import poc_2048_gui
import random
# Directions, DO NOT MODIFY
UP = 1
@soleshka
soleshka / Timezone's clocks
Last active June 8, 2021 20:16
Different timezones time on an analog clock. Requires a local clock image
"""
Descript :
This file contains implementation of the different timezones
wall clocks.To add a new time zone update the TIMEZONES list.
Additional timezones maybe printed using : printtimezones()
Date : 01/03/2017
Implementor : Oleg Greenberg
Python version : 3
"""
from datetime import datetime
@soleshka
soleshka / Pong
Last active January 1, 2018 19:39
Simple pong game . To execute under codeskulptor.org
# Mini-project #6 - Pong
"""
This game implements the Pong game.
Use up/wodn and w/s to control the paddles
Date : 12/29/2017
Implementor : Oleg Greenberg
Environmnet : codeskulptor
"""
# Implementation of classic arcade game Pong
@soleshka
soleshka / BlackJack
Last active January 1, 2018 19:42
Simple Black jack game
# Mini-project #6 - Blackjack
"""
This game implements the gameBlack Jack in its simple variant
Date : 12/21/2017
Implementor : Oleg Greenberg
"""
import simplegui
import random