예제 #1
0
def setup():
    """EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")"""

    p4_slackbots = model.Project(
        "Merch Website", "http://76.176.109.127:6969/",
        "/static/img/p4_slackbots.PNG", "P4Slackbots", [
            "Abhijay Deevi", "Kevin Do", "Travis Medley", "Paul Bokelman",
            "Gavin Theriault"
        ],
        "This project is a merch website that we created for our Youtube channels, GodlyGoats and "
        "Albertpani Compani. We have a lot of merch you can buy and other information."
    )

    p4_hangman = model.Project(
        "Music Website", url_for('p4_hangman_bp.index'),
        "/static/img/p4hangman.png", "P4 Hangman", [
            "Charlie Zhu", "Rohan Nallapati", "Rivan Nayak", "Sarah Xie",
            "Noah Pidding"
        ],
        "This website includes a portfolio of our projects we worked on this trimester as well as a music section including three different genres of music with multiple examples and descriptions of each."
    )

    projects = [p4_slackbots, p4_hangman]
    period = model.Period("Period 4",
                          "AP Principles of Computer Science - Python",
                          projects)
    return period
예제 #2
0
def setup():
    '''EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")'''

    cyphercrypto = model.Project(
        "CypherCrypto", url_for('cyphercrypto_bp.index'),
        "/static/img/bgdeer.jpg", "Cryptomaniacs", [
            "Nihar Marar", "Tyler Cloutier", "Dylan Roman",
            "Anthony Giustiniano", "Cherry Ding"
        ], "We use Ciphers and encrypt/decrypt messages.")

    minigames = model.Project(
        "Website Portfolio", "http://www.google.com", "/static/img/arcade.png",
        "Crystal's Team", [
            "Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini",
            "Eva Gravin", "Dane Vestal"
        ], "This is our website with minigames, our portfolio, and much more!")

    p2_einsteins = model.Project(
        "Project Page", url_for('p2_einsteins_bp.home_route'),
        "/static/img/p2_einsteins.png", "Einsteins", [
            "Pragadeesh Raj", "Ayman Kazi", "Brandon Truong",
            "Navodit Maheshwari", "Ali Saad"
        ],
        "Welcome to the world of ASCII games, intuitive text-based calculators, journal, reflections, individual showcases, and so much more!"
    )

    projects = [cyphercrypto, minigames, p2_einsteins]
    period = model.Period("Period 2",
                          "AP Principles of Computer Science - Python",
                          projects)
    return period
예제 #3
0
def setup():
    """EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")
                            """

    p5_calculus = model.Project(
        "p5_calculus", "https://github.com/AkhileshLG/flaskportfolio-1",
        "/static/img/AkaTeamCalculus.png", "calculus", [
            "Karam Alshaikh", "Akhilesh Genneri", "Akshit Prathipati",
            "Noya Hafiz", "Jien (Max) Wang"
        ],
        "This website is used for everything calculus and to spread our information about it"
    )

    p5_chessGame = model.Project(
        "Chess Game",
        "https://www.youtube.com/channel/UC59JU4vWL8l0eQrixwds_3A",
        "/static/img/p5chessGame.jpg", "Chess Game", [
            "Colin Szeto", "Devam Shrivastava", "Shekar Krishnamoorthy",
            "Kyle Myint", "David Kim"
        ], "Vist Chess Game to play through our chess game!")

    p5_gorillas = model.Project(
        "Gorillas", "http://70.95.189.45:5000/", "/static/img/p5_gorillas.png",
        "Gorillas", [
            "Pedro de Medeiros", "Jagroop Vij", "Arul Salaniwal",
            "Manuel Villa-Hernandez", "Colin Tran"
        ],
        "Here you find the repositories for all our projects; our journals, where we document coding progress; and Individual pages with personal information and our coding experiences. Explore!!"
    )

    p5_monkeymen = model.Project(
        "San Diego Travel Website", url_for('p5_monkeymen_bp.index'),
        "/static/img/p5_monkeymen.jpg", "Monkey Men", [
            "Allen Xu", "Marc Humeau", "Jacob Nguyen", "Dadyar Khalili Samani",
            "Jason Francisco"
        ], "A website that reviews wonderful places located in San Diego")

    p5_multimedia = model.Project(
        "Multimedia", "http://rubinfamily.dyndns.org:5000/",
        '/static/img/p5_multimedia.png', "multimedia", [
            "Komay Sugiyama", "Christopher Rubin", "Ridhima Inukurti",
            "Kian Kishimito", "Megan Corrigan"
        ],
        "Search amazon, show off your youtube videos, and share your spotify playlists on this multimedia page!"
    )

    projects = [
        p5_calculus, p5_gorillas, p5_chessGame, p5_multimedia, p5_monkeymen
    ]  # p5_monkeymen  p5_multimedia

    period = model.Period("Period 5",
                          "Some really smart people study apcsp here",
                          projects)
    return period
예제 #4
0
def setup():
    project1 = model.Project("Project 1", "http://www.google.com", "/static/img/cat1.jpg", "Team Name",
                             ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
                            "This is our fabulous project, because we are cool")
    p2_sshlogin = model.Project("SSH Login", url_for('p2_SSHLogin_bp.index'), "/static/img/sshlogin.png", "SSH Login",
                             ["Ahmad Nasim", "Andrew Crisostomo", "Tanmay Marwah", "Max Vukovich", "Luca Pinto", "Cody Peng"],
                            "We have created an SSH Login system thaf displays users system info using arrays, we also created a forum posting for data on our website.")
    project3 = model.Project("Project 3", "http://www.google.com", "/static/img/cat1.jpg", "Team Name",
                             ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
                            "This is our fabulous project, because we are cool")
    project4 = model.Project("Project 4", "http://www.facebook.com", "/static/img/cat2.png", "Another Team Name",
                             ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
                            "This is another fabulous project of ours")
    project5 = model.Project("Project 5", "http://www.google.com", "/static/img/cat1.jpg", "Team Name",
                             ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
                            "This is our fabulous project, because we are cool")
    project6 = model.Project("Project 6", "http://www.facebook.com", "/static/img/cat2.png", "Another Team Name",
                             ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
                            "This is another fabulous project of ours")
    project7 = model.Project("Project 7", "http://www.google.com", "/static/img/cat1.jpg", "Crystal's Team",
                             ["Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini", "Eva Gravin", "Dane Vestal"],
                            "This is our website with minigames, our portfolio, and much more!")
    project8 = model.Project("Project 8", "http://www.facebook.com", "/static/img/cat2.png", "Another Team Name",
                             ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
                            "This is another fabulous project of ours")
    projects = [project1, p2_sshlogin, project3, project4, project5, project6, project7, project8]
    period = model.Period("Period 2", "Some really smart people study here", projects)
    return period
예제 #5
0
def setup():
    # project1 = model.Project("Project 1", url_for('teacher_bp.index'), "/static/img/cat3.jpg", "Team Teacher",
                            # ["Talented Ghost 1", "Talented Mummy 2", "Smart Witch 3"],
                            # "This project is kind of funky, becuase I am a computer nerd")
    
    p1_robotmania = model.Project("Robot Mania", url_for('p1_robotmania_bp.index'), "/static/img/p1_robotmania.png", "Robot Mania",
                             ["Nakul Nandhakumar", "Sanvi Pal", "Sara Beniwal", "Vihan Jayaraman", "Yasaswi Singamneni"],
                             "The main focus of our project was to make a bunch of fun minigames. There are some other activities "
                             "that will show up on the menu but the highlights are battleship, connect-four, and hangman.")
    p1_dataminers = model.Project("Dataminers", url_for('p1_dataminers_bp.index'), "/static/img/p1_dataminersTile.png", "Dataminers",
                                                  ["Andrew Pegg", "David Ramsayer", "Dominic Phung", "Michael Hayes", "Jason Chang"],
                                                  "This project has many different demos in a single program: notepad, unit converter, calculator, tic tac toe, and hangman.")
    projects = [p1_robotmania, p1_dataminers]
    period = model.Period("Period 1", "Computer Science A", projects)
    return period
예제 #6
0
def setup():
    '''
    EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")'''

    cyphercrypto = model.Project(
        "CypherCrypto", url_for('cyphercrypto_bp.index'),
        "/static/img/bgdeer.jpg", "Cryptomaniacs", [
            "Nihar Marar", "Tyler Cloutier", "Dylan Roman",
            "Anthony Giustiniano", "Cherry Ding"
        ], "We use Ciphers and encrypt/decrypt messages.")

    p2_triviagame = model.Project(
        "Website Portfolio", url_for("p2_triviagame_bp.index"),
        "/static/img/arcade.png", "Crystal's Team", [
            "Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini",
            "Eva Gravin", "Dane Vestal"
        ], "This is our website with minigames, our portfolio, and much more!")
    """p2_einsteins = model.Project("Project Page", url_for('p2_einsteins_bp.home_route'), "/static/img/p2_einsteins.png",
                                 "Einsteins",
                                 ["Pragadeesh Raj", "Ayman Kazi", "Brandon Truong", "Navodit Maheshwari", "Ali Saad"],
                                 "Welcome to the world of ASCII games, intuitive text-based calculators, journal, "
                                 "reflections, individual showcases, and so much more!")"""

    p2_anime = model.Project(
        "Plants", "http://76.176.59.209/", "/static/img/p2_anime.gif", "Anime",
        [
            "Andrew Zhang", "Bradley Bartelt", "Shreya Vesant", "Diane Tang",
            "Nikolas Gee"
        ], "This website shows all kinds of plants and their maintnance tips")

    p2_rappers = model.Project(
        "About Everything", 'http://107.200.91.165:5000/',
        "/static/img/p2_rapname.jpg", "Rapper", [
            "Sophie Bulkin", "Carter Quartararo", "Aditi Akella",
            "Isai Rajaraman", "Mustafa Sharaf"
        ],
        "This is our out of this world website which will tell you about a multitude of things "
        "such as our group and Del Norte!")

    projects = [cyphercrypto, p2_triviagame, p2_rappers,
                p2_anime]  #p2_einsteins,
    # projects = [cyphercrypto, p2_triviagame, p2_anime]
    period = model.Period("Period 2",
                          "AP Principles of Computer Science - Python",
                          projects)
    return period
예제 #7
0
파일: views.py 프로젝트: lani314/eureka
def add_project():

    error = None

    form = forms.AddProjectForm()
    if form.validate_on_submit():
        register_project = model.Project(id = None, project_master = g.user.id, project_name = form.name.data, project_password = form.password.data, base_text = form.base_text.data, keywords = form.keywords.data)
        model.session.add(register_project)
        

        # access membership table, set to variable
        place_membership = model.Membership()
        # access user from model, set that to global user from session
        place_membership.user = g.user
        # access the project part of membership, set that to the registered project
        place_membership.project = register_project
        # add this id, as represented as a variable
        model.session.add(place_membership)

        # commit this addition
        model.session.commit()
        # session["membership"] = place_membership.id
        # session["project"] = register_project.id
        project = register_project.id
        st_project = str(project)
        # session["kwords"] = register_project.keywords
        
        return redirect("/my_project/" + st_project)
        # return redirect("/new_idea")
    else:
        # error = flash("Please fill out all fields")
        flash("Please correctly enter all fields")
        return redirect("/new_project")
예제 #8
0
    def test_send_and_get_sample(self):
        """
        Tests sending and receiving sample data
        :return:
        """
        # set up a project to upload samples to
        project_name = "test_project_2"
        project_description = "test_project_description"
        project = model.Project(name=project_name,
                                description=project_description)

        proj_json_res = self.test_api.send_project(project)
        project_identifier = proj_json_res['resource']['identifier']

        # upload a sample
        sample_name = "test_sample"
        sample_desc = "test_sample_desc"
        sample = model.Sample(sample_name, sample_desc)

        sample_json_res = self.test_api.send_sample(sample, project_identifier)

        # make sure the returned values match what we tried to upload
        self.assertEqual(sample_json_res['resource']['sampleName'],
                         sample_name)
        self.assertEqual(sample_json_res['resource']['description'],
                         sample_desc)

        # get a list of samples on our project and make sure they match what we uploaded
        sample_list = self.test_api.get_samples(project_identifier)

        self.assertEqual(len(sample_list), 1)
        self.assertEqual(type(sample_list[0]), model.Sample)
        self.assertEqual(sample_list[0].sample_name, sample_name)
        self.assertEqual(sample_list[0].description, sample_desc)
예제 #9
0
    def test_send_and_get_project(self):
        """
        Tests sending and receiving project data
        :return:
        """
        # try sending a project
        project_name = "test_project"
        project_description = "test_project_description"
        project = model.Project(name=project_name,
                                description=project_description)

        json_res = self.test_api.send_project(project)

        # make sure the json response is what we expect it to be
        self.assertEqual(json_res['resource']['name'], project_name)
        self.assertEqual(json_res['resource']['projectDescription'],
                         project_description)

        # get a list of all projects
        proj_list = self.test_api.get_projects()
        proj = proj_list[len(proj_list) - 1]

        # verify info matches what we uploaded
        self.assertEqual(type(proj), model.Project)
        self.assertEqual(proj.name, project_name)
        self.assertEqual(proj.description, project_description)

        # make sure identifiers match
        self.assertEqual(json_res['resource']['identifier'],
                         str(len(proj_list)))
        self.assertEqual(json_res['resource']['identifier'], proj.id)
예제 #10
0
def add_project():

    form = forms.AddProjectForm()
    if form.validate_on_submit():
        register_project = model.Project(id=None,
                                         project_name=form.name.data,
                                         project_password=form.password.data,
                                         base_text=form.base_text.data)
        model.session.add(register_project)

        # query in Projects to get the id of the currently registered project's id
        # model.session.commit()
        # model.session.refresh(register_project)

        # insert id into memberships table position for project_id
        #project_id = register_project.id, user_id = g.user.id)

        # access membership table, set to variable
        place_membership = model.Membership()
        # access user from model, set that to global user from session
        place_membership.user = g.user
        # access the project part of membership, set that to the registered project
        place_membership.project = register_project
        # add this id, as represented as a variable
        model.session.add(place_membership)

        # commit this addition
        model.session.commit()
        session["project"] = register_project.id
        # WHY IS THE FLASH NOT WORKING?
        flash("You have successfully created a new project.")
        return redirect("/new_idea")
    return render_template("/mypage")
예제 #11
0
def add_project(db, user_id, name, renderer):
    user = db.query(model.User).filter(model.User.id == user_id).first()
    if user is None:
        raise QueryException("Authentication failed")
    project = model.Project(name=name, renderer=renderer, owner=user)
    db.add(project)
    db.commit()
예제 #12
0
def build_sequencing_run_from_samples(sample_sheet_file, metadata):
    """
    Create a SequencingRun object with full project/sample/sequence_file structure

    :param sample_sheet_file:
    :param metadata:
    :return: SequencingRun
    """
    sample_list = _parse_sample_list(sample_sheet_file)

    logging.debug("Building SequencingRun from parsed data")

    # create list of projects and add samples to appropriate project
    project_list = []
    for sample in sample_list:
        project = None
        for p in project_list:
            if sample.get('sample_project') is p.id:
                project = p
        if project is None:
            project = model.Project(id=sample.get('sample_project'))
            project_list.append(project)

        project.add_sample(sample)

    sequence_run = model.SequencingRun(metadata, project_list)
    logging.debug("SequencingRun built")
    return sequence_run
예제 #13
0
    def newExam(self):
        directory = str(self.setExistingDirectory())

        if directory:
            directory = abspath(directory)
            print(directory)

            project_count = 1

            while os.path.exists(
                    join(directory,
                         DEFAULT_PROJECT_FOLDER_NAME % project_count)):
                project_count += 1

            name = DEFAULT_PROJECT_FOLDER_NAME % project_count

            project_path = join(directory, name)

            print('about to create %s at %s' % (name, directory))
            # TODO: Fix project creation
            self.project = model.Project(name, 5, 1, [], [])
            self.project_path = join(project_path, DEFAULT_PROJECT_FILENAME)

            # Invoke Autoexam
            api.init(name, project_path)

            # Create base project file
            model.dump_project(self.project, '%s' % self.project_path)

            os.chdir(project_path)
            self.startWizard()
예제 #14
0
def setup():
    project1 = model.Project("Project 1", url_for('teacher_bp.index'), "/static/img/cat3.jpg", "Team Teacher",
                             ["Talented Ghost 1", "Talented Mummy 2", "Smart Witch 3"],
                            "This project is kind of funky, becuase I am a computer nerd")
    projects = [project1]
    period = model.Period("Period 1", "Java Gear Heads", projects)
    return period
예제 #15
0
    def post(self):
        firmid = self.request.get('firmid')
        projid = self.request.get('projid')
        new_proj = self.request.get('new_proj')
        proj = None
        key = ndb.Key('Firm', firmid, 'Project', projid)

        if new_proj:
            proj = model.Project(key=key)
        else:
            proj = key.get()

        proj.populate(
            title_e=self.request.get('title_e'),
            title_h=self.request.get('title_h'),
            address_e=self.request.get('address_e'),
            address_h=self.request.get('address_h'),
            year=int(self.request.get('year')),
            description_e=self.request.get('description_e'),
            description_h=self.request.get('description_h'),
            status=self.request.get('status'),
            plot_area=int(self.request.get('plot_area')),
            built_area=int(self.request.get('built_area')),
            classification=self.request.get('classification')
        )
        proj.put()
        self.redirect('/%s/admin/firm' % firmid)
예제 #16
0
def setup():
    EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")

    p4_slackbots = model.Project("Merch Website", "http://76.176.109.127:6969/", "/static/img/p4_slackbots.PNG",
                                 "P4Slackbots",
                                 ["Abhijay Deevi", "Kevin Do", "Travis Medley", "Paul Bokelman", "Gavin Theriault"],
                                 "This project is a merch website that we created for our Youtube channels, GodlyGoats and "
                                 "Albertpani Compani. We have a lot of merch you can buy and other information.")

    p4_hangman = model.Project("Hangman", url_for('p4_hangman_bp.index'), "/static/img/p4hangman.png", "P4 Hangman",
                               ["Charlie", "Rohan", "Rivan", "Sarah", "Noah"],
                               "This project is kind of funky, because I am a computer nerd")

    projects = [p4_slackbots, p4_hangman, EXAMPLE]
    period = model.Period("Period 4", "Some really smart people study apcsp here", projects)
    return period
예제 #17
0
def build_sequencing_run_from_samples(sample_sheet_file):
    """
    Create a SequencingRun object with full project/sample/sequence_file structure

    :param sample_sheet_file:
    :return: SequencingRun
    """
    sample_list = _parse_sample_list(sample_sheet_file)

    logging.debug("Building SequencingRun from parsed data")

    # create list of projects and add samples to appropriate project
    project_list = []
    for sample_number, sample in enumerate(sample_list):
        # get data from data dict
        sample_name = sample['Sample_Name']
        project_id = sample['Project_ID']
        file_f = sample['File_Forward']
        file_r = sample['File_Reverse']

        project = None
        # see if project exists
        for p in project_list:
            if project_id == p.id:
                project = p
        # create project if it doesn't exitt yet
        if project is None:
            project = model.Project(id=project_id)
            project_list.append(project)

        # create sequence file
        if len(file_r) > 0:
            # paired end read
            sq = model.SequenceFile(properties_dict=None, file_list=[file_f, file_r])
        else:
            # single end read
            sq = model.SequenceFile(properties_dict=None, file_list=[file_f])

        # create sample
        sample_obj = model.Sample(sample_name=sample_name, sample_number=sample_number+1)

        # add sequence file to sample
        sample_obj.sequence_file = deepcopy(sq)

        # add sample to project
        project.add_sample(sample_obj)

    # add the layout type to the sequencing run so we know if it is paired or single end
    if project_list[0].sample_list[0].sequence_file.is_paired_end():
        metadata = {'layoutType': 'PAIRED_END'}
    else:
        metadata = {'layoutType': 'SINGLE_END'}

    sequence_run = model.SequencingRun(metadata=metadata, project_list=project_list)
    logging.debug("SequencingRun built")
    return sequence_run
예제 #18
0
def setup():
    """EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")"""

    p5_calculus = model.Project(
        "p5_calculus", "https://github.com/AkhileshLG/flaskportfolio-1",
        "/static/img/AkaTeamCalculus.png", "calculus", [
            "Karam Alshaikh", "Akhilesh Genneri", "Akshit Prathipati",
            "Noya Hafiz", "Jien (Max) Wang"
        ],
        "This website is used for everything calculus and to spread our information about it"
    )

    p5_chessGame = model.Project(
        "Chess Game", url_for('p5_chessGame_bp.index'),
        "/static/img/p5chessGame.JPG", "Chess Game", [
            "Colin Szeto", "Devam Shrivastava", "Shekar Krishnamoorthy",
            "Kyle Myint", "David Kim"
        ], "Vist Chess Game to play through our chess game!")

    p5_gorillas = model.Project(
        "Gorillas", "http://70.95.189.45:5000/", "/static/img/p5_gorillas.png",
        "Gorillas", [
            "Pedro de Medeiros", "Jagroop Vij", "Arul Salaniwal",
            "Manuel Villa-Hernandez", "Colin Tran"
        ],
        "Here you find the repositories for all our projects; our journals, where we document coding progress; and Individual pages with personal information and our coding experiences. Explore!!"
    )

    p5_monkeymen = model.Project(
        "San Diego Travel Website", "http://www.google.com",
        "/static/img/p5_monkeymen.JPG", "Monkey Men", [
            "Allen Xu", "Marc Humeau", "Jacob Nguyen", "Dadyar Khalili Samani",
            "Jason Francisco"
        ], "A website that reviews wonderful places located in San Diego")

    projects = [p5_calculus, p5_gorillas, p5_monkeymen, p5_chessGame]

    period = model.Period("Period 5",
                          "Some really smart people study apcsp here",
                          projects)
    return period
예제 #19
0
 def post(self, firmid, projid):
     """create a new project with a given projid
     """
     proj_key = ndb.Key("Firm", firmid, "Project", projid)
     proj = proj_key.get()
     if proj:
         self.error(409)
     else:
         d = json.loads(self.request.body)
         proj = model.Project(key=proj_key, **d)
         proj.put()
예제 #20
0
def setup():
    EXAMPLE = model.Project(
        "Example", url_for('teacher_bp.index'), "/static/img/teacher.png",
        "Team Teacher", ["John Mortensen", "Classroom of 40"],
        "Visit a VANTA birds experience and see how it is made.")

    p5_calculus = model.Project(
        "p5_calculus", "https://github.com/AkhileshLG/flaskportfolio-1",
        "/static/img/AkaTeamCalculus.png", "calculus", [
            "Karam Alshaikh", "Akhilesh Genneri", "Akshit Prathipati",
            "Noya Hafiz", "Jien (Max) Wang"
        ],
        "This website is used for everything calculus and to spread our information about it"
    )

    projects = [p5_calculus, EXAMPLE]
    period = model.Period("Period 5",
                          "Some really smart people study apcsp here",
                          projects)
    return period
예제 #21
0
def setup():
    # project1 = model.Project("Project 1", url_for('teacher_bp.index'), "/static/img/cat3.jpg", "Team Teacher",
    # ["Talented Ghost 1", "Talented Mummy 2", "Smart Witch 3"],
    # "This project is kind of funky, becuase I am a computer nerd")

    p1_robotmania = model.Project(
        "Robot Mania", url_for('p1_robotmania_bp.index'),
        "/static/img/p1_robotmania.png", "Robot Mania", [
            "Nakul Nandhakumar", "Sanvi Pal", "Sara Beniwal",
            "Vihan Jayaraman", "Yasaswi Singamneni"
        ],
        "The main focus of our project was to make a bunch of fun minigames. There are some other activities "
        "that will show up on the menu but the highlights are battleship, connect-four, and hangman."
    )
    p1_dataminers = model.Project(
        "Dataminers", url_for('p1_dataminers_bp.index'),
        "/static/img/p1_dataminersTile.png", "Dataminers", [
            "Andrew Pegg", "David Ramsayer", "Dominic Phung", "Michael Hayes",
            "Jason Chang"
        ],
        "This project has many different demos in a single program: notepad, unit converter, calculator, tic tac toe, and hangman."
    )

    p1_ilikeyacodeg = model.Project(
        "I Like Ya Code G", url_for('p1_ilikeyacodeg_bp.index'),
        "/static/img/p1_I-like-ya-code-g.png", "I Like Ya Code G",
        ["Dhruv Kanetkar", "Tanay Shah", "Gautam Gupta", "Dhruv Sengupta"],
        "This is our Calculator Suite that allows the user to calculate a variety of things. "
        "It can do basic scientific calculation, convert units and binary values, sovle derivatives, and solve physics kinematic problems"
    )
    p1_mortos = model.Project(
        "MortOS", url_for('p1_mortos_bp.index'),
        "/static/img/p1-mortos-examplepic.png", "MortOS", [
            "Nathaniel Cherian", "Benjamin Herrick", "Jett Kim",
            "Brendan Trinh", "Anthony Vo"
        ],
        "Our project was an exploration of different coding topics and concepts that's displayed through "
        + "a variety of minigames. Try some of them out!")
    projects = [p1_robotmania, p1_dataminers, p1_ilikeyacodeg, p1_mortos]
    period = model.Period("Period 1", "Computer Science A - Java", projects)
    return period
예제 #22
0
def setup():
    EXAMPLE = model.Project(
        "Project Name", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name", [
            "Talented Student 1", "Talented Student 2", "Smart Student 3",
            "Team Member 4", "Amazing Member 5"
        ], "This is our fabulous project, because we are cool (description)")
    projects = [EXAMPLE]
    period = model.Period("Period 4",
                          "Some really smart people study apcsp here",
                          projects)
    return period
예제 #23
0
def setup():
    # project1 = model.Project("Project 1", url_for('teacher_bp.index'), "/static/img/cat3.jpg", "Team Teacher",
                            # ["Talented Ghost 1", "Talented Mummy 2", "Smart Witch 3"],
                            # "This project is kind of funky, becuase I am a computer nerd")
    
    p1_robotmania = model.Project("Robot Mania", url_for('p1_robotmania_bp.index'), "/static/img/p1_robotmania.png", "Robot Mania",
                             ["Nakul Nandhakumar", "Sanvi Pal", "Sara Beniwal", "Vihan Jayaraman", "Yasaswi Singamneni"],
                             "The main focus of our project was to make a bunch of fun minigames. There are some other activities "
                             "that will show up on the menu but the highlights are battleship, connect-four, and hangman.")
    p1_dataminers = model.Project("Dataminers", url_for('p1_dataminers_bp.index'), "/static/img/p1_dataminersTile.png", "Dataminers",
                                                  ["Andrew Pegg", "David Ramsayer", "Dominic Phung", "Michael Hayes", "Jason Chang"],
                                                  "This project has many different demos in a single program: notepad, unit converter, calculator, tic tac toe, and hangman.")

    p1_ilikeyacodeg = model.Project("I Like Ya Code G", url_for('p1_ilikeyacodeg_bp.index'), "/static/img/p1_I-like-ya-code-g.png", "I Like Ya Code G",
                                    ["Dhruv Kanetkar", "Tanay Shah", "Gautam Gupta", "Dhruv Sengupta"], "This is our Calculator Suite that allows the user to calculate a variety of things. "
                                                                                                        "It can do basic scientific calculation, convert units and binary values, sovle derivatives, and solve physics kinematic problems")
    p1_mortos = model.Project("MortOS", url_for('p1_mortos_bp.index'), "/static/img/p1-mortos-examplepic.PNG", "MortOS",
                             ["Nathaniel Cherian", "Benjamin Herrick", "Jett Kim", "Brendan Trinh", "Anthony Vo"],
                             "Our project was an exploration of different coding topics and concepts that's displayed through " +
                             "a variety of minigames. Try some of them out!")
    p1_grocerystoresim = model.Project("Boomer Esports", url_for('p1_grocerystoresim_bp.index'), "/static/img/p1_grocery.png", "Grocery Store Sim",
                             ["Kevin Hu", "Sean Tran", "Aditya Surapaneni", "Siddhant Ranka", "Jacob Rozenkrants"],
                             "Tired of modern flashy video games and want a blast to the past? " +
                             "Check out some of these classic games that are a nice break from the fast paced and stressful modern games.")
    p1_hexpass = model.Project("HexPass", url_for('p1_hexpass_bp.index'), "/static/img/p1_hexpass.png", "Hexpass", 
                              ["Aidan Rosen", "Andrew Hale", "Andrew Joseph", "Alex Hu", "Atharva Kudrimoti"], 
                               "This project is a combination of a password manager, vector calculator and graphing calculator")
    
    projects = [p1_robotmania, p1_dataminers, p1_ilikeyacodeg, p1_mortos, p1_grocerystoresim, p1_hexpass] #, p1_grocerystoresim
    period = model.Period("Period 1", "Computer Science A - Java", projects)

    return period
예제 #24
0
def setup():
    project1 = model.Project(
        "CypherCrypto", url_for('cyphercrypto_bp.index'),
        "/static/img/bgdeer.jpg", "Cryptomaniacs", [
            "Nihar Marar", "Tyler Cloutier", "Dylan Roman",
            "Anthony Giustiniano", "Cherry Ding"
        ], "We use Ciphers and encrypt/decrypt messages.")
    project2 = model.Project(
        "Project 2", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project3 = model.Project(
        "Project 3", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project4 = model.Project(
        "Project 4", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project5 = model.Project(
        "Project 5", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project6 = model.Project(
        "Project 6", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project7 = model.Project(
        "Reserved by Crystal", "http://www.google.com", "/static/img/cat1.jpg",
        "Crystal's Team", [
            "Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini",
            "Eva Gravin", "Dane Vestal"
        ], "This is our website with minigames, our portfolio, and much more!")
    project8 = model.Project(
        "Project 8", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    projects = [
        project1, project2, project3, project4, project5, project6, project7,
        project8
    ]
    period = model.Period("Period 2", "Some really smart people study here",
                          projects)
    return period
예제 #25
0
def setup():
    project1 = model.Project(
        "Project 1", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project2 = model.Project(
        "Project 2", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project3 = model.Project(
        "Project 3", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project4 = model.Project(
        "Project 4", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project5 = model.Project(
        "Travel Website", "Http://75.80.119.252",
        "https://lh3.googleusercontent.com/yGFa3i6X522UOjW3cBZKBUnwOqwzfc9-TxZOL0K0inWDCD65TdBvfKAXRrfy9XUOUhWAsA=s170",
        "Newbiecoders", [
            "Diego Krenz", "Ethan Sun", "Wesley Chen", "Andrea Abed",
            "Naweid Hassanzadeh"
        ], "Learn all about cities in Europe and plan your next trip!")
    project6 = model.Project(
        "Project 6", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project7 = model.Project(
        "Project 7", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project8 = model.Project(
        "Project 8", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    projects = [
        project1, project2, project3, project4, project5, project6, project7,
        project8
    ]
    period = model.Period("Period 2", "Some really smart people study here",
                          projects)
    return period
예제 #26
0
파일: flr_rss.py 프로젝트: abaelhe/fl-grab
 def update(self):
     for item in self.project_generator():
         if model.Project.query.filter_by(url=item['link']).first():
             continue
         category = self.get_category(item['category'])
         model.Project(name=item['title'],
                       url=item['link'],
                       description=item['description'],
                       category=category,
                       date=datetime.datetime.strptime(
                           item['date'], "%a, %d %b %Y %H:%M:%S %Z"),
                       site=self.site)
     session.commit()
예제 #27
0
    def test_project_exists(self):
        """
        upload a project and check if project can be found with the projects_exists method
        :return:
        """
        project_name = "test_project_exists"
        project_description = "test_project_exists_description"
        project = model.Project(name=project_name,
                                description=project_description)

        json_res = self.test_api.send_project(project)
        project_id = json_res['resource']['identifier']
        self.assertTrue(self.test_api.project_exists(project_id))
예제 #28
0
파일: LYPA_cl.py 프로젝트: lightvfx/LYPA
 def createProject(self, name, cfg, width, height, ratio, framerate, lut,
                   client):
     project = model.Project(Name=name,
                             ConfigFile=cfg,
                             Width=width,
                             Height=height,
                             Ratio=ratio,
                             FrameRate=framerate,
                             LUT=lut,
                             Client=client)
     model.saveData()
     self.makeProjectdir(name)
     self.makeGDataDB(name)
def setup():
    '''
    EXAMPLE = model.Project("Example", url_for('teacher_bp.index'), "/static/img/teacher.png", "Team Teacher",
                            ["John Mortensen", "Classroom of 40"],
                            "Visit a VANTA birds experience and see how it is made.")'''

    cyphercrypto = model.Project("CypherCrypto", url_for('cyphercrypto_bp.index'), "/static/img/p2_cyphercrypto.jpg",
                                 "Cryptomaniacs",
                                 ["Nihar Marar", "Tyler Cloutier", "Dylan Roman", "Anthony Giustiniano", "Cherry Ding"],
                                 "We use Ciphers and encrypt/decrypt messages.")

    p2_triviagame = model.Project("Website Portfolio", url_for("p2_triviagame_bp.index"), "/static/img/p2_arcade.png",
                                  "Trivia Game",
                                  ["Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini", "Eva Gravin", "Dane Vestal"],
                                  "This is our website with minigames, our portfolio, and much more!")

    p2_einsteins = model.Project("Project Page", url_for('p2_einsteins_bp.index'), "/static/img/p2_einsteins.png",
                                 "Einsteins",
                                 ["Pragadeesh Raj", "Ayman Kazi", "Brandon Truong", "Navodit Maheshwari", "Ali Saad"],
                                 "Welcome to the world of ASCII games, intuitive text-based calculators, journal, "
                                 "reflections, individual showcases, and so much more!")
    
    p2_dinos = model.Project("Dinos Portfolio", url_for('p2_dinos_bp.home'), "/static/img/p2_dinos.png", "Dinos",
                             ["Noah Ahooja", "Nolan D'Esopo", "Troy Tinkel", "", ""],
                             "Welcome to our arcade!")

    p2_anime = model.Project("Plants", "http://76.176.59.209/", "/static/img/p2_anime.gif", "Anime",
                             ["Andrew Zhang", "Bradley Bartelt", "Shreya Vesant", "Diane Tang", "Nikolas Gee"],
                             "This website shows all kinds of plants and their maintnance tips")

    p2_rappers = model.Project("About Everything", 'http://107.200.91.165:5000/', "/static/img/p2_rapname.jpg",
                               "Rapper",
                               ["Sophie Bulkin", "Carter Quartararo", "Aditi Akella", "Isai Rajaraman",
                                "Mustafa Sharaf"],
                               "This is our out of this world website which will tell you about a multitude of things "
                               "such as our group and Del Norte!")

    p2_newbiecoders = model.Project("Travel Website", "Http://75.80.119.252", "https://lh3.googleusercontent.com/yGFa3i6X522UOjW3cBZKBUnwOqwzfc9-TxZOL0K0inWDCD65TdBvfKAXRrfy9XUOUhWAsA=s170", "Newbiecoders",
                             ["Diego Krenz", "Ethan Sun", "Wesley Chen", "Andrea Abed", "Naweid Hassanzadeh"],
                             "Learn all about cities in Europe and plan your next trip!")

    p2_sshlogin = model.Project("SSH Login", "http://104.2.84.172:80", "/static/img/sshlogin.png", "SSH Login",
                                ["Ahmad Nasim", "Andrew Crisostomo", "Tanmay Marwah", "Max Vukovich", "Luca Pinto", "Cody Peng"],
                                "We have created an SSH Login system thaf displays users system info using arrays, we also created a forum posting for data on our website.")

    projects = [cyphercrypto, p2_triviagame,  p2_anime, p2_dinos, p2_einsteins, p2_rappers, p2_newbiecoders, p2_sshlogin]
    # projects = [cyphercrypto, p2_triviagame, p2_anime]
    period = model.Period("Period 2", "AP Principles of Computer Science - Python", projects)
    return period
예제 #30
0
def setup():
    project1 = model.Project(
        "Project 1", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project2 = model.Project(
        "Project 2", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project3 = model.Project(
        "Project 3", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project4 = model.Project(
        "Project 4", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project5 = model.Project(
        "Project 5", "http://www.google.com", "/static/img/cat1.jpg",
        "Team Name",
        ["Talented Student 1", "Talented Student 2", "Smart Student 3"],
        "This is our fabulous project, because we are cool")
    project6 = model.Project(
        "Project 6", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    project7 = model.Project(
        "Project 7", "http://www.google.com", "/static/img/cat1.jpg",
        "Crystal's Team", [
            "Crystal Widjaja", "Nivedita Rethnakar", "Ida Mobini",
            "Eva Gravin", "Dane Vestal"
        ], "This is our website with minigames, our portfolio, and much more!")
    project8 = model.Project(
        "Project 8", "http://www.facebook.com", "/static/img/cat2.png",
        "Another Team Name",
        ["Talented Student 3", "Talented Student 4", "Smart Student 6"],
        "This is another fabulous project of ours")
    projects = [
        project1, project2, project3, project4, project5, project6, project7,
        project8
    ]
    period = model.Period("Period 2", "Some really smart people study here",
                          projects)
    return period