Skip to content

Instantly share code, notes, and snippets.

View rhayasidajr's full-sized avatar

Roberto Hayasida Jr rhayasidajr

View GitHub Profile
### Keybase proof
I hereby claim:
* I am rhayasidajr on github.
* I am rhayasidajr (https://keybase.io/rhayasidajr) on keybase.
* I have a public key whose fingerprint is 57E4 0AF8 0A8F 229F E891 13C6 3460 FFD5 9E81 3530
To claim this, I am signing this object:
const { argOverProp } = require("@stamp/arg-over-prop");
const { privatizeMethods } = require("@stamp/privatize");
let instance;
const Base = argOverProp({ account: "XABC-1" });
const WithSecretKey = Base.compose(argOverProp({ secretKey: "my secret key" }));
const WithLogin = WithSecretKey.compose({
const { compose } = require("@stamp/it");
const api = {
call: function() {
console.log("Calling the real API");
}
};
function callAPI() {
this.api.call();
const { init, compose } = require("@stamp/it");
const { argOverProp } = require("@stamp/arg-over-prop");
const EmptyStamp = compose();
console.log(EmptyStamp());
// options object as initializers first argument
const HasName = init(function({ name = "John Doe" }) {
this.name = name;
});

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: