This file contains 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
C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\node_modules\webpack-core\lib\LoadersList.js:7 | |
this.list.forEach(function(element) { | |
^ | |
TypeError: this.list.forEach is not a function | |
at new LoadersList (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\node_modules\webpack-core\lib\LoadersList.js:7:12) | |
at new NormalModuleFactory (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\NormalModuleFactory.js:16:17) | |
at Compiler.createNormalModuleFactory (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:369:28) | |
at Compiler.newCompilationParams (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:382:29) | |
at Compiler.compile (C:\Users\Jareth\AppData\Roaming\npm\node_modules\webpack\lib\Compiler.js:389:20) |
This file contains 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
nComponentDidMount: function(){ | |
var self = this; | |
self.state.socket.on('time', function(t) { | |
self.setState({time: t}); | |
if(self.state.time > 0 && self.props.storyOver == false){ | |
self.setState({duringRound: true}); | |
}else{ |
This file contains 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 React = require('react'); | |
var VoteWords = React.createClass({ | |
getInitialState: function(){ | |
return{ | |
votes: [] | |
} | |
}, |
This file contains 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 React = require('react'); | |
var VoteWords = React.createClass({ | |
getInitialState: function(){ | |
return{ | |
votes: [] | |
} | |
}, |
This file contains 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 React = require('react'); | |
var VoteWords = React.createClass({ | |
getInitialState: function(){ | |
return{ | |
votes: [] | |
} | |
}, |
This file contains 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 check = (props.chosenWord==vote.word); | |
return votes.map(function(vote) { | |
return <a className={classNames('btn', { btn-success: check},{btn-primary: !check})} key={vote.id} onClick={onclick}> {vote.word} <span className="badge">{vote.count}</span> </a> | |
}); |
This file contains 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 Set = require("collections/set"); | |
var gameList = {}; | |
function gameTiwas() { | |
this.time = 0; | |
}; | |
function gameRp() { | |
this.time = 0; |
This file contains 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
module.exports = function() { | |
const app = this; | |
const gameService = app.service('game'); | |
gameService.create(null, "tiwas", "tiwas"); | |
gameService.create(null, "rp", "rp"); | |
gameService.create(null, "", "tiwas"); | |
gameService.get("rp").then((game) => {console.log(game.time)}); | |
gameService.get("tiwas").then((game) =>{console.log(game)}); |
This file contains 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
/* | |
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
server, but for some reason omit a client connecting to it. I added an | |
example at the bottom. | |
Save the following server in example.js: | |
*/ | |
var net = require('net'); |
OlderNewer