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
// Place your key bindings in this file to override the defaults | |
[ | |
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" }, | |
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" }, | |
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" }, | |
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" }, | |
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" }, | |
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" }, | |
{ "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" }, | |
{ "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" }, |
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
tell application "Google Chrome" to activate | |
tell application "System Events" | |
tell process "Google Chrome" | |
click menu item "New Incognito Window" of menu "File" of menu bar 1 | |
end tell | |
end tell | |
tell first window of application "Google Chrome" to set bounds to {0, 109, 967, 658} |
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
{ | |
"php.validate.executablePath": "/usr/local/bin/php", | |
"editor.minimap.enabled": false, | |
"editor.fontSize": 16, | |
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace", | |
"terminal.integrated.fontSize": 16, | |
"workbench.editor.showTabs": true, | |
"editor.hover.enabled": false, | |
"editor.tabSize": 2, | |
"telemetry.telemetryLevel": "off", |
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
{ | |
"React Component": { | |
"prefix": "rc", | |
"body": ["import React, { useEffect } from \"react\"", "", "function ${1:ComponentName}() {", " return (", " <>", " $2", " </>", " )", "}", "", "export default ${1:ComponentName}"], | |
"description": "React Component" | |
}, | |
"useEffect": { | |
"prefix": "ue", | |
"body": ["useEffect(() => {", " $2", "}, [$1])"], | |
"description": "useEffect" |
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 mongodb = require("mongodb") | |
exports.handler = async function (event, context) { | |
const client = await mongodb.connect(process.env.CONNECTIONSTRING, { useUnifiedTopology: true }) | |
const db = client.db() | |
try { | |
const dogs = await db.collection("pets").find({ species: "dog" }).toArray() | |
client.close() | |
return { |
NewerOlder