Skip to content

Instantly share code, notes, and snippets.

View fbedussi's full-sized avatar

Francesco Bedussi fbedussi

View GitHub Profile
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;
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'
@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"}
@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 / .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 / 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))
{
"workbench.iconTheme": "material-icon-theme",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"files.insertFinalNewline": true,
"editor.tabSize": 2,
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindWidgetFocused"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPreviousTerminalFocus",
@fbedussi
fbedussi / DefaultKeyBinding.dict
Created March 7, 2019 13:17 — forked from trusktr/DefaultKeyBinding.dict
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@fbedussi
fbedussi / keybindings.json
Created February 28, 2019 14:54
VS Code custom keybindings
// Inserire i tasti di scelta rapida in questo file per sovrascrivere i valori predefiniti
[
{
"key": "ctrl+w ctrl+v",
"command": "workbench.action.splitEditor"
},
{
"key": "shift+ctrl+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"