Skip to content

Instantly share code, notes, and snippets.

@ValentynaGorbachenko
ValentynaGorbachenko / insertion_sort.js
Created October 13, 2016 00:04
insertion_sort created by ValentynaGorbachenko - https://repl.it/Dre9/1
// O(n^2) - time complexity
// O(1) - space complexity
// insertion sort
function insertionSort(arr){
// start loop from the second element in the Array
for (var i=1; i<arr.length; i++){
// store current elem
var temp = arr[i];
// start comparing current elem to the previous
@ValentynaGorbachenko
ValentynaGorbachenko / README-Template.md
Created November 27, 2016 19:33 — 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

// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@ValentynaGorbachenko
ValentynaGorbachenko / README.md
Created June 19, 2017 17:38 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})