Skip to content

Instantly share code, notes, and snippets.

View mike-gusiev's full-sized avatar
😇
enjoying the coding

mike-gusiev

😇
enjoying the coding
View GitHub Profile

Install VSCode extensions:

  • Beautify
  • Docker
  • Emmet JSS
  • ESLint
  • GitLens
  • Git Patch
  • JSS Snipets
  • npm Intellisense
  • Visutal Studio IntelliCode
<div class="loader">
<svg viewBox="0 0 32 32" width="32" height="32">
<circle id="spinner" cx="16" cy="16" r="14" fill="none"></circle>
</svg>
</div>
<style>
.loader {
left: 50%;
top: 50%;
docker rmi $(docker images -a -q)
docker rm $(docker ps -a -f status=exited -q)
docker volume rm $(docker volume ls -f dangling=true -q)
@mike-gusiev
mike-gusiev / js-developer.txt
Last active January 25, 2023 15:07
Middle JavaScript Developer - что надо знать
Что надо знать чтобы устроится на Middle JavaScript Developer:
1) JavaScrit (версия ES5) (20%)
2) jQuery (20%)
3) HTML5, CSS3 (10%)
4) Bootsrap, LESS, SASS (10%)
5) JS Build Systems (npm, bower, gulp, grunt) (10%)
6) git, gitHub (10%)
7) Design Patterns (5%)
8) Refactoring (5%)
<iframe id="nascar_frame" frameborder="0" height="5700" scrolling="no" src="http://chasehub.azurewebsites.net/"></iframe>
<script type="text/javascript">
(function ($) {
$(window).scroll(function() {
var topPosition = $(window).scrollTop();
if($('#nascar_frame')) {
$('#nascar_frame')[0].contentWindow.postMessage('nascar_' + topPosition, 'http://chasehub.azurewebsites.net/');
}
});
@mike-gusiev
mike-gusiev / git.txt
Last active February 2, 2017 09:41
Git tips
git log --pretty=format:"%h - %an, %ar : %s"
alias glop="git log --pretty=format:'%C(yellow)%h|%Cred%ad|%Cblue%an|%Cgreen%d %Creset%s' --date=short | column -ts'|' | less -r"
git log --since=2.days
git log -p -2
git config --global core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
@mike-gusiev
mike-gusiev / 1.can.construct.js
Last active August 29, 2015 14:24
CanJS tips
console.log('Static and public methods:');
var Todo = can.Construct({
count: 0
}, {
author: function () {return "Justin";}
});
console.log(Todo.count); //static property (can use without object)
//public method
@mike-gusiev
mike-gusiev / main.html
Created June 18, 2015 17:06
RedTram Ticker
<div id="n4p_13714">Loading...</div>
<script type="text/javascript" charset="utf-8">
(function(d,s){
var o=d.createElement(s);
o.async=true;
o.type="text/javascript";
o.charset="utf-8";
if (location.protocol == "https:") {
o.src="https://js-goods.redtram.com/ticker_13714.js";
}
@mike-gusiev
mike-gusiev / vbox.txt
Created June 17, 2015 18:03
VBox Nat
VBoxManage modifyvm "VM" --natnet1 "192.168/16"
Настройки Сети - Bridge Network - Advanced - Allow All
@mike-gusiev
mike-gusiev / _main.js
Last active August 29, 2015 14:22
JavaScript Design Patterns syllabus
Глава 2. Основы:
1. Добавление функции в прототип любого объекта {code}
2. В parseInt() всегда использовать систему вычисления month = parseInt(month, 10); //09 нормально спарсится
3. Всегда в if() используй ===
4. Всегда используй {}, даже где можно без них
5. function MyConstructor() {...} //функции-конструкторы должны начинатся с большой буквы
6. ВЕРХНИЙ регистр для переменных, которые не должны менятся (константы)