This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
std:cout << "Just testing gist\n" << std:endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''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)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}'>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity WeatherStation is | |
Port ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |