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
I20140919-16:31:23.508(-4)? ----------- getSummonerByName ------------ | |
I20140919-16:31:23.695(-4)? { iamleewin: | |
I20140919-16:31:23.698(-4)? { id: 48639887, | |
I20140919-16:31:23.700(-4)? name: 'I AM LEE WIN', | |
I20140919-16:31:23.701(-4)? profileIconId: 30, | |
I20140919-16:31:23.703(-4)? summonerLevel: 17, | |
I20140919-16:31:23.705(-4)? revisionDate: 1411147289000 } } | |
I20140919-16:31:23.707(-4)? Found update! | |
I20140919-16:31:23.709(-4)? ----------- getSummonerByName ------------ | |
I20140919-16:31:23.711(-4)? undefined |
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
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
</head> | |
<body> | |
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | |
<div class="container"> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> |
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
Router.onBeforeAction(function () { | |
// all properties available in the route function | |
// are also available here such as this.params | |
if (!Meteor.user()) { | |
// if the user is not logged in, render the Login template | |
this.render('Login'); | |
} else { | |
// otherwise don't hold up the rest of hooks or our route/action function | |
from running |
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>Angular Test</title> | |
<script type="text/javascript" src="bower_components/angular/angular.js"></script> | |
<script type="text/javascript" src="bower_components/angular-resource/angular-resource.js"></script> | |
<script type="text/javascript" src="main.js"></script> | |
</head> | |
<body ng-app="colorApp"> |
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
--------- change your template so it looks like this ------------- | |
<template name="test"> | |
{{#each emails}} | |
{{address}} | |
{{/each}} | |
</template> | |
------- and in your router ------------------ |
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
Router.configure({ | |
layoutTemplate: 'application', | |
loadingTemplate: 'loading', | |
waitOn: function() { return [Meteor.subscribe('AllQuestionData'), Meteor.subscribe('AllCSVData')] } | |
}); | |
Router.route('global', { path: '/global'} ); | |
Router.route('questionsStream', { path: '/'}); | |
Router.route('questionsStreamConverted', { path: '/converted'}); |
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 ping = Meteor.npmRequire('ping'); | |
// Just to show how async ping works | |
ping.sys.probe("127.0.0.1", function(hostStatus) { | |
console.log(hostStatus); | |
}); | |
// Two different ways of wrapping | |
var wrappedPingA = Async.wrap(ping.sys.probe); | |
var wrappedPingB = Meteor.wrapAsync(ping.sys.probe); |
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
W20141124-17:31:32.094(0)? (STDERR) | |
W20141124-17:31:32.136(0)? (STDERR) /home/ciwolsey/.meteor/packages/meteor-tool/.1.0.35.1bjny7b++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:206 | |
W20141124-17:31:32.136(0)? (STDERR) throw(ex); | |
W20141124-17:31:32.137(0)? (STDERR) ^ | |
W20141124-17:31:32.137(0)? (STDERR) [object Object] | |
W20141124-17:31:32.137(0)? (STDERR) at Object.Future.wait (/home/ciwolsey/.meteor/packages/meteor-tool/.1.0.35.1bjny7b++os.linux.x86_64+web.browser+web.cordova/meteor-tool-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:326:15) | |
W20141124-17:31:32.137(0)? (STDERR) at packages/meteor/helpers.js:118 | |
W20141124-17:31:32.137(0)? (STDERR) at app/server/main.js:5:1 | |
W20141124-17:31:32.137(0)? (STDERR) at app/server/main.js:8:3 | |
W20141124-17:31:32.137(0)? (STDERR) at /home/ciwolsey/projects/hello/.meteor/local/build/programs/server/boot.js:168:10 |
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 superagent = Meteor.npmRequire('superagent'); | |
var agentAsync = Meteor.wrapAsync(superagent.get, superagent); | |
var result = agentAsync('http://104.130.36.36:8080/json/'); |
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
I20141124-23:53:39.420(0)? ------ PING CYCLE ---- | |
I20141124-23:53:39.460(0)? ping | |
I20141124-23:53:44.366(0)? ------ PING CYCLE ---- | |
I20141124-23:53:44.367(0)? ping | |
I20141124-23:53:44.589(0)? ping | |
I20141124-23:53:44.592(0)? pong | |
I20141124-23:53:44.592(0)? ping | |
I20141124-23:53:44.593(0)? pong | |
I20141124-23:53:44.822(0)? ping | |
I20141124-23:53:44.828(0)? pong |