Skip to content

Instantly share code, notes, and snippets.

View dagolinuxoid's full-sized avatar
💭
u did it!!

Artur Haurylkevich dagolinuxoid

💭
u did it!!
View GitHub Profile
@dagolinuxoid
dagolinuxoid / resume.json
Last active September 24, 2021 09:20
testing json resume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Artur Haurylkevich",
"label": "coder",
"image": "",
"email": "[email protected]",
"summary": "FRONT-END",
"location": {
"city": "Vishnevo",
@dagolinuxoid
dagolinuxoid / dock.theme
Created June 14, 2021 08:48
Elementary OS plank setup
#This file auto-generated by Plank.
#2021-05-08T20:30:53+0000
[PlankTheme]
#The roundness of the top corners.
TopRoundness=0
#The roundness of the bottom corners.
BottomRoundness=0
#The thickness (in pixels) of lines drawn.
LineWidth=0
@dagolinuxoid
dagolinuxoid / implicitTbody.js
Created January 25, 2019 07:17
presence of an implicit tbody in html
// this code will NOT produce implicit tbody tag in your html
let table = document.createElement('table');
let tr = document.createElement('tr');
let td = document.createElement('td');
td.textContent = 'table Data';
table.append(tr);
tr.append(td);
document.body.append(table);</code>
"resultingHTML is: <table><tr><td>table Data</td></tr></table>";
@dagolinuxoid
dagolinuxoid / decorator.js
Created January 5, 2019 11:23
alternative
let worker = {
slow(min, max) {
return min + max; // scary CPU-hogger is assumed
}
};
function cachingDecorator(fn){
const makeKey = input => String(input);
let cache = {};
return function wrap(...args) {
@dagolinuxoid
dagolinuxoid / letScope.js
Created April 24, 2018 18:56
#beCareful #let #var #scope #kata
https://www.codewars.com/kata/give-me-a-diamond/train/javascript
// doesn't work!
function diamond(n){
if (n<=0 || n%2===0) return null;
function buildLine() {
let spaces = ' '.repeat((n-i)/2);
let stars = '*'.repeat(i);
return spaces+stars+'\n';
}
const mid = '*'.repeat(n)+'\n';
@dagolinuxoid
dagolinuxoid / settings.json
Created April 9, 2018 09:14
visual studio code | my_config | ~/.config/Code/User/settings.json
{
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"window.zoomLevel": 0,
"editor.fontFamily": "Hack", // "Liberation Mono"
"editor.fontSize": 14,
"editor.minimap.enabled": false,
"files.associations": {
"*.html": "html"
},
@dagolinuxoid
dagolinuxoid / preptoHaskellScanL.js
Created March 8, 2018 11:24
bicycles | proto | examples | eazy-breezy
//polyfil map == transformer
Array.prototype.transformer = function (callback) {
const transformedArr = [];
for (let i=0; i<this.length; i++) {
transformedArr.push(callback(this[i],i,this));
}
return transformedArr;
};
var numbers = [1,2,3,4,5];
//PS. twenty-five is more common then twenty five I belive, so I used dash.
const apm=(num)=>num<12?'AM':'PM';
const hh=(num)=>{
const ones=['twelve','one','two','three','four','five','six','seven','eight','nine','ten','eleven'];
return ones[num%12];
};
const mm=(num)=>{
if(num==='00') return '';
@dagolinuxoid
dagolinuxoid / GitHub-Forking.md
Last active October 24, 2017 17:05 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to collate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or ju

@dagolinuxoid
dagolinuxoid / dago.vim
Created October 19, 2017 17:39
color scheme for neo
" What should I do ?
hi clear
let colors_name="dago"
" BASE "
""hi Normal ctermfg=251 ctermbg=8
" Elegant highlighting on matching (){}[]
hi MatchParen cterm=bold ctermfg=red ctermbg=none