Skip to content

Instantly share code, notes, and snippets.

View marcusbey's full-sized avatar

Romain BOBOE marcusbey

View GitHub Profile
@marcusbey
marcusbey / code-editor-rules.md
Created December 18, 2024 12:15 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@marcusbey
marcusbey / forms.html
Created May 12, 2020 09:15
html forms
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<title>Form a Story</title>
</head>
<body>
<section id="top">
@marcusbey
marcusbey / Queues.py
Created March 3, 2020 23:39
Data Structure -- Queues Python
from node import Node
class Queue:
def __init__(self, max_size=None):
self.head = None
self.tail = None
self.max_size = max_size
self.size = 0
def enqueue(self, value):
@marcusbey
marcusbey / Basta Fazoolin.py
Created February 25, 2020 01:45
You’ve started position as the lead programmer for the family-style Italian restaurant Basta Fazoolin’ with My Heart. The restaurant has been doing fantastically and seen a lot of growth lately. You’ve been hired to keep things organized.
class Business:
def __init__(self, name, franchises):
self.name = name
self.franchises = franchises
class Franchise:
def __init__(self, address, menus):
self.address = address
self.menus = menus
@marcusbey
marcusbey / Scrabble.py
Last active March 27, 2024 16:00
Codeacademy Scrabble: The project process some data from a group of friends playing scrabble.
letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
points = [1, 3, 3, 2, 1, 4, 2, 4, 1, 8, 5, 1, 3, 4, 1, 3, 10, 1, 1, 1, 1, 4, 4, 8, 4, 10]
#combining the two lists
letters_to_points = {}
for key, value in zip(letters, points):
letters_to_points[key] = value
#print(letters_to_points)
#adding a blank tile to our dictionary
@marcusbey
marcusbey / Thread Shed.py
Created February 4, 2020 10:01
Break up `daily_sales` in easy to understand lists `customers`, `sales`, and `threads_sold`.
daily_sales = \
"""Edith Mcbride ;,;$1.21 ;,; white ;,;
09/15/17 ,Herbert Tran ;,; $7.29;,;
white&blue;,; 09/15/17 ,Paul Clarke ;,;$12.52
;,; white&blue ;,; 09/15/17 ,Lucille Caldwell
;,; $5.13 ;,; white ;,; 09/15/17,
Eduardo George ;,;$20.39;,; white&yellow
;,;09/15/17 , Danny Mclaughlin;,;$30.82;,;
purple ;,;09/15/17 ,Stacy Vargas;,; $1.85 ;,;
purple&yellow ;,;09/15/17, Shaun Brock;,;
@marcusbey
marcusbey / The borderless tourist script.py
Last active February 4, 2020 09:59
A TOURISM RECOMMENDATION ENGINE
#!/usr/bin/env python
# -*- coding: utf-8 -*-
destinations = ["Paris, France", "Shanghai, China", "Los Angeles, USA", "São Paulo, Brazil", "Cairo, Egypt"]
test_traveler = ['Erin Wilkes', 'Shanghai, China', ['historical site', 'art']]
attractions = [[] for attraction in destinations]
def get_destination_index(destination):
return destinations.index(destination)