Skip to content

Instantly share code, notes, and snippets.

View erm0l0v's full-sized avatar

Kirill Ermolov erm0l0v

  • Wargaming
  • Serbia Beograd
View GitHub Profile
@erm0l0v
erm0l0v / .vimrc
Last active May 3, 2017 13:25
.vimrc
"--------------------------------------------------
" NeoBundle Init
" Turn off filetype plugins before bundles init
filetype off
" Auto installing NeoNeoBundle
let hasAptGet = executable("apt-get")
let hasGit = executable("git")
let isNpmInstalled = executable("npm")
let iCanHazNeoBundle=1
@erm0l0v
erm0l0v / app.js
Last active January 18, 2016 11:39
Тестовое задание.
/*!
* Задание: написать простой сервис для расчета факториала.
* Сервис получает в реквесте число и возвращает факториал этого числа.
* Задание должно быть сделанно на node.js.
* Вы можете использовать любые общедоступные технологии и библиотеки, которые сочтете нужными.
*
* Если вам кажется что в задании не хватает требований, то стоит придерживаться здравой логики.
*
* Если задание показалось вам слишком простым, вы можете:
* - добавить возможность конфигурации порта и других опций, которые сочтете нужными
@erm0l0v
erm0l0v / README.md
Last active March 10, 2016 16:03
Docker

Problem

vms

Conteiners

containers

lxc

@erm0l0v
erm0l0v / dabblet.html
Created October 28, 2015 09:23 — forked from anonymous/dabblet.html
Untitled
<div id="ct-read-review-widget" class="course-reviews-area" data-course="DEV204x"></div>
<script src="http://127.0.0.1:8000/static/js/widgets/edx-course-widgets.js"></script>
<script>window.courseTalk.init();</script>
@erm0l0v
erm0l0v / dabblet.html
Created August 28, 2015 09:56
Untitled
<script src="http://mozilla.github.io/jschannel/src/jschannel.js"></script>
<script type="text/javascript">
function closeMe() {
var chan = Channel.build({
window: window.opener,
origin: "*",
scope: "signupPopupScope"
});
chan.notify({method: "popup_close"});
window.close();
@erm0l0v
erm0l0v / dabblet.html
Created August 28, 2015 09:56 — forked from anonymous/dabblet.html
Untitled
<script src="http://mozilla.github.io/jschannel/src/jschannel.js"></script>
<script type="text/javascript">
function openMe(url) {
var popupWindow = window.open(url,'popUpWindow','height=300,width=400,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');
var chan = Channel.build({
window: popupWindow,
origin: "*",
scope: "signupPopupScope"
});
chan.bind('popup_close', function (context, params) { alert('I closed'); });
@erm0l0v
erm0l0v / dabblet.html
Created August 28, 2015 09:47
Untitled
<script src="http://mozilla.github.io/jschannel/src/jschannel.js"></script>
<script type="text/javascript">
function close() {
var chan = Channel.build({
window: window.opener,
origin: "*",
scope: "signupPopupScope"
});
chan.notify({method: "popup_close"});
window.close();
@erm0l0v
erm0l0v / .profile
Created July 29, 2015 13:47
Quick git commands (Gerrit) - `co branch_name` - checkout new branch and delete previous; `pm` or `pm remoute_branch_name` quick push the branch
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
git_push_master() {
target_branch="master"
if [ "$#" -gt "0" ]
then
name=$1
@erm0l0v
erm0l0v / dabblet.html
Created April 20, 2015 13:08
Untitled
<span class="ct-widget-stars" data-course="6.00.1x"></span><p>Some content</p><div id="ct-read-review-widget" data-course="6.00.1x"></div><script src="http://127.0.0.1:8000/static/js/widgets/edx-course-widgets.js"></script>
@erm0l0v
erm0l0v / dabblet.html
Created March 24, 2015 10:21
Untitled
<iframe src="https://www.class-central.com/mooc/2466/coursera-introduction-to-electronics"></iframe>