Skip to content

Instantly share code, notes, and snippets.

View Mozart409's full-sized avatar
🏠
Working from home

Amadeus Mozart409

🏠
Working from home
View GitHub Profile
@Mozart409
Mozart409 / error.log
Last active April 12, 2020 10:03
Trying to use .tif images
➜ yarn start
yarn run v1.22.0
$ gatsby develop
success open and validate gatsby-configs - 0.067s
success load plugins - 1.294s
success onPreInit - 0.005s
success initialize cache - 0.030s
success copy gatsby files - 0.075s
success onPreBootstrap - 0.019s
success createSchemaCustomization - 0.010s
{
"paddingVertical": "31px",
"paddingHorizontal": "35px",
"backgroundImage": null,
"backgroundImageSelection": null,
"backgroundMode": "color",
"backgroundColor": "rgba(255,224,0,1)",
"dropShadow": true,
"dropShadowOffsetY": "20px",
"dropShadowBlurRadius": "68px",
@Mozart409
Mozart409 / machine.js
Created April 25, 2020 11:08
Generated by XState Viz: https://xstate.js.org/viz
const toggleMachine = new Machine({
id: 'toggle',
initial: 'inactive',
states: {
inactive: { on: { TOGGLE: 'active' } },
active: { on: { TOGGLE: 'inactive' } }
}
});
@Mozart409
Mozart409 / machine.js
Last active April 26, 2020 06:07
Generated by XState Viz: https://xstate.js.org/viz
const sendingMessagesMachine = Machine({
id: 'sendingMessagesMachine',
initial: 'idle',
context: {
retries: 0
},
states: {
idle: {
on: {
SEARCHUSER: 'selectUser'
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Mozart409
Mozart409 / console output
Created August 12, 2020 08:53
React-Bricks Editor Error
react-bricks.cjs.production.min.js?cb9c:1 GET https://api.reactbricks.com/v1/admin/pages?type=&tag= 403 (Forbidden)
ae @ react-bricks.cjs.pro…ction.min.js?cb9c:1
eval @ react-bricks.cjs.pro…ction.min.js?cb9c:1
eval @ react-query.mjs?42ff:736
_catch @ react-query.mjs?42ff:316
eval @ react-query.mjs?42ff:734
eval @ react-query.mjs?42ff:335
eval @ react-query.mjs?42ff:822
_catch @ react-query.mjs?42ff:316
eval @ react-query.mjs?42ff:816
@Mozart409
Mozart409 / BodyText.js
Last active August 21, 2020 11:29
react-bricks RichText
import React from "react";
import { Text, Plain, RichText, Image, Link, types } from "react-bricks";
import BlockNames from "../BlockNames";
import Colors from "../Colors";
//=============================
// Component to be rendered
//=============================
const BodyText = ({ onChange, backgroundColor, title, text, textColor }) => {
We couldn’t find that file to show.
@Mozart409
Mozart409 / [slug].js
Created December 14, 2020 11:18
Next.js getStaticPaths Multiple Params
import { request, gql } from 'graphql-request'
import { PageHeading, Spacer } from '@components'
// gql query for getStaticPaths
const PageSlugsQuery = gql`
query PageBySlug {
pages {
slug
id
}
}
@Mozart409
Mozart409 / ryujinscales.css
Created May 1, 2023 23:00
ryujinscales.css
:root {
--bg-color:#081426;
--main-color:#f17754;
--caret-color:#ef6d49;
--sub-color:#ffbc90;
--sub-alt-color:#040e1d;
--text-color:#ffe4bc;
--error-color:#ca4754;
--error-extra-color:#7e2a33;
--colorful-error-color:#ca4754;