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.0 | |
info: | |
title: Sample API | |
version: 1.0.0 | |
servers: | |
- url: http://api.example.com/v1 | |
paths: | |
/users: | |
get: | |
summary: Returns a list of users. |
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
class Task { | |
status: "todo" | "done" = "todo"; | |
completionDate?: Date; | |
isDone(): this is Task & { status: "done"; completionDate: Date } { | |
return this.status === "todo"; | |
} | |
} | |
const task = new Task(); |
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 zx | |
// Title: Replace Semantic Release config with shared config | |
import 'zx/globals'; | |
const semanticReleaseConfigPath = './.releaserc.js'; | |
const hasSemanticReleaseConfig = await fs.pathExists(semanticReleaseConfigPath); | |
if (hasSemanticReleaseConfig) { |
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 textInputElements = document.querySelectorAll('input[type="text"]'); | |
const inputValues = nodeListToArray(textInputElements) | |
.filter((x) => !!x.value) | |
.map((x) => [getFirstLabelForInput(x), x.value].join(' ')); | |
const text = inputValues.join('\n'); | |
const blob = new Blob([text], { | |
type: 'text/plain', | |
}); | |
downloadBlob(blob, 'text.txt'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
https://wormhole.app/QW7RL#ncwHIJ2G0F3BZQm3DK8HMA | |
https://wormhole.app/kzZQ7#69VIM_fur0UFE9O0YjuZjw | |
https://wormhole.app/o4Qe9#btVAXg1nc7roXTsHmYv6tQ |
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: | |
- ${CONTENTFUL_BASE_URL}${CONTENTFUL_SPACE_ID}: | |
headers: | |
Authorization: Bearer ${CONTENTFUL_DELIVERY_ACCESS_TOKEN} | |
- schema.graphql # <-- | |
documents: "./src/**/*.graphql" | |
generates: | |
./src/generated/graphql.ts: | |
plugins: | |
- typescript |
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
import { fetchCapabilities } from "../actions" | |
mapDispatchToProps(dispatch) { | |
return { | |
fetchCapabilities: () => { | |
dispatch(fetchCapabilities()) | |
} | |
} | |
} |
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 electron = require('electron') | |
// Module to control application life. | |
const app = electron.app | |
// Module to create native browser window. | |
const BrowserWindow = electron.BrowserWindow | |
const Menu = electron.Menu | |
const Tray = electron.Tray | |
const ipc = electron.ipcMain | |
const path = require('path') |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Cryptocoin Tracker</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div id="app"></div> | |
</body> |
NewerOlder