Skip to content

Instantly share code, notes, and snippets.

View fmalk's full-sized avatar

Fernando Piancastelli fmalk

  • Cellide
  • Belo Horizonte, Brazil
View GitHub Profile
Verifying that +fernando is my blockchain ID. https://onename.com/fernando
@fmalk
fmalk / rinkebygist1
Created August 18, 2017 21:47
Rinkeby Faucet 1
0x5b43ac8a699bC3E1d9fda39E6CE9F99b01C8640a
0x105baaDf376cBbA0CF031f861DB4d0b561d036A8
@fmalk
fmalk / index.html
Created January 12, 2018 18:46
Arrow Functions - Acessando propriedades de classes Arrow Functions - Acessando propriedades de classes // source http://jsbin.com/niwagij
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Arrow Functions - Acessando propriedades de classes">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Arrow Functions - Acessando propriedades de classes</title>
</head>
<body>
@fmalk
fmalk / keybase.md
Created August 31, 2018 22:30
Keybase

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@fmalk
fmalk / log.js
Last active November 27, 2018 14:16
Simple Console Logger - better suited for AWS CloudWatch
/* eslint-disable no-console */
function notJson(test) {
return (test !== Object(test) || test instanceof Error);
}
function log(fn, ...args) {
fn(...args.map(x => (notJson(x) ? x : JSON.stringify(x))));
}
const logger = {
@fmalk
fmalk / breakdown.md
Created April 21, 2023 18:52
Ticket Breakdown - Writing Skills

This is a sample ticket breakdown I wrote for a previous interview question.

Ticket Breakdown Exercise

We are a staffing company whose primary purpose is to book Agents at Shifts posted by Facilities on our platform. We're working on a new feature which will generate reports for our client Facilities containing info on how many hours each Agent worked in a given quarter by summing up every Shift they worked. Currently, this is how the process works:

  • Data is saved in the database in the Facilities, Agents, and Shifts tables
  • A function getShiftsByFacility is called with the Facility's id, returning all Shifts worked that quarter, including some metadata about the Agent assigned to each
  • A function generateReport is then called with the list of Shifts. It converts them into a PDF which can be submitted by the Facility for compliance.

You've been asked to work on a ticket. It reads: