Keyboard shortcut | Command |
---|---|
fn + 1 | Bluetooth 1 |
fn + 2 | Bluetooth 2 |
fn + 3 | Bluetooth 3 |
fn + 4 | Wireless receiver |
fn + 5 | Wired |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<doublecmd> | |
<Toolbars> | |
<MainToolbar> | |
<Row> | |
<Separator> | |
<Style>False</Style> | |
</Separator> | |
<Command> | |
<ID>{465ECECD-12C9-4A61-9CFC-70367A4A976B}</ID> |
This file contains hidden or 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
{ | |
"Create a new functional component": { | |
"prefix": "fc", | |
"body": [ | |
"import React, { FC } from 'react';", | |
"import './${TM_FILENAME_BASE}.css';", | |
"", | |
"interface ${TM_FILENAME_BASE}Props {", | |
" props1: string;", | |
" props2: string;", |
This file contains hidden or 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 {directive, NodePart, html} from 'lit-html'; | |
export const nl2br = directive((val: string) => (part: NodePart) => { | |
if (!(part instanceof NodePart)) { | |
throw new Error('nl2br can only be used in content bindings'); | |
} | |
const lines = val.split('\n'); | |
const l = lines.length; |
This file contains hidden or 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 | |
# Fix the commonly misspelled Hungarian accents | |
# Replace ÕõŨũÔôÛû characters to ŐőŰűŐőŰű | |
# Usage: hunaccents filename.txt | |
sed -i -e 's/Õ/Ő/g' "$1" | |
sed -i -e 's/õ/ő/g' "$1" | |
sed -i -e 's/Ũ/Ű/g' "$1" | |
sed -i -e 's/ũ/ű/g' "$1" | |
sed -i -e 's/Ô/Ő/g' "$1" | |
sed -i -e 's/ô/ő/g' "$1" |
This file contains hidden or 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
global.fetch = jest.fn().mockImplementation((url) => { | |
return Promise.resolve({ | |
json: () => { | |
if (url === 'foo/bar') { | |
// json successfully parsed | |
return Promise.resolve({success: true}); | |
} | |
// json parse error | |
return Promise.reject(new Error('JSON parse error)); |
This file contains hidden or 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 overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+shift+numpad_divide", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "ctrl+alt+numpad_divide", | |
"command": "-editor.action.blockComment", |
This file contains hidden or 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://www.howtoforge.com/tutorial/ubuntu-desktop-devilspie-2/ | |
debug_print("--------------------------------------------------------------------------------") | |
debug_print("Window Name: ".. get_window_name()); | |
debug_print("Application name: "..get_application_name()) | |
debug_print("--------------------------------------------------------------------------------") | |
editor_workspace = 1 | |
browser_workspace = 2 | |
terminal_workspace = 1 |
This file contains hidden or 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
// build/dev-client.js | |
/* eslint-disable */ | |
require('eventsource-polyfill') | |
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true&path=http://localhost:8080/__webpack_hmr')//<-- HMR config | |
hotClient.subscribe(function (event) { | |
if (event.action === 'reload') { | |
window.location.reload() | |
} |
NewerOlder