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
export class ParamWithMeta extends CfnParameter { | |
constructor( | |
scope: Construct, | |
id: string, | |
props?: { label?: string; group?: string } & CfnParameterProps | |
) { | |
const { label = id, group = 'Parameters', ...paramProps } = props || {}; | |
super(scope, id, paramProps); |
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
_ ___ ___ ___ ___ _ ___ _____ | |
/_\ / __|/ __|_ _|_ _| /_\ | _ \_ _| | |
/ _ \\__ \ (__ | | | | / _ \| / | | | |
/_/_\_\___/\___|___|___|_/_/_\_\_|_\ |_| | |
|_ _/ __| /_\ | _ ) __/ __|_ _| | |
| |\__ \ / _ \ | _ \ _|\__ \ | | | |
|___|___/ /_/ \_\_|___/___|___/_|_|__ _ | |
| _ \ _ \ /_\ / __|_ _|_ _/ __| __| | | |
| _/ / / _ \ (__ | | | | (__| _||_| | |
|_| |_|_\/_/ \_\___| |_| |___\___|___(_) |
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 T from 'prop-types'; | |
import React, {PureComponent} from 'react'; | |
export default class DragDropItem extends PureComponent { | |
static propTypes = { | |
active: T.bool, | |
dataType: T.string, | |
data: T.string, | |
draggable: T.bool, | |
dropZone: T.bool, |
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
#!/bin/bash | |
# See: https://www.conventionalcommits.org/en/v1.0.0 | |
read -p 'Type: ' TYPE | |
read -p 'Subject: ' SUBJECT | |
read -p 'Message: ' MESSAGE | |
git add . | |
git commit -m "${TYPE}: (${SUBJECT}) ${MESSAGE}" | |
git push |
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
// Requires `node-usb` https://github.com/nonolith/node-usb | |
var usb = require('usb'); | |
// Get the switch by its vendor and product ids. | |
var switchDevice = usb.findByIds(0x050D, 0x0201); | |
// Open the device for communication. | |
switchDevice.open(); | |
// From the **inactive** computer, send the control trnasfer request with the value `[0x02, 0x00]` to trigger the switch. |
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
[{"chunks":[{"content":"@@ -1,6 +1,6 @@","changes":[{"type":"normal","normal":true,"ln1":1,"ln2":1,"content":" {"},{"type":"normal","normal":true,"ln1":2,"ln2":2,"content":" \"name\": \"booklets-desktop\","},{"type":"del","del":true,"ln":3,"content":"- \"version\": \"1.1.0\","},{"type":"add","add":true,"ln":3,"content":"+ \"version\": \"1.1.1\","},{"type":"normal","normal":true,"ln1":4,"ln2":4,"content":" \"lockfileVersion\": 1,"},{"type":"normal","normal":true,"ln1":5,"ln2":5,"content":" \"requires\": true,"},{"type":"normal","normal":true,"ln1":6,"ln2":6,"content":" \"dependencies\": {"}],"oldStart":1,"oldLines":6,"newStart":1,"newLines":6}],"deletions":1,"additions":1,"from":"package-lock.json","to":"package-lock.json","index":["af5bc9f..0391f1e","100644"]},{"chunks":[{"content":"@@ -1,6 +1,6 @@","changes":[{"type":"normal","normal":true,"ln1":1,"ln2":1,"content":" {"},{"type":"normal","normal":true,"ln1":2,"ln2":2,"content":" \"name\": \"booklets-desktop\","},{"type":"del","del":true,"ln":3,"c |
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
{ | |
"expectUserResponse": true, | |
"expectedInputs": [ | |
{ | |
"possibleIntents": [ | |
{ | |
"intent": "actions.intent.MAIN" | |
} | |
], | |
"inputPrompt": { |
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 T from 'prop-types'; | |
import React, {Children, PureComponent} from 'react'; | |
function getChildMapPropObject(child = {}) { | |
const newProps = {}; | |
const {type, props: {children: propValue} = {}} = child; | |
if (typeof type === 'string') { | |
newProps[type] = propValue; | |
} |
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
{ | |
options: { | |
x: { | |
field: 'time', | |
label: 'Time', | |
step: 1, | |
start: 0, | |
end: 100 | |
}, | |
y: { |
NewerOlder