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
const simulator_cpu_delay_in_milliseconds = 1000; | |
function run_simulation () { | |
// Figure out the value of `simulator_cpu_delay_in_milliseconds`. | |
// You may not reference it directly nor access any global objects | |
// such as `Date()` or `console.time()` that aren't specifically | |
// declared within the scope of this `run_simulation()` function. | |
} | |
setInterval(run_simulation, simulator_cpu_delay_in_milliseconds); |
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
$routeProvider | |
.when('/', { | |
resolve: { | |
user: function() { | |
return 'user_id'; | |
} | |
} | |
}); |
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
var someState = { | |
resolve: { | |
user: function() { | |
return 'user_id'; | |
} | |
} | |
}; | |
$stateProvider.state(someState); |
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
$modal.open({ | |
resolve: { | |
value: function() { | |
return _this.value; | |
} | |
} | |
}); |