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
| # Author: https://github.com/darcyadams | |
| # Context: https://github.com/deloreanjs/delorean/issues/89#issuecomment-124233890 | |
| # Separating dispatcher concerns in DeloreanJS | |
| {Flux} = require 'delorean' | |
| Global = require './stores/global' | |
| System = require './stores/system' | |
| UserStore = require './stores/loggedin_user' |
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 spiralMatrix(n) { | |
| var total = n * n, | |
| sides = n, | |
| x = 0, | |
| y = 0, | |
| dx = 1, | |
| dy = 0, | |
| matrix = [], | |
| i = 0, | |
| j = 0; |