Skip to content

Instantly share code, notes, and snippets.

View ivaneroshkin's full-sized avatar

Ivan Eroshkin ivaneroshkin

  • Belgrade, Serbia
View GitHub Profile
function wait(ms = 0) {
return new Promise(resolve => setTimeout(resolve, ms));
}
wait(200)
.then(() => {
console.log('Appeared after 200ms');
return wait(500);
})
.then(() => {
@ivaneroshkin
ivaneroshkin / fib.swift
Created September 21, 2019 20:14
Fibonacci
func fibonachi (n: Int) -> Int {
if n == 1 || n == 0 {
return n
}
var result = fibonachi(n: n-1) + fibonachi(n: n-2)
return result
}
print(fibonachi(n: 13))
@ivaneroshkin
ivaneroshkin / sortSettings.js
Created September 21, 2019 19:49
Sort settings for VScode
const settings = {
'editor.detectIndentation': false,
'editor.smoothScrolling': true,
'window.menuBarVisibility': 'toggle',
'workbench.statusBar.feedback.visible': false,
'workbench.editor.tabSizing': 'shrink',
'editor.tabSize': 2,
'sync.autoDownload': false,
'window.titleBarStyle': 'custom',
'search.location': 'panel',
@ivaneroshkin
ivaneroshkin / frontendDevlopmentBookmarks.md
Created April 24, 2018 11:36 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@ivaneroshkin
ivaneroshkin / README-Template.md
Created March 6, 2018 11:32 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites