Skip to content

Instantly share code, notes, and snippets.

💭
¯\_(ツ)_/¯

Andrew M. r3nya

Block or report user

Report or block r3nya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@r3nya
r3nya / flatten.js
Last active May 4, 2019
Array#flatten()
View flatten.js
export const flatten = (arr) => {
if (!(arr && Array.isArray(arr))) {
return undefined;
}
return arr.reduce(
(acc, currentValue) => (
acc.concat(Array.isArray(currentValue)
? flatten(currentValue)
: currentValue)
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": "Республика Калмыкия" },
@r3nya
r3nya / custom_style.css
Created Sep 30, 2017
My configs for VS Code
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;
@r3nya
r3nya / useClassnames.js
Created May 30, 2017 — forked from matthewoden/useClassnames.js
Dynamic classnames for react and react native.
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!')
}
@r3nya
r3nya / settings.json
Created Jan 30, 2017
Config for VSCode
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,
You can’t perform that action at this time.