Skip to content

Instantly share code, notes, and snippets.

View yetithefoot's full-sized avatar
:octocat:
Loading status...

Vlad Tsepelev yetithefoot

:octocat:
Loading status...
View GitHub Profile
@yetithefoot
yetithefoot / duplicate.js
Last active September 19, 2016 14:11
Junior Front-end Developer | Duplicate function
function duplicate(){
// write your one-line implementation here
}
// should prints [1,2,3,4,5,1,2,3,4,5]
console.log(duplicate([1,2,3,4,5]));
// should prints ['a','b','c','a','b','c']
console.log(duplicate(['a','b','c']));
@yetithefoot
yetithefoot / add.js
Last active September 19, 2016 15:01
Junior Front-end Developer | Add function
function add(){
// write your one-line implementation here
}
// should prints 7
console.log(add(2,5));
// should prints 7
console.log(add(2)(5));
@yetithefoot
yetithefoot / average-github-title.sh
Created November 25, 2016 07:53
Shows average issue title length for repo
#!/bin/bash
curl "https://api.github.com/repos/d3/d3/issues?per_page=1000" | jq '.[] | .title' | awk '{ print length($0); }' | jq -s 'add/length'
@yetithefoot
yetithefoot / bw-gradient-generator-with-height-and-lines-number.markdown
Created April 11, 2018 07:42
BW gradient generator (with height and lines number)
@yetithefoot
yetithefoot / install-docker.md
Created March 25, 2019 16:24 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
Do need DAM if... Do NOT need DAM if...
Have 1000+ assets Have less tahn 1000+ assets
Collaborate with team on your assets Work alone
Have licensed assets Have short asset lifecycle
Search assets across your library Do not develop assets