Instantly share code, notes, and snippets.

View vscode_use_settings.json
{
"zenMode.hideTabs": false,
"editor.rulers": [ 100, 120 ],
"editor.fontFamily": "Hack",
"editor.fontSize": 13,
"editor.renderWhitespace": "all",
"files.autoSave": "onFocusChange",
"editor.minimap.enabled": true,
"editor.dragAndDrop": true,
"editor.cursorStyle": "line-thin",
View vscode-ext.txt
~ » ls -1 .vscode/extensions | awk -F'.' '{print $2}' | sed 's/\-[0-9]$//g'
editorconfig
vscode-docker
indenticator
sort-lines
vscode-theme-onedark
vscode-theme-onelight
copy-relative-path
cucumberautocomplete
jest-snippets
View regions.json
{
"regions": [
{ "value": 1, "label": "Республика Адыгея (Адыгея)" },
{ "value": 2, "label": "Республика Башкортостан" },
{ "value": 3, "label": "Республика Бурятия" },
{ "value": 4, "label": "Республика Алтай" },
{ "value": 5, "label": "Республика Дагестан" },
{ "value": 6, "label": "Республика Ингушетия" },
{ "value": 7, "label": "Кабардино-Балкарская Республика" },
{ "value": 8, "label": "Республика Калмыкия" },
View custom_style.css
/* Sidebar - Explorer items */
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
cursor: default;
}
/* Editor - Scrollbar */
.editor .monaco-scrollable-element > .scrollbar {
width: 12px !important;
View useClassnames.js
/*
This is a real simple pattern that allows you to
maintain a syntax similar to classnames, but use
CSS Module mode in webpack.
(solving the problem of cleanly using object properies as keys)
*/
function use(result, conditions){
/*
View keybase.md

Keybase proof

I hereby claim:

  • I am r3nya on github.
  • I am r3nya (https://keybase.io/r3nya) on keybase.
  • I have a public key whose fingerprint is BC84 4477 7524 FA80 D9BC 715E F967 2FD2 A112 733E

To claim this, I am signing this object:

View extensions.txt
~ » ls -1 .vscode/extensions | awk -F'.' '{print $2}' | sed 's/\-[0-9]$//g'
EditorConfig
beautify
vscode-jest
emoji
ejs-language-support
sort-lines
html-snippets
Bookmarks
copy-relative-path
View es6-feature-detection.js
var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' +
'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' +
'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' +
': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));';
try {
eval(str);
} catch(e) {
alert('Your browser does not support ES6!')
}
View settings.json
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Hack",
"editor.fontSize": 13,
"workbench.activityBar.visible": false,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
View pre-commit.sh
#!/bin/bash
for file in $(git diff --cached --name-only | grep -E '\.(js|jsx)$')
do
git show ":$file" | node_modules/.bin/eslint --stdin --stdin-filename "$file" # we only want to lint the staged changes, not any un-staged changes
if [ $? -ne 0 ]; then
echo "ESLint failed on staged file '$file'. Please check your code and try again. You can run ESLint manually via npm run eslint."
exit 1 # exit with failure status
fi
done