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
//@Param userObjId - expects either user object or id | |
// | |
//Returns a basic user information object: | |
// ._id - the Meteor.users id | |
// .id - service id | |
// .accessToken - service access token | |
// .serviceName - name of service eg. facebook, google etc. | |
// .email - user email, not to be expected from twitter service | |
// .username - profile username | |
// .twitterUsername - twitters @username |
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 timerTotal = self.startTimer(); | |
var timerMeteorCall = self.startTimer(); | |
Meteor.apply('saveChunck'+fileItem.collectionName, [ | |
fileId = fileId, | |
currentChunk = chunkNumber, | |
countChunks = fileItem.countChunks, | |
data = data | |
],[ | |
wait = true |
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
<head> | |
<title>sessionExample</title> | |
</head> | |
<body> | |
{{> hello}} | |
</body> | |
<template name="hello"> | |
<h1>Hello World!</h1> |
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
<head> | |
<title>controllers-demo</title> | |
</head> | |
<body> | |
<div class="container"> | |
{{> body}} | |
</div> | |
</body> |
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
getNode = function(string) { | |
var splitString = string.split('.'); | |
var nodeThis = window; | |
// Divein nodeThis | |
if (splitString.length) | |
for (var i = 0; i < splitString.length-1; i++) | |
if (nodeThis) | |
nodeThis = nodeThis[splitString[i]]; |
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 renderList = []; | |
var timer = 0; | |
var timeToLog = 100; | |
function debugRendered(templateName) { | |
// init renderList | |
renderList[templateName] = 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
// code = 'server'; | |
{ | |
"type": "Program", | |
"body": [ | |
{ | |
"type": "ExpressionStatement", | |
"expression": { | |
"type": "AssignmentExpression", | |
"operator": "=", |
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
CACHE MANIFEST | |
# cafd1417c9861bbd29cd844d8f380b340c70d316 | |
CACHE: | |
/ | |
http://grounddb.meteor.com/dbcdebadd4b96a6b5fd50c4cec204ed1f73a3398.js | |
http://grounddb.meteor.com/aa67ef88b25b2dba7b045b5f9307fc2f16573731.css | |
http://grounddb.meteor.com/green.png?cac3cc0143b7e79be4ce2682288ad2ec69882407 | |
http://grounddb.meteor.com/red.png?d9d4f943b535801166a198aec7e28799475dc1e6 |
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
typeNames = function(type) { | |
if (Match.test(type, [Match.Any])) return 'array'; | |
if (type === Object) return 'object'; | |
if (type === String) return 'string'; | |
if (type === Number) return 'number'; | |
if (type === Boolean) return 'boolean'; | |
if (type === Function) return 'function'; | |
return typeof type; | |
}; |
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
<template name="imageUploader"> | |
<h2>Picture</h2> | |
<p> | |
{{#each images}} | |
<img src="{{url}}" alt=""> | |
<input type="button" value="remove" class="btnRemove"/> | |
{{else}} | |
No files uploaded. | |
{{/each}} | |
</p> |
OlderNewer