GithubHelp home page GithubHelp logo

fullchee / courseography Goto Github PK

View Code? Open in Web Editor NEW

This project forked from courseography/courseography

0.0 0.0 0.0 60.66 MB

Courseography is a tool created by David Liu and Ian Stewart-Binks to guide students through their undergraduate careers.

License: GNU General Public License v3.0

Haskell 45.83% JavaScript 53.93% Shell 0.11% Batchfile 0.04% HTML 0.08%

courseography's Introduction

Hi! I'm Fullchee! ๐Ÿ‘‹

(pronounced Full of Cheese ๐Ÿง€)

๐Ÿ’ผ ย  I work with React and Django at Forma.ai in Toronto ๐Ÿ‡จ๐Ÿ‡ฆ

At Forma.ai, I:

  • build React dashboards
    • so sales reps know how much they get paid and why
  • write SQL queries from business logic
  • develop on a Django backend to send data to the frontend

I've taken the lead in building up our company's Storybook to boost dev productivity.

๐Ÿ’ป ย  I like building apps with TypeScript, React, Node.js, Python and Postgres!

courseography's People

Contributors

ailsaf avatar akbiggs avatar bellkelly avatar bettyruntianwang avatar christinem avatar david-yz-liu avatar elliottsj avatar frankjohnlee avatar fullchee avatar hongfagranite avatar ian-stewart-binks avatar jmatholia avatar justinpark715 avatar klmerryn avatar lanaelsanyoura avatar lydiayliu avatar miameng avatar minfanzhang avatar nzliu avatar pengmai avatar pkhutch avatar pkukulak avatar r0ss avatar ryandjlee avatar ryanscfan avatar shaftoes avatar sidguptacode avatar tamaralipows avatar

Watchers

 avatar  avatar  avatar

courseography's Issues

PR: fake-course-info

make sure that the updated info is good

waiting for the updated infobox tests

Snapshot test for Hybrid Node

In Node.test.js, I am having difficulty setting up a snapshot test.

I have decided to put this on hold since the node props will likely be different after the refactoring phase for the react-draw tool.

I get the following error

    TypeError: Cannot read property 'current' of undefined

      43 |           console.log(svg.nodes)
      44 |         }
    > 45 |         if (svg.nodes.current[element] !== undefined) {
         |                       ^
      46 |           return svg.nodes.current[element].isSelected();
      47 |         } else if (svg.bools.current[element] !== undefined) {
      48 |           return svg.bools.current[element].isSelected();

      at current (js/components/graph/Node.js:45:23)

Here are my current node props that I copied from

it("should match shallow snapshot", () => {
const nodeProps = {
      "JSON": {
        "graph": 1,
        "height": 24,
        "type_": "Hybrid",
        "text": [{
          "graph": 1,
          "rId": "text103",
          "text": "(H101)",
          "pos": [596.555968, 59.379107999999995],
          "fill": "",
          "align": "begin"
        }],
        "width": 52.768799,
        "stroke": "",
        "pos": [600.585648, 41.51310800000002],
        "fill": "#888888",
        "id_": "h108"
      },
      "className": "hybrid",
      "hybrid": true,
      "parents": ["aaa101"],
      "childs": ["aaa201"],
      "inEdges": [],
      "outEdges": ["p6"],
      "svg": {
        "props": {
          "start_blank": false,
          "edit": false,
          "initialDrawMode": "draw-node"
        },
        "context": {},
        "refs": {},
        "updater": {},
        "state": {
          "labelsJSON": [],
          "regionsJSON": [],
          "nodesJSON": [{
            "graph": 1,
            "height": 30,
            "type_": "Node",
            "text": [{
              "graph": 1,
              "rId": "text102",
              "text": "AAA101",
              "pos": [596.555968, 25.379107999999995],
              "fill": "",
              "align": "begin"
            }, {
              "graph": 1,
              "rId": "text103",
              "text": "(H101)",
              "pos": [596.555968, 34.379107999999995],
              "fill": "",
              "align": "begin"
            }],
            "width": 65,
            "stroke": "",
            "pos": [594.294128, 10.09390799999999],
            "fill": "#5dd5b8",
            "id_": "aaa101"
          }],
          "edgesJSON": [],
          "highlightedNodes": [],
          "timeouts": [],
          "fceCount": 0,
          "width": 1217.9941,
          "height": 646.78271,
          "zoomFactor": 1,
          "horizontalPanFactor": 0,
          "verticalPanFactor": 0,
          "mouseDown": false,
          "buttonHover": false,
          "onDraw": false,
          "drawMode": "draw-node",
          "drawNodeID": 0,
          "draggingNode": null
        }
      }
    };
const wrapper = shallow(<Node {...nodeProps} />);
    expect(wrapper).toMatchSnapshot();

InfoBox Tests

import fetchMock from "fetch-mock";
import testData from "./__mocks__/testData";
import aaa100CourseInfo from './__mocks__/aaa100-course-info.js';

fetchMock.get(
  "http://localhost:8000/get-json-data?graphName=Computer+Science",
  testData
);
fetchMock.get("http://localhost/course?name=aaa100", aaa100CourseInfo);
fetchMock.get("/course?name=aaa100", aaa100CourseInfo);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.