Skip to content

Instantly share code, notes, and snippets.

View mercmobily's full-sized avatar

Tony Mobily mercmobily

  • Perth, Australia
View GitHub Profile
@mercmobily
mercmobily / Anti-anti-anti pattern
Created December 8, 2016 07:19
A very unusual behaviour for Polymer
<link rel="import" href="../polymer/polymer.html">
<!--
Manage websocket connection
Expose websocket connection
@demo demo/index.html
-->
@mercmobily
mercmobily / gist:78fc350fcc1c2eecd3a3668666f84826
Created October 28, 2016 03:39
Trying to rebuild the npm installed polymer-build and... failing too!
npm run-script prepublish
> polymer-build@0.4.1 prepublish /disk/local/lib/node_modules/polymer-cli/node_modules/polymer-build
> gulp build-all && gulp test
[11:36:54] Using gulpfile /disk/local/lib/node_modules/polymer-cli/node_modules/polymer-build/gulpfile.js
[11:36:54] Starting 'build-all'...
[11:36:54] Starting 'clean'...
[11:36:54] Finished 'clean' after 6 ms
[11:36:54] Starting 'init'...
@mercmobily
mercmobily / running.txt
Created October 28, 2016 03:32
Trying to run polymer-cli with polymer-build branch print-analysis-warning
merc@mercs-thinkpad:~/Development/playground/psk-test$ polymer build
warn: "sourceGlobs" config option has been renamed to "sources" and will no longer be supported in future versions
warn: "includeDependencies" config option has been renamed to "extraDependencies" and will no longer be supported in future versions
info: Building application...
error: cli runtime exception: TypeError: Can't call method on undefined
error: TypeError: Can't call method on undefined
at TypeError (native)
at module.exports (/disk/local/lib/node_modules/polymer-cli/node_modules/polymer-build/node_modules/hydrolysis/node_modules/babel-polyfill/node_modules/core-js/modules/_defined.js:3:28)
at module.exports (/disk/local/lib/node_modules/polymer-cli/node_modules/polymer-build/node_modules/hydrolysis/node_modules/babel-polyfill/node_modules/core-js/modules/_to-object.js:4:17)
at Function.from (/disk/local/lib/node_modules/polymer-cli/node_modules/polymer-build/node_modules/hydrolysis/node_modules/babel-
@mercmobily
mercmobily / result.txt
Created October 28, 2016 03:30
Trying to use print-analysis-warnings
git clone https://github.com/Polymer/polymer-build.git
Cloning into 'polymer-build'...
remote: Counting objects: 3911, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 3911 (delta 4), reused 0 (delta 0), pack-reused 3894
Receiving objects: 100% (3911/3911), 19.04 MiB | 143.00 KiB/s, done.
Resolving deltas: 100% (1967/1967), done.
Checking connectivity... done.
root@mercs-thinkpad /usr/local/lib/node_modules/polymer-cli/node_modules # git checkout print-analysis-warnings
fatal: Not a git repository (or any parent up to mount point /disk)
// POST /auth/recover ( body: { anyId: 43343 } )
exports.recoverPostRoute = function( req, res, next ) {
hotCoreStore.getAllStores( function( err, allStores ){
if( err ) return next( err );
// Needs to be logged in for this to work
if( req.session.userId ) return res.status( 403 ).json( { message: 'You are not authorized' } );
var anyId = req.body.anyId;
merc@merc-ThinkPad-X131e:/disk/home/merc/inme$ npm install simpledblayer
npm http GET https://registry.npmjs.org/simpledblayer
npm http 304 https://registry.npmjs.org/simpledblayer
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/simpledeclare
npm http GET https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/simpledeclare
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/ms
@mercmobily
mercmobily / gist:5315667
Created April 5, 2013 00:30
Subscription error jitsu
info: Creating snapshot 0.1.3-30
info Uploading: [=============================] 100%
info: Updating app bookingdojo
info: Activating snapshot 0.1.3-30 for bookingdojo
info: Starting app bookingdojo
error: Error running command deploy
error: Nodejitsu Error (400): Bad Request
warn: Error returned from Nodejitsu
error: Error: No active subscriptions available.
error: at Object.module.exports.billing.findAvailable (/root/nodejitsu/lib/nodejitsu/billing/billing.js:287:23)
@mercmobily
mercmobily / gist:5261428
Created March 28, 2013 07:46
Again with more info
merc@daniela-ThinkPad-Edge-E320:~/Synced/Development/node/dev/Bookings/bookingdojo$ jitsu deploy
info: Welcome to Nodejitsu mercmobily
info: jitsu v0.12.8, node v0.8.2
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /home/merc/Synced/Development/node/dev/Bookings/bookingdojo/package.json
warn: Using '*' as a version for dependencies may eventually cause issues
@mercmobily
mercmobily / gist:5261416
Created March 28, 2013 07:43
deploy failed nodejitsu
prompt: Is this ok?: (yes)
info: Creating snapshot 0.1.3-15
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm WARN package.json bd@0.1.1 No README.md file found!
npm http GET https://registry.npmjs.org/hotplate
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/connect-mongo
npm http GET https://registry.npmjs.org/mongodb
chiara@daniela-ThinkPad-Edge-E320:~$ mkdir oo2
chiara@daniela-ThinkPad-Edge-E320:~$ cd oo2/
chiara@daniela-ThinkPad-Edge-E320:~/oo2$ !git
git clone git://github.com/mercmobily/bookingdojo.git
Cloning into 'bookingdojo'...
remote: Counting objects: 167, done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 167 (delta 48), reused 140 (delta 24)
Receiving objects: 100% (167/167), 90.60 KiB | 62 KiB/s, done.
Resolving deltas: 100% (48/48), done.