Make sure you have node.js and NPM installed.
Set your terminal to this directory.
| I'm given the equation 5.9 = 5.11 - x, and I need to solve for x. | |
| Let me start by isolating x: | |
| 5.9 = 5.11 - x | |
| First, I'll add x to both sides: | |
| 5.9 + x = 5.11 | |
| Then I'll subtract 5.9 from both sides: | |
| x = 5.11 - 5.9 | |
| Now I need to calculate 5.11 - 5.9: | |
| 5.11 - 5.9 = 0.21 | |
| Therefore, x = 0.21 |
| ty.dulst.propertyValueChange = function(property, old, newString) { | |
| ty.dulst.cardsInterface.cardCollection.each(function(card) { | |
| var changeThisCard; | |
| var out = card.get(property); | |
| if (out && out === old) { | |
| changeThisCard = true; | |
| } | |
| if (changeThisCard) { | |
| console.log("attempting to update", card.get("title")); |
| decisions (6) [145, 144, 140, 134, 154, 135] | |
| ph.js:28071 runSim 1 | |
| ph.js:28134 new best play!!!! [145] 25 | |
| ph.js:28071 runSim 2 | |
| ph.js:28134 new best play!!!! (2) [145, 140] 46 | |
| ph.js:28071 runSim 3 | |
| ph.js:28134 new best play!!!! (3) [145, 140, 135] 60 | |
| ph.js:28071 runSim 4 | |
| ph.js:28134 new best play!!!! (4) [145, 140, 135, 134] 65 | |
| ph.js:28071 runSim 5 |
| /** | |
| * Created by djarno on 1/19/2016. | |
| */ | |
| var classname = "[c/ramstats.js]"; | |
| var redis = require("redis"); | |
| var debug = require("../debug.js"); |
| div.form-multiple(ng-model='story.u', ng-init='formMultipleDefault = {n:""}') | |
| .form-multiple-item(ng-repeat="user in formMultiple") | |
| input.choiceItem(type='text', placeholder='Author username', ng-model="user.n", ng-change="setUserID(user.n, $index)") |
| div.form-multiple(form-multiple='story.u', ng-init='formMultipleDefault = {n:""}') | |
| .form-multiple-item(ng-repeat="user in formMultiple") | |
| input.choiceItem(type='text', placeholder='Author username', ng-model="user.n", ng-change="setUserID(user.n, $index)") |
| .directive('formMultiple', function() { | |
| return { | |
| scope: { | |
| formMultiple: '=', | |
| }, | |
| link: function(scope, elm, attr) { | |
| $(elm).on('keydown', 'input', function() { | |
| if( $(elm).find('input:last').val() != '') { | |
| scope.formMultiple.push(scope.formMultipleDefault) | |
| scope.$digest() |
| Template.storiesList.stories = function () { | |
| return Stories.find().map(function (story) { | |
| story.titleurl = ty.url(story.title) | |
| return story | |
| }); | |
| }; |
| ubuntu@domU-12-31-39-0A-50-65:~/www$ sudo NODE_ENV=production forever start -o out2.log -e err2.log server.js | |
| node.js:201 | |
| throw e; // process.nextTick error, or 'error' event on first tick | |
| ^ | |
| Error: Unable to load shared library /usr/local/lib/node_modules/forever/node_modules/daemon/lib/daemon.v0.6.13.node | |
| at Object..node (module.js:472:11) | |
| at Module.load (module.js:348:31) | |
| at Function._load (module.js:308:12) | |
| at Module.require (module.js:354:17) |