###Icons
Name | Size |
---|---|
iphone_2x | 120x120 |
iphone_3x | 180x180 |
ipad | 76x76 |
ipad_2x | 152x152 |
android_ldpi | 36x36 |
android_mdpi | 48x48 |
(function(Script) { | |
var _run = Script.prototype.run; | |
Script.prototype.run = function(ctx, domain, fn) { | |
if (typeof domain === 'object') { | |
domain.require = function(module) { | |
return require(module); | |
}; | |
domain.context = function() { // access Context via context() | |
return ctx; | |
}; |
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
//given the urls of files to download, store them on the filesystem | |
function download_all_files (urls, base_destination, job_id, cb) { | |
var url = urls.shift(); | |
var file_path = path.join(base_destination, job_id); | |
// the path to the file without the filename | |
var path_to_file_folder = path.dirname(file_path); | |
// the method to store a downloaded file to the fs | |
// makes an http request and writes the response to a file |
# METEOR CORE: | |
Anywhere: Meteor.isClient | |
Anywhere: Meteor.isServer | |
Anywhere: Meteor.startup(func) | |
Anywhere: Meteor.absoluteUrl([path], [options]) | |
Anywhere: Meteor.settings | |
Anywhere: Meteor.release | |
###Icons
Name | Size |
---|---|
iphone_2x | 120x120 |
iphone_3x | 180x180 |
ipad | 76x76 |
ipad_2x | 152x152 |
android_ldpi | 36x36 |
android_mdpi | 48x48 |
<!doctype html> | |
<html><head><script src="app.js"></script></head><body></body></html> |
Because there is an issue with OAuth2 login and localhost development, you currently have to deploy your meteor site to be able to test the Facebook login. A nice little workaround for this is to make the local instance of meteor accessible externally.
There is a great online guide for setting up port forwarding with your router and you can check your public external IP here.
For example, If you have an Apple router, simply open up Airport Utility on your Mac and click edit on your router, then go to the Network tab. Under Port Settings click the + icon and select Personal Web Sharing, setting all of the public and private ports to 3000. Make sure the private IP is set to your current computer IP.
<!-- this is a comment | |
console.log("omg that worked!") |
import { Accounts } from 'meteor/accounts-base'; | |
import { ServiceConfiguration } from 'meteor/service-configuration'; | |
// currently you need to use a local version of the facebook package with this change: | |
// https://github.com/meteor/meteor/pull/7550 | |
import { Facebook } from 'meteor/facebook'; | |
import { HTTP } from 'meteor/http'; | |
import { OAuth } from 'meteor/oauth'; |