Skip to content

Instantly share code, notes, and snippets.

View igodorogea's full-sized avatar

Ivan igodorogea

  • Chisinau, Moldova
View GitHub Profile
@igodorogea
igodorogea / .0 win-setup.md
Last active January 25, 2024 18:51
Windows PC Setup
@igodorogea
igodorogea / angular-cli-node-js-typescript-support.csv
Created February 11, 2021 07:27 — forked from LayZeeDK/angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI, Angular, Node.js and TypeScript compatibility.
Angular CLI version Angular version Node.js version TypeScript version
- 2.x 6.0.x or later minor version 2.0.x
1.0.6 4.0.x/4.1.x 6.9.x or later minor version 2.2.x
1.1.3 4.0.x/4.1.x 6.9.x or later minor version 2.3.x
1.2.7 4.0.x/4.1.x 6.9.x or later minor version 2.3.x
1.3.2 4.2.x/4.3.x/4.4.x 6.9.x or later minor version 2.4.x
1.4.10 4.2.x/4.3.x/4.4.x 6.9.x/8.9.x or later minor version 2.4.x
1.5.6 5.0.x/5.1.x 6.9.x/8.9.x or later minor version 2.4.x/2.5.x
1.6.7 5.2.x 6.9.x/8.9.x or later minor version 2.5.x
1.7.4 5.2.x 6.9.x/8.9.x or later minor version 2.5.x
@igodorogea
igodorogea / counting-sort.js
Last active February 27, 2020 11:38
Counting Sort
// https://www.youtube.com/watch?v=OKd534EWcdk
countingSort([1,4,1,2,7,5,30,8,2]);
function countingSort(arr) {
const positions = calculatePositions(arr);
const sortedArr = []
for (let i = 0; i < arr.length; i++) {
sortedArr[positions[arr[i]]] = arr[i]
positions[arr[i]] += 1
@igodorogea
igodorogea / fix-ios-zoom.scss
Created April 22, 2019 09:09
Prevent zoom on iOS Safari on input focus(Bootstrap)
@supports (-webkit-overflow-scrolling: touch) {
.form-control {
font-size: initial;
line-height: 1.125;
height: calc(1.125em + 0.75rem + 6px);
}
}
@igodorogea
igodorogea / gulpfile.js
Created July 20, 2018 15:09
Custom mjml component
// ...
// register custom mjml component
const { registerComponent } = require('mjml-core');
const MjBlock = require('../src/components/mjml-block/src/index');
registerComponent(MjBlock);
// ...
@igodorogea
igodorogea / git-clean-branches.md
Last active July 5, 2018 14:11
Remove all your local git branches except ...
  1. Delete all local branches that track remote origin except - master, dev and demo
    git branch -r | grep origin | grep -v origin/HEAD | grep -v "origin/dev$" | grep -v "origin/master$" | grep -v "origin/demo$" | xargs -n 1 git branch -rd
@igodorogea
igodorogea / _lightbox.scss
Created June 8, 2018 16:09
Bootstrap Lightbox
.lightbox {
position: relative;
display: block;
.lightbox-open {
position: absolute;
bottom: 0;
right: 0;
color: white;
border: 30px solid;
@igodorogea
igodorogea / 10-common.sh
Last active December 9, 2017 11:19
Configure Xubuntu VM for web development
# 0. update machine
sudo apt update
sudo apt upgrade -y
sudo apt-get autoclean
sudo apt-get autoremove
# 1. install basic packages
sudo apt install -y mc curl wget zsh git debconf-utils
# 2. install java
@igodorogea
igodorogea / 1. Sublime.md
Last active October 9, 2017 11:44
Sublime Text initial setup
  1. Install Sublime Text from here
  2. Install Package Control from here
  3. Install Material Theme and A File Icon
  4. Install additional plugins:
    • SideBarEnhancements
    • Emmet
    • Color Highlighter
    • Pretty JSON
  • Indent XML
@igodorogea
igodorogea / 10-init-ubuntu.sh
Last active December 8, 2017 18:30
Setup Ubuntu for TYPO3
#!/bin/bash
sudo apt update -y
sudo apt upgrade -y
sudo apt install zsh git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
sudo chsh -s $(which zsh) ubuntu
sudo apt install -y nginx