Skip to content

Instantly share code, notes, and snippets.

View balazsorban44's full-sized avatar
🌍
Coding from anywhere

Balázs Orbán balazsorban44

🌍
Coding from anywhere
View GitHub Profile
@balazsorban44
balazsorban44 / block-content-to-react.d.ts
Created April 26, 2020 08:57
Add this to @types/@sanity folder in the root of your TS project.
declare module "@sanity/block-content-to-react"
{
import * as React from "react"
export interface BlockContentProps {
/**
* Pass in either an array or a single object of [Portable Text](https://github.com/portabletext/portabletext)
*
* *This is the only required prop*
*/
@balazsorban44
balazsorban44 / machine.js
Created November 1, 2019 11:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@balazsorban44
balazsorban44 / Istanbul Code Coverage Gruvbox theme
Last active September 9, 2021 09:11
Using Stylus, I made this Gruvbox "like" dark theme for my Istanbul code coverage. UNFINISHED. Please leave a comment, if you add something to it, or if you at all actually use it. 😄
body {
background-color: #1d2021
}
.pln,
.pad1,
.pad1 p,
.cline-yes {
color: #fbf1c7
}
@balazsorban44
balazsorban44 / gist:52c2858aa10f6269c7a9b3c0cfa247d5
Created September 6, 2017 07:39
Firebase sample code for question on Stack Overflow
Database:
"root": {
"reservations": {
"-59a9ac14cf84dddb10852e65": {
"details": {
"message": "in labore velit quis commodo.",
"children": 0,
"adults": 5,
"tel": "+36-96-055-6277",
"email": "[email protected]",