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 { fetchAccounts } from "../../services/AccountService"; | |
| export default { | |
| namespaced: true, | |
| state: { | |
| activeAccountId: null, | |
| accounts: [] | |
| }, | |
| mutations: { | |
| setAccounts (state, { accounts }) { |
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 React from 'react'; | |
| import { fetchAccounts } from '../services/AccountService'; | |
| import { fetchTransactions } from '../services/TransactionService'; | |
| import App from './App'; | |
| export const UIContext = React.createContext(); | |
| export const AccountContext = React.createContext(); | |
| export const TransactionContext = React.createContext(); | |
| class AppContainer extends React.Component { |
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
| function MaximalSquare(strArr) { | |
| var numRows = strArr.length; | |
| var numCols = strArr[0].length; | |
| var maxDim = Math.min(numRows, numCols); | |
| var dim = maxDim; | |
| while (dim > 0) { | |
| if (hasSquare(strArr, dim)) { | |
| return dim * dim; | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>D3: Data-driven circles</title> | |
| <script type="text/javascript" src="http://d3js.org/d3.v3.js"></script> | |
| <style type="text/css"> | |
| body { | |
| background-color: gray; |