Skip to content

Instantly share code, notes, and snippets.

Tony Mobily mercmobily

  • Perth, Australia
Block or report user

Report or block mercmobily

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mercmobily
mercmobily / Anti-anti-anti pattern
Created Dec 8, 2016
A very unusual behaviour for Polymer
View Anti-anti-anti pattern
<link rel="import" href="../polymer/polymer.html">
<!--
Manage websocket connection
Expose websocket connection
@demo demo/index.html
-->
@mercmobily
mercmobily / gist:78fc350fcc1c2eecd3a3668666f84826
Created Oct 28, 2016
Trying to rebuild the npm installed polymer-build and... failing too!
View gist:78fc350fcc1c2eecd3a3668666f84826
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 Oct 28, 2016
Trying to run polymer-cli with polymer-build branch print-analysis-warning
View running.txt
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 Oct 28, 2016
Trying to use print-analysis-warnings
View result.txt
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)
View gist:2ab69a2d40b19e10d7fb7d8eb417192a
// 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;
View gist:a33dd80f0463f1c88599
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 Apr 5, 2013
Subscription error jitsu
View gist:5315667
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 Mar 28, 2013
Again with more info
View gist:5261428
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 Mar 28, 2013
deploy failed nodejitsu
View gist:5261416
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
View gist:5114537
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.
You can’t perform that action at this time.