I hereby claim:
- I am sreetamdas on github.
- I am sreetamdas (https://keybase.io/sreetamdas) on keybase.
- I have a public key whose fingerprint is CA3C 4E5F 262E EFE7 FF71 9943 6DE4 A69F 6683 F6DF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
hyperTabs: { | |
// trafficButtons: true, | |
tabIconsColored: true, | |
closeAlign: "right" |
const MY_DOMAIN = "help.splitbee.io" | |
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS", |
const clipp = (error) => { | |
const looksLike = "Looks like you've encountered the following error:"; | |
const largeFont = "font-size: 2em;"; | |
const resetFont = "font-size: unset;"; | |
const redText = "color: red;"; | |
const resetText = "color: unset;"; | |
const createOutline = char => { | |
return char.repeat((Math.max(error.message.length), looksLike.length) / 1.66) | |
} |
{ | |
"React Functional Component": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from \"react\";", | |
"", | |
"const $TM_FILENAME_BASE = () => {", | |
"", | |
"\treturn (", | |
"\t\t${2:}", |
Solutions to the interview question of the week from the rendezvous with cassidoo newsletter
Solutions in the following languages:
Inspired and forked from jda0
import fs from "fs"; | |
import path from "path"; | |
export const getPostsData = () => { | |
const META = /export\s+const\s+meta\s+=\s+(\{(\n|.)*?\n\})/; | |
const DIR = path.join(process.cwd(), "content/blog"); | |
const files = fs.readdirSync(DIR).filter((file) => file.endsWith(".mdx")); | |
const postsData: Array<TBlogPost> = files | |
.map((file) => { |
/* | |
IMPORTANT: Change the fonts on lines 29-33 to make this work the way you want! | |
*/ | |
:root { | |
--dark0: #161616; | |
--dark1: #111111; | |
--dark2: #242424; | |
--dark3: #4c566a; |