Skip to content

Instantly share code, notes, and snippets.

View fbedussi's full-sized avatar

Francesco Bedussi fbedussi

View GitHub Profile
{
"workbench.iconTheme": "material-icon-theme",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"files.insertFinalNewline": true,
"editor.tabSize": 2,
@fbedussi
fbedussi / timer.js
Last active May 1, 2020 13:46
Bangle timer
let counter = 0;
let setValue = 0;
let counterInterval;
let state;
const DEBOUNCE = 50;
function buzzAndBeep() {
return Bangle.buzz(1000, 1)
.then(() => Bangle.beep(200, 3000))
@fbedussi
fbedussi / .zshrc
Created September 20, 2020 09:48
zsh conf
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/fbedussi/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@fbedussi
fbedussi / machine.js
Last active January 28, 2021 12:09
Generated by XState Viz: https://xstate.js.org/viz
const teloMachine = Machine(
{
id: 'telo',
initial: 'active',
context: {
appointmentType: 'new patient',
isRefractionistEnabled: true,
},
states: {
active: {
@fbedussi
fbedussi / cloudSettings
Last active October 13, 2021 14:51 — forked from gborelli/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-06T10:10:00.863Z","extensionVersion":"v3.2.5"}
import * as React from 'react'
import { render } from 'react-dom'
import { ThemeProvider } from 'styled-components'
import Toast, { ToastVariant } from '@components/Toast/Toast'
import { SerializedError } from '@reduxjs/toolkit'
import { FetchBaseQueryError } from '@reduxjs/toolkit/dist/query'
import { theme } from '@root/theme'
import CallErrorAlert from '../components/CallErrorAlert/CallErrorAlert'
import React from 'react'
import styled from 'styled-components'
import { Theme } from '@root/theme'
import { removeToast } from '@root/utils/toasts'
import CloseIcon from '../../assets/icons/close.svg'
const Wrapper = styled.div<{ theme: Theme }>`
position: fixed;