Skip to content

Instantly share code, notes, and snippets.

View felippenardi's full-sized avatar

Felippe Nardi felippenardi

View GitHub Profile
@felippenardi
felippenardi / gist:ff56297c002c9a937b0df160fb1d4b1f
Created August 5, 2022 22:57
Mark as complete on Circle communities
<style>
/* Add "Completed" to like buttons */
.view-space-in-group--88671 .action-link,
.view-space-in-group--88671 .action-like.action-item {
background-color: var(--brand);
padding: 4px 8px;
border-radius: 11px;
opacity: 1;
}
@felippenardi
felippenardi / machine.js
Created February 14, 2020 18:55
Generated by XState Viz: https://xstate.js.org/viz
var contentEditorMachine = Machine({
id: 'content',
strict: true,
initial: 'unknown',
context: {
variants: [
{ id: '1', status: 'draft' },
{ id: '2', status: 'live' },
],
currentVariant: {
@felippenardi
felippenardi / machine.js
Created February 12, 2020 20:38
Generated by XState Viz: https://xstate.js.org/viz
var contentEditorMachine = Machine({
id: 'content',
strict: true,
initial: 'unknown',
on: {
CLEAR_ERROR: {
actions: 'clearError'
}
},
context: {
@felippenardi
felippenardi / machine.js
Last active February 6, 2020 14:51
Generated by XState Viz: https://xstate.js.org/viz
const editingMachine = Machine({
id: 'editing',
initial: 'editing',
states: {
editing: {
id: 'live',
on: {
SAVE_CHANGES: 'saving',
DISCARD_CHANGES: 'confirmingDiscard'
}
@felippenardi
felippenardi / machine.js
Last active February 8, 2020 22:02
Generated by XState Viz: https://xstate.js.org/viz
var variantEditorMachine = Machine({
id: 'editing',
initial: 'editing',
states: {
editing: {
id: 'live',
on: {
SAVE_CHANGES: 'saving',
DISCARD_CHANGES: 'confirmingDiscard'
@felippenardi
felippenardi / machine.js
Last active February 3, 2020 18:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@felippenardi
felippenardi / machine.js
Last active February 1, 2020 23:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@felippenardi
felippenardi / machine.js
Created February 1, 2020 22:53
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@felippenardi
felippenardi / machine.js
Created September 20, 2019 14:27
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@felippenardi
felippenardi / home.json
Last active September 4, 2019 17:01
git.io/home-json-example
{
"store.home": {
"blocks": [
"info-card#principal",
"info-card#bottom",
"shelf"
]
},
"info-card#principal": {