Skip to content

Instantly share code, notes, and snippets.

View arslanay's full-sized avatar

Sakire Arslan Ay arslanay

  • WPI
  • Worcester, MA
View GitHub Profile
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import spreadsheet.Model.Cell.CellComponent;
import spreadsheet.Model.Cell.CellGroup;
import spreadsheet.Model.Cell.CellValue;
import spreadsheet.Model.CellRepository;
import spreadsheet.Model.Expression.Expression;
import spreadsheet.Model.Expression.Operand.CellReference;
import spreadsheet.Model.Expression.Operand.Constant;
import spreadsheet.Model.Expression.Operator.Aggregate.AggregateLambdaFactory;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import spreadsheet.Model.Cell.CellComponent;
import spreadsheet.Model.Cell.CellValue;
import spreadsheet.Model.CellRepository;
import spreadsheet.Model.Expression.Expression;
import spreadsheet.Model.Parser.ExpressionParser;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import spreadsheet.Model.Cell.CellComponent;
import spreadsheet.Model.Cell.CellValue;
import spreadsheet.Model.CellRepository;
import spreadsheet.Model.Expression.Expression;
import spreadsheet.Model.Parser.ExpressionParser;
import static org.junit.jupiter.api.Assertions.assertEquals;

CS 4233 - Term Project - C Term


Context


A spreadsheet is a deceptively simple application that combines data representation with computation: grids of cells with either blanks, values, or expressions that evaluate some function over inputs from other cells and/or constants. Fancier spreadsheets can include graphs, images, formatted text, etc. — but we don’t need to consider such details right now.

Spreadsheets involve a fairly sophisticated functional programming environment: expressions can contain functions of arbitrary number of arguments, or of a range of values; they can contain conditionals to select among options, etc.

In the term project, we will build a simple spreadsheet application using Java and React. We will practice the use of design patterns to organize our code according to object-oriented design principles and make our code flexible, easy to read and maintain.


# install the dependency :
# pip install beautifulsoup4
from bs4 import BeautifulSoup
import os
import csv
import subprocess
WRITE2FILE = False
@arslanay
arslanay / base.html
Last active August 31, 2021 22:16
base.html example using Bootstrap
{% extends 'bootstrap/base.html' %}
{% block title %}
{% if title %}{{ title }} - Student App {% else %}Welcome to Student App{% endif %}
{% endblock %}
{% block scripts %}
{{ moment.include_moment() }}
{% endblock %}
@arslanay
arslanay / chocolatycommend.txt
Last active August 30, 2022 19:06
How to install Haskell (Windows) ?
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout
from PyQt5 import uic, QtCore
from PyQt5.QtGui import QIcon, QPixmap
qtCreatorFile = "MyUI.ui" # Enter file here.
Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile)
class myApp(QMainWindow):
@arslanay
arslanay / pyqt_skeleton.py
Created January 27, 2019 15:48
pyqt5 skeleton code
import sys
from PyQt5 import QtCore, QtGui, uic
qtCreatorFile = "" # Enter file here.
Ui_MainWindow, QtBaseClass = uic.loadUiType(qtCreatorFile)
class MyApp(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)