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
#!/bin/bash | |
# Make sure to update METEOR_VERSIONS below to point to your app's versions file | |
TARGET_VERSION=$1 | |
BASEPATH="$(dirname "$0")" | |
BASEPATH="$(cd "$BASEPATH" && pwd)" | |
METEOR_VERSIONS=$BASEPATH/../app/.meteor/versions | |
if [ "$TARGET_VERSION" == "" ]; then |
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
#!/bin/bash | |
if [ "$(which ipconfig)" != "" ]; then | |
for i in $(ifconfig -ul); do | |
if [[ $i != lo* ]]; then | |
ipaddr=$(ipconfig getifaddr $i) | |
if [ "$ipaddr" != "" ]; then | |
echo $ipaddr | |
exit 0 | |
fi |
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>facebook</title> | |
</head> | |
<body> | |
<h1>Welcome to Meteor!</h1> | |
{{> loginButtons}} | |
{{> posts}} | |
</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
<?php | |
// parseInlineVariables takes a multibyte string "stringToParse" and parses for $variable style | |
// variables to swap with the value found in the "variables" associative array. It also supports | |
// better matching with curly braces surrounding the variable, such as {$variable}. Spaces | |
// within the curly braces are OK: { $variable } works too. | |
// Adapt this function to your particular framework (put it in a class, keep it global, etc) | |
function parseInlineVariables( $stringToParse, Array $variables ) | |
{ |
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
// Meteor extension to allow modifications to documents when publishing. | |
// Also allows specifying an alternate name under which to publish the | |
// collection, using "sub_name". | |
_.extend(Meteor._LivedataSubscription.prototype, { | |
_publishCursor: function (cursor, name) { | |
var self = this; | |
var collection = name || cursor.sub_name || cursor.collection_name; | |
var map_callback = cursor.map_callback || function (obj) { return obj; }; |
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="stuff"> | |
<button name="show">Show {{newThingsCount}} new things</button> | |
<ul> | |
{{#each things}} | |
<li>{{title}}</li> | |
{{/each}} | |
</ul> | |
</template> |
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
MOVED: https://github.com/matb33/meteor-collection-hooks |
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
MOVED: https://github.com/matb33/meteor-ec2-install |
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
ServerTime = (function () { | |
var sync = new Meteor.SyncObject("serverTime"); | |
var intervalId; | |
function updateTime() { | |
sync.set({ms: Date.now()}); | |
} | |
function updateInterval(intervalMs) { |
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
AWS = (function () { | |
var SDK = Npm.require("aws-sdk"); | |
var crypto = Npm.require("crypto"); | |
var url = Npm.require("url"); | |
function getAuthenticatedURL(fullUrl, accessKeyID, secretAccessKey, expires) { | |
/* | |
Signature = URL-Encode( Base64( HMAC-SHA1( YourSecretAccessKeyID, UTF-8-Encoding-Of( StringToSign ) ) ) ); |
OlderNewer