Forked from Dan Tello's Pen BEM+.
A Pen by Ilya Rogov on CodePen.
#!/usr/bin/env bash | |
git fetch origin | |
git stash | |
git rebase origin/$(git rev-parse --abbrev-ref HEAD) | |
git stash pop |
— HTML, CSS, JavaScript | |
— Node.js, Backbone.js, Ember.js, i-bem.js | |
— AngularJS, React, Meteor | |
— LESS, SCSS, но Sass | |
— npm, io.js |
[alias] | |
c = commit -m | |
a = add | |
mf = merge --ff-only | |
co = checkout | |
cob = checkout -b | |
ci = commit | |
st = status | |
br = branch | |
cp = cherry-pick |
Add this into your Vagrantfile:
module OS
def OS.windows?
(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
end
def OS.mac?
(/darwin/ =~ RUBY_PLATFORM) != nil
(source: https://sites.google.com/site/rsync2u/home/rsync-tutorial/how-rsync-works3)
~/demo1$rsync is efficient. The first time rsync is run, destination is created and the full source is copied to destination. Thereafter, only changes in source are copied to destination. If the --link-dest option is used, unchanged files are hard linked to the previous backup.
A hard link is a pointer to a file. Hard links have the advantage of using very little memory. There is an illustrated explanation of hard links on http://blog.interlinked.org/tutorials/rsync_time_machine.html > scroll down to “Hard-Links”.
Here is how the "rsync --link-dest=DIR" algorithm creates files in destination:
if destination does not exists,
The Modern.ie Virtual Machine Images – VMs used for testing several versions of IE – are now also available as vagrant boxes. Here’s the list:
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: %name% | |
# Required-Start: $network $remote_fs $local_fs | |
# Required-Stop: $network $remote_fs $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: forever-service startup script for %name% | |
# Description: forever-service startup script for node script based service %name%, uses forever to start the service |
STEM-навыки жизненно необходимы в современном мире, но технология сама по себе, как утверждал когда-то Стив Джобс — это не всё, а Google это доказал https://ru.hexlet.io/blog/posts/stem-or-humanity
Курсы и практики без настроек локального окружения, тебуется только браузер.
курс
Введение в программирование (практическии на JS) https://ru.hexlet.io/courses/introduction_to_programmingпрактика
<?php | |
# file: public/index.php | |
# | |
# Sample BEM Server Rendering on PHP-stack | |
# | |
# composer require nacmartin/phpexecjs | |
# | |
define('ROOT_DIR', dirname(__DIR__)); |