Eliminate all promises from application.
The Promise API is the source of many confusing errors in our application, using node style callbacks eliminates the issue without reducing code quality.
function kebabCase(string) { | |
var result = string; | |
// Convert camelCase capitals to kebab-case. | |
result = result.replace(/([a-z][A-Z])/g, function(match) { | |
return match.substr(0, 1) + '-' + match.substr(1, 1).toLowerCase(); | |
}); | |
// Convert non-camelCase capitals to lowercase. | |
result = result.toLowerCase(); |
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
By the way, I'm available for tutoring and code review :)
new Promise
?.then
callback yet?](https://gist.github.com/joepie91/4c3a10629a4263a522e3bc4839a28c83#6-butvar Ver36 = function() { | |
"use strict"; | |
var N = 18, N2 = N*2; | |
var d18_op; // D18 group operation table | |
var d18_inv; // D18 group inverse | |
var perm; // the permutation decomposed into cycles | |
var a2i,i2a; // ASCII translation tables | |
var NA=0xff; // invalid digit marker in ASCII table | |
// initialization code |
The MIT License (MIT) | |
Copyright (c) 2015 Justin Perry | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, | |
subject to the following conditions: |