###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
| /** | |
| * Force a scrollview to a position | |
| */ | |
| var forcePosition = function (scrollview, position, noSpring) { | |
| if (noSpring) { | |
| scrollview._springState = 0; | |
| scrollview._physicsEngine.detachAll(); | |
| } | |
| scrollview.setVelocity(0); |
| ### Keybase proof | |
| I hereby claim: | |
| * I am jperl on github. | |
| * I am jperl (https://keybase.io/jperl) on keybase. | |
| * I have a public key whose fingerprint is 943D 6154 9F38 1087 C45A C154 17FB BF31 554A 8E5C | |
| To claim this, I am signing this object: |
| /** | |
| * Force a scrollview to a position | |
| */ | |
| Tools.forcePosition = function (scrollview, position, noSpring) { | |
| if (noSpring) { | |
| scrollview._springState = 0; | |
| scrollview._physicsEngine.detachAll(); | |
| } | |
| scrollview.setVelocity(0); |
| var CordovaApp = { | |
| /** | |
| * Load the meteor app with meteor-rider. | |
| * @param {Boolean} [force] Overwrite the cache. | |
| */ | |
| loadMeteor: function (force) { | |
| if (force) { | |
| CordovaApp.loaded = false; | |
| MeteorRider.clearCache(); | |
| } |
| <template name="layout"> | |
| {{#transitioner transitionIn=transitionIn transitionOut=transitionOut}} | |
| {{> yield}} | |
| {{/transitioner}} | |
| </template> |
| var crosswalk = { | |
| folder: { | |
| arm: 'tools/crosswalk-cordova-7.36.154.13-arm', | |
| x86: 'tools/crosswalk-cordova-7.36.154.13-x86' | |
| } | |
| }; | |
| // https://crosswalk-project.org/#documentation/cordova/migrate_an_application | |
| var addCrosswalk = { | |
| command: [ |
###Icons
| Name | Size |
|---|---|
| iphone_2x | 120x120 |
| iphone_3x | 180x180 |
| ipad | 76x76 |
| ipad_2x | 152x152 |
| android_ldpi | 36x36 |
| android_mdpi | 48x48 |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
| <CORSRule> | |
| <AllowedOrigin>*</AllowedOrigin> | |
| <AllowedMethod>PUT</AllowedMethod> | |
| <AllowedMethod>POST</AllowedMethod> | |
| <AllowedMethod>GET</AllowedMethod> | |
| <AllowedMethod>HEAD</AllowedMethod> | |
| <MaxAgeSeconds>3000</MaxAgeSeconds> | |
| <AllowedHeader>*</AllowedHeader> |
| Routes = {}; | |
| /** | |
| * The current route's name | |
| */ | |
| Routes.name = function () { | |
| return Router.current().route.getName(); | |
| }; | |
| var routeNameAfterLastAction = null; |
| // Server | |
| Meteor.methods({ | |
| /** | |
| * Login as a userId. Must be an admin. | |
| */ | |
| impersonate: function (options) { | |
| var self = this; | |
| if (Settings.isProduction) { | |
| var currentUser = Meteor.users.findOne(self.userId); |