GET http://127.0.0.1:3128/todos/2 (Host: jsonplaceholder.typicode.com) <-(http)-> haproxy <-(https)-> GET https://jsonplaceholder.typicode.com/todos/2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { getStorybookUI } = require('@storybook/react-native') | |
const React = require('react') | |
const { useEffect, useState } = require('react') | |
const { Linking } = require('react-native') | |
const { URL } = require('react-native-url-polyfill') | |
export const StorybookUIWrapper = () => { | |
const [config, setConfig] = useState() | |
const [url, setUrl] = useState() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$schema: http://json-schema.org/draft-06/schema# | |
title: JSON:API Schema | |
description: This is a schema for responses in the JSON:API format. For more, see | |
http://jsonapi.org | |
oneOf: | |
- $ref: "#/definitions/success" | |
- $ref: "#/definitions/failure" | |
- $ref: "#/definitions/info" | |
definitions: | |
success: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONAPIObject: | |
description: Includes the current JSON:API version for this specification as well as optional meta information | |
type: object | |
required: | |
- version | |
properties: | |
version: | |
type: string | |
default: '1.0' | |
example: '1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
version: 1.0.0 | |
title: "{json:api} Specification" | |
description: > | |
An include file to define the [{json:api} 1.0 specification](http://jsonapi.org/format). | |
N.B. I've got some confusion going on between a validating a jsonapi schema and defining one! | |
This file also provides a limited demonstration of jsonapi with path items for collections, items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-unused-vars */ | |
import { useEffect, useState } from 'react' | |
import AsyncStorage from '@react-native-community/async-storage' | |
import { isNil } from 'lodash'; | |
export const useAsyncStorage = | |
<TValue = any>(key: string, defaultValue?: TValue): | |
[TValue | undefined, typeof setValue, boolean] => | |
{ | |
const [value, setLocalValue] = useState<TValue | undefined>(defaultValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const split = require('lodash/split'); | |
const includes = require('lodash/includes'); | |
const Confirm = require('prompt-confirm'); | |
void async function() { | |
console.log(`HUSKY_GIT_PARAMS=${process.env.HUSKY_GIT_PARAMS}`) | |
console.log(`HUSKY_GIT_STDIN=${process.env.HUSKY_GIT_STDIN}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
definitions: | |
# Link | |
LinkObject: | |
type: object | |
required: | |
- href | |
properties: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return Observable | |
.throw(new Error('This is an error message.')) | |
.materialize() | |
.delay(2000) | |
.dematerialize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://brettterpstra.com/2013/02/10/the-joy-of-sshfs/ |
NewerOlder