Skip to content

Instantly share code, notes, and snippets.

View aphelionz's full-sized avatar
👽

Mark Henderson aphelionz

👽
View GitHub Profile
https://www.a11ywithlindsey.com/blog/design-tips-color-accessibility
https://www.a11ywithlindsey.com/blog/writing-alternative-text-matters
https://www.a11ywithlindsey.com/blog/3-simple-tips-improve-keyboard-accessibility
https://www.a11ywithlindsey.com/blog/negative-impacts-withholding-form-labels
https://www.a11ywithlindsey.com/blog/learn-dyslexia-web
https://www.a11ywithlindsey.com/blog/create-custom-keyboard-accesible-checkboxes
https://www.a11ywithlindsey.com/blog/create-accessible-dropdown-navigation
https://www.a11ywithlindsey.com/blog/create-accessible-dropdown-navigation-without-js
https://www.a11ywithlindsey.com/blog/4-things-always-manually-test
https://www.a11ywithlindsey.com/blog/beginning-demystify-aria
@aphelionz
aphelionz / create-file.js
Created April 24, 2020 03:17
For the medium article, link TODO
// author https://github.com/achingbrain
const createFile = async (ipfs, data, chunkSize = 262144) => {
const chunks = []
for (let i = 0; i < data.length; i += chunkSize) {
const unixfs = new UnixFS({
type: 'file',
data: data.slice(i, i + chunkSize)
})
const dagNode = new DAGNode(unixfs.marshal())

Keybase proof

I hereby claim:

  • I am aphelionz on github.
  • I am aphelionz (https://keybase.io/aphelionz) on keybase.
  • I have a public key whose fingerprint is 6B42 725D 0DEF C39A 382C 0473 EB6F B3D1 4FDD 0016

To claim this, I am signing this object: