Skip to content

Instantly share code, notes, and snippets.

View its-tayo's full-sized avatar

Tayo Akindolie its-tayo

View GitHub Profile
@its-tayo
its-tayo / feeds.opml
Created March 11, 2021 08:59 — forked from stebennett/feeds.opml
The feeds I currently subscribe to.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Stephen subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Companies" title="Companies">
<outline type="rss" text="Trello" title="Trello" xmlUrl="https://trello.engineering/feed.xml" htmlUrl="http://tech.trello.com/"/>
<outline type="rss" text="IMVU" title="IMVU" xmlUrl="http://engineering.imvu.com/feed/" htmlUrl="https://engineering.imvu.com"/>
@its-tayo
its-tayo / generator.js
Last active August 23, 2023 05:57
Faker.js: Generate array of N items
// generator
const generator = (schema, min = 1, max) => {
max = max || min;
return Array.from({
length: faker.random.number({
min,
max,
}),
}).map(() => {
const innerGen = (anySchema) => Object.keys(anySchema).reduce((entity, key) => {
@its-tayo
its-tayo / Pagination.tsx
Created November 2, 2019 21:34
Typescript React Table Custom Pagination
interface Props {
pages: number
page: number
pageSize: number
onPageChange: Function
previousText: string
nextText: string
data: { [key: string]: any }[]
}