Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mxs on github.
  • I am mxs (https://keybase.io/mxs) on keybase.
  • I have a public key ASB2HrAZz0CErEvl02zhfWRq1qhtXp1G9WU7wAAU_WZUhAo

To claim this, I am signing this object:

@mxs
mxs / gist:875a394595b3cff66f17368b42ce333e
Created July 28, 2016 08:53
meteor slow build profile output
=> Started proxy.
| (#1) Profiling: ProjectContext prepareProjectForBuild
=> Meteor 1.4 is available. Update this project with 'meteor update'.
| Loading package webpack:webpack@1.3.3 \
| sqlite query 77 ms (3)
| files.readlink 0 ms (1)
| ProjectContext prepareProjectForBuild.........................2,392 ms (1)
| ├─ _resolveConstraints..........................................452 ms (1)
| │ └─ JsImage#load..............................................377 ms (1)
| │ └─ runJavaScript packages/logic-solver.js 119 ms (1)
@mxs
mxs / q-jquery-mixing.js
Created September 16, 2012 01:15
consuming jQuery promises with q.js
Q.when($.get('/scottie'))
.then(function(data) {
log('received:', data);
log('GET', serverbase, 'michael');
return $.get('/michael');
})
.then(function(data) {
log('received:', data);
})
@mxs
mxs / q-chaining.js
Created September 16, 2012 01:13
chaining async calls with q.js
var send = function(path) {
var d = Q.defer();
var xhr = new XMLHttpRequest();
xhr.onreadystatechange=function()
{
if (xhr.readyState==4 && xhr.status==200)
{
d.resolve(xhr.responseText);
}
};
@mxs
mxs / jquery-chaining.js
Created September 16, 2012 01:09
jquery .get() chaining
$.get("/scottie")
.then(function(data) {
log("received: ", data);
log("GET ", serverbase, "michael");
return $.get('/michael');
})
.then(function(data) {
log("received: ", data);
});