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
[ | |
// Focus previous/next split using cmd (mac) or ctrl (others) + left/right | |
{ | |
"key": "ctrl+left", | |
"command": "workbench.action.focusPreviousGroup", | |
"when": "!isMac && editorTextFocus && vim.active && vim.mode != 'Insert'", | |
}, | |
{ | |
"key": "cmd+left", | |
"command": "workbench.action.focusPreviousGroup", |
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
module.exports = { | |
root: true, | |
overrides: [ | |
{ | |
files: ['*.graphql'], | |
plugins: ['@graphql-eslint'], | |
parser: '@graphql-eslint/eslint-plugin', | |
parserOptions: { | |
operations: './query.graphql', | |
}, |
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
$breakpoints: 0 400px 600px 720px 1000px 1280px 1600px !default; | |
$scale-names: c xs s m l xl hd !default; | |
$predefined-spacing: 2px 4px 8px 12px 16px 32px 48px; | |
@function breakpoint($input, $subtract: false) { | |
$value: $input; | |
@if type-of($value) == string { | |
$value: index($scale-names, $input); |
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
module.exports = { | |
presets: [ | |
['@babel/preset-env', { | |
useBuiltIns: 'usage', | |
debug: false, | |
loose: true, | |
corejs: { | |
version: 3, | |
proposals: true, | |
}, |
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
{ | |
"modules": true, | |
"plugins": { | |
"autoprefixer": {} | |
} | |
} |
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 html = document.documentElement | |
const body = document.body | |
/** | |
Pseudo HTML element which behaves like a regular element in terms of scrolling. | |
*/ | |
const documentElement = { | |
set scrollLeft(x) { html.scrollLeft = x }, | |
get scrollLeft() { return window.scrollX || window.pageXOffset }, | |
set scrollTop(x) { html.scrollTop = x }, |
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
// Put cursor v there and wait until YCM+tsserver has initialized | |
const x = []. |
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 PropTypes from 'prop-types' | |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
function portalContainer() { | |
return document.getElementById('portal-container') | |
} | |
// Taken from https://reactjs.org/docs/events.html |
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
diff --git a/autoload/csscomplete.vim b/autoload/csscomplete.vim | |
index 162171f..799aead 100644 | |
--- a/autoload/csscomplete.vim | |
+++ b/autoload/csscomplete.vim | |
@@ -98,14 +98,10 @@ function! csscomplete#CompleteCSS(findstart, base) | |
let entered_property = matchstr(line, '.\{-}\zs[a-zA-Z-]*$') | |
for m in s:values | |
- let postfix = '' | |
- if strridx(after, ':') < 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
# Make Ctrl-] copy current input to system clipboard | |
pbcopy-whole-line() { | |
echo -n $BUFFER | pbcopy | |
}; zle -N pbcopy-whole-line | |
bindkey '^]' pbcopy-whole-line |
NewerOlder