Skip to content

Instantly share code, notes, and snippets.

View juddey's full-sized avatar

Justin Lane juddey

View GitHub Profile
@juddey
juddey / medusa.json
Created December 31, 2024 22:11
medusa.json
{"openapi":"3.0.0","info":{"version":"2.0.0","title":"Medusa Storefront API","license":{"name":"MIT","url":"https://github.com/medusajs/medusa/blob/master/LICENSE"}},"servers":[{"url":"http://localhost:9000"},{"url":"https://api.medusajs.com"}],"tags":[{"name":"Auth","description":"Auth API routes allow you to manage a customer's authentication.\n"},{"name":"Carts","description":"A cart is a virtual shopping bag that customers can use to add items they want to purchase.\n\nA cart is then used to checkout and place an order.\n\nThese API routes allow customers to create and manage their cart, and place an order.\n","externalDocs":{"description":"How to implement cart functionality in a storefront.","url":"https://docs.medusajs.com/v2/resources/storefront-development/cart"},"x-associatedSchema":{"$ref":"#/components/schemas/StoreCart"}},{"name":"Collections","description":"A product collection organizes products into a collection for marketing purposes. For example, a summer collection.\n\nThese API routes allo
@juddey
juddey / medusa.format.json
Created December 31, 2024 22:10
Formatted Medusa
This file has been truncated, but you can view the full file.
{
"openapi": "3.0.0",
"info": {
"version": "2.0.0",
"title": "Medusa Storefront API",
"license": {
"name": "MIT",
"url": "https://github.com/medusajs/medusa/blob/master/LICENSE"
}
},
@juddey
juddey / petstore.format.json
Created December 31, 2024 22:07
Formatted PetStore
{
"openapi": "3.0.2",
"info": {
"title": "Swagger Petstore - OpenAPI 3.0",
"description": "This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "[email protected]"
},
"license": {
{"openapi":"3.0.2","info":{"title":"Swagger Petstore - OpenAPI 3.0","description":"This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about\nSwagger at [http://swagger.io](http://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!\nYou can now help us improve the API whether it's by making changes to the definition itself or to the code.\nThat way, with time, we can improve the API in general, and expose some of the new features in OAS3.\n\nSome useful links:\n- [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)\n- [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)","termsOfService":"http://swagger.io/terms/","contact":{"email":"[email protected]"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"1.0.19"},"externalDocs":{"description":"Find out more about S
// Builds according to dockerfile in directory
docker build $HOME/Desktop/dockerfile-two
// Removes all exited containers
docker rm $(docker ps --filter "status=exited" -q)
// Tags an image
docker tag 8ab71b445b80 juddey/chapel-ci-one:latest
// Removes all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
docker run --name anything -it --privileged juddey/chapel-ci-one bash
@juddey
juddey / failing view.txt
Created February 23, 2020 20:25
Detox - Failing View
View Hierarchy:
+>DecorView{id=-1, visibility=VISIBLE, width=1080, height=1920, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=WM.LayoutParams{(0,0)(fillxfill) sim=#10 ty=1 fl=#81810100 wanim=0x103045b vsysui=0x500 needsMenuKey=2}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3}
|
+->LinearLayout{id=-1, visibility=VISIBLE, width=1080, height=1794, has-focus=true, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@edc8d45, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=2}
|
+-->ViewStub{id=16909225, res-name=action_mode_bar_stub, visibility=GONE, width=0, height=0, has-focus=fal
@juddey
juddey / store.js
Last active February 12, 2020 04:19
Mobx
import React from 'react'
import { types } from 'mobx-state-tree'
const Person = types
.model("person", {
name: types.optional(types.string, '')
})
.actions(self => ({
setName (name) {
self.name = name
@juddey
juddey / Link.js
Created January 16, 2020 03:24
Ws Connection Issue
@juddey
juddey / FormEmailAsync.js
Created September 7, 2019 22:45
EmailValidationAsync Field
import React, { useState } from 'react'
import { InputAdornment, Typography } from '@material-ui/core'
import Fade from '@material-ui/core/Fade'
import CircularProgress from '@material-ui/core/CircularProgress'
import { MdCheckCircle } from 'react-icons/md'
import { ErrorMessage } from 'formik'
import TextField from 'Components/TextField'
import { string } from 'yup'
import { useAsyncFn } from 'react-use'
import { useApolloClient } from '@apollo/react-hooks'
@juddey
juddey / gist:34a82d09b447fe70c4e56c08196620a8
Created February 10, 2019 22:42
Supported Ecto Field Types
array, binary, boolean, date, decimal, float, integer, map, naive_datetime, references, string, text, time, utc_datetime, uuid
https://devdocs.io/phoenix/ecto/ecto.schema