For both:
https://fino.able.co/api/products/:product_id/items
https://fino.able.co/api/products/:product_id/items/search
Response should include cycle_time
for each item
:
[
{
source "https://rubygems.org" | |
ruby "2.7.2" | |
gem "scrap_kit" | |
gem "active_worksheet" | |
gem "dry-cli" | |
gem "tty-table" |
Zk2S7uS8rvQ%3d | |
bpzQiAWy%2fdc%3d | |
hZnu%2bV8rX7k%3d | |
srmnJ85M7o8%3d | |
%2fiG4Gn0A5oE%3d | |
mu6bNwYfvjM%3d | |
0QU0xWgltTY%3d | |
nhJ9ZJcBdMY%3d | |
D596D8iStOE%3d | |
djnJehpykio%3d |
const resources = defineResources(({ resource, belongsTo, hasMany }) => { | |
resource("users", () => hasMany("savedProperties")); | |
resource("properties"); // Could be `resource("properties", () => hasMany("savedProperties"));` | |
resource("savedProperties", () => belongsTo("property")); | |
}); | |
return ( | |
<OverpassProvider | |
api={{ | |
apiHost: location.host, |
For both:
https://fino.able.co/api/products/:product_id/items
https://fino.able.co/api/products/:product_id/items/search
Response should include cycle_time
for each item
:
[
{
You have a group chat application, but who is online!?
You want to show your users which of their friends are online and available to chat!
Given an input of an array of objects containing usernames, status and time since last activity (in mins), create a function to work out who is online
, offline
and away
.
If someone is online
but their lastActivity
was more than 10 minutes ago they are to be considered away
.
import { h, cloneElement, Component } from 'preact'; | |
import linkState from 'linkstate'; | |
const injectFormProps = (child, { component }) => { | |
const childChildren = (child.children || []).map(childrenChild => injectFormProps(childrenChild, { component })); | |
if (child.nodeName === 'form') { | |
const childAttributes = { | |
...child.attributes, | |
onSubmit(event) { |
{ | |
"trailingComma": "all" | |
} |
const path = require("path"); | |
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
es6: true, | |
jest: true | |
}, |
--- | |
AllCops: | |
DisabledByDefault: true | |
Exclude: | |
- bin/**/* | |
- node_modules/**/* | |
- log/**/* | |
- tmp/**/* | |
- vendor/**/* | |
- db/migrate/* |