Skip to content

Instantly share code, notes, and snippets.

View r3nya's full-sized avatar
☮️
¯\_(ツ)_/¯

Andrew M. r3nya

☮️
¯\_(ツ)_/¯
View GitHub Profile
" --- General
let mapleader = " "
" enables syntax highlighting
syntax on
" Better colors
set termguicolors
@r3nya
r3nya / flatten.js
Last active May 4, 2019 21:16
Array#flatten()
export const flatten = (arr) => {
if (!(arr && Array.isArray(arr))) {
return undefined;
}
return arr.reduce(
(acc, currentValue) => (
acc.concat(Array.isArray(currentValue)
? flatten(currentValue)
: currentValue)
@r3nya
r3nya / vscode_use_settings.json
Created July 23, 2018 19:45
VSCode user settings
{
"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",
@r3nya
r3nya / vscode-ext.txt
Created July 23, 2018 13:05
VSCode exts
~ » 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
@r3nya
r3nya / regions.json
Last active February 12, 2018 20:14
{
"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": "Республика Калмыкия" },
@r3nya
r3nya / custom_style.css
Created September 30, 2017 21:43
My configs for VS Code
/* Sidebar - Explorer items */
.monaco-tree .monaco-tree-rows > .monaco-tree-row {
cursor: default;
}
/* Editor - Scrollbar */
.editor .monaco-scrollable-element > .scrollbar {
width: 12px !important;
@r3nya
r3nya / useClassnames.js
Created May 30, 2017 22:49 — forked from matthewoden/useClassnames.js
Dynamic classnames for react and react native.
/*
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){
/*

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:

~ » 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
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!')
}