Skip to content

Instantly share code, notes, and snippets.

View Jay-davisphem's full-sized avatar
🎯
Engaged in continuous learning and development to create high-quality solutions.

Oluwafemi David Jay-davisphem

🎯
Engaged in continuous learning and development to create high-quality solutions.
View GitHub Profile
#include <iostream>
int main()
{
std:cout << "Just testing gist\n" << std:endl;
return 0;
}
'''By David Oluwafemi(davisphem)'''
from typing import List, Callable
from math import log2, ceil
def get_n_max(a: float, b: float, tol: float) -> int:
'''get the number of iteration(number of times of bisecting)'''
return ceil(log2(abs(b - a) / tol))
@Jay-davisphem
Jay-davisphem / apalara.py
Created June 5, 2023 04:41
An AI driven model of a robotic arm. --- PLANNING: APÁLARÁ THE ROBOT ARM
import pygame
import math
class Box:
def __init__(self, label, color, position, width, height):
self.label = label
self.color = color
self.position = position
self.width = width
@Jay-davisphem
Jay-davisphem / trie.py
Last active July 14, 2024 15:02
Trie, TrieNode implementation
class TrieNode:
N = 62
def __init__(self):
self.is_word = False
self.word = ''
self.children = [None]*TrieNode.N
def __str__(self):
return f"TrieNode<'{self.word}'>"
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity WeatherStation is
Port (
Here is a step-by-step guide to implementing the IoT-Enabled Weather Station using VHDL on your DE2-70 board. The solution includes all necessary VHDL code, configurations, and explanations.
---
Step 1: Install and Set Up Quartus II 9.1
1. Install Quartus II: