I hereby claim:
- I am arv25 on github.
- I am massdefect (https://keybase.io/massdefect) on keybase.
- I have a public key ASAU3O61jlgOO05eYCR1cuY04LHnj-Y91ZaglNnkdWT6Kgo
To claim this, I am signing this object:
module Platform::Errors::Handler | |
def self.included(base) | |
base.rescue_from Exception do |error| | |
handle(self, error) | |
end | |
end | |
private |
class Homeboy | |
def initialize( params={} ) | |
params.map do |kv| | |
self.instance_variable_set("@#{kv[0]}", kv[1]) | |
self.class.send(:define_method, "#{kv[0]}") { kv[1] } | |
end | |
end | |
def to_s | |
instance_variables.map { |sym| "#{sym.to_s[1..-1]},#{self.send(sym.to_s[1..-1])}" } |
// Events with Redux Spike | |
// ES6 | |
//event name helpers | |
var eventNameCounter = 0; | |
const nextEventName = () => { | |
eventNameCounter = eventNameCounter + 1; | |
return "foo-".concat(eventNameCounter).concat(" "); | |
} |
I hereby claim:
To claim this, I am signing this object:
// Lambda 1 - arv-foo | |
// Synchronous fn that will back API Gateway endpoint. | |
const AWS = require('aws-sdk'); | |
const lambda = new AWS.Lambda(); | |
const getRandomInt = (max) => Math.floor(Math.random() * Math.floor(max)); | |
exports.handler = async (event, context) => { | |
console.log("event:", event) |