Skip to content

Instantly share code, notes, and snippets.

View lem0n4id's full-sized avatar
🚀
Learning

Lenin Kennedy lem0n4id

🚀
Learning
View GitHub Profile
@lem0n4id
lem0n4id / keybase.md
Created February 19, 2024 10:15
keybase

Keybase proof

I hereby claim:

  • I am lem0n4id on github.
  • I am lem0n4id (https://keybase.io/lem0n4id) on keybase.
  • I have a public key ASD57kqwS8KJ_9q7G7agma73kAuDnGlqa8jcHGv2BLk_AAo

To claim this, I am signing this object:

@lem0n4id
lem0n4id / venv.md
Created August 15, 2022 12:28
markdown clip to set up venv

Make sure you have python installed

Terminal - bash (commands differ for cmd)

  1. Set up virtualenv
    $ virtualenv venv
  2. Activate venv
@lem0n4id
lem0n4id / tic-tac-toe.py
Created January 31, 2022 21:32
Cli tic tac toe game made in python
'''CLI tic-tac-toe game
This script allows the user to play a 2 player agme of tic-tac-toe
on the command line. The board is 0-indexed.
This script requires no extra modules to be installed within the Python
environment you are running this script in.
'''
# nested list to store X & O
@lem0n4id
lem0n4id / rest-server.py
Last active December 15, 2021 15:17 — forked from miguelgrinberg/rest-server.py
The code from miguel grinberg's article on building RESTful web services with Python and the Flask microframework. See the article here: http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask
"""This script is a simple TODO web service.
A basic authentication has been implemented using flask_httpauth
API routes defined:
- get_tasks
- get_task
- create_task
- update_task
- delete_task

Keybase proof

I hereby claim:

  • I am lem0n4id on github.
  • I am lem0n4id (https://keybase.io/lem0n4id) on keybase.
  • I have a public key ASAbzmLDUvsCrYFRB6c1JmASWW-FeI71smdElJdVTyJirwo

To claim this, I am signing this object:

@lem0n4id
lem0n4id / slot_machine_simulator.py
Created June 17, 2021 21:02
this is python program that impliments a slot machine like simulator using random module of python ;)
import random
def slot_machine_start():
print('\t\t\t\t\tWelcome to slot machine simulator')
print()
print('\tHere\'s your 100 coins to start playing')
print(' ____________________________________________________________________________________')
print(' | |')
print(' | The game is simple |')
print(' | |')
print(' | Each spin costs 25 coins |')