Skip to content

Instantly share code, notes, and snippets.

@inanutshell86
inanutshell86 / gulp-browser-sync.txt
Last active January 11, 2017 12:07
gulp-browser-sync
var gulp = require("gulp"),
browserSync = require('browser-sync');
gulp.task('server', function () {
browserSync({
port: 9000,
server: {
baseDir: 'app'
}
});

Настройки Atom. Синхронизация между несколькими устройствами.

Смотри плагин sync-settings, чтобы забрать себе все эти настройки. Или можно скачать эти файлы и заменить у себя в ~/.atom/

var gulp = require("gulp");
var less = require("gulp-less");
var notify = require("gulp-notify");
var plumber = require("gulp-plumber");
var postcss = require("gulp-postcss");
var autoprefixer = require("autoprefixer");
var sourcemaps = require("gulp-sourcemaps");
var browserSync = require("browser-sync").create();
// Compile less into CSS & auto-inject into browsers
{
"name": "1-barbershop",
"version": "1.0.0",
"main": "gulpfile.js",
"description": "Учебный проект «Барбершоп» от HTML Academy",
"author": "Ihor Khrystiuk",
"repository": {
"type": "git",
"url": "https://github.com/inanutshell86/1-barbershop.git"
},
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Index</title>
<link rel="stylesheet" href="/css/style.css">
<!-- Pixel Glass -->
body,
html {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
body {
font-size: 18px;
; http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
@inanutshell86
inanutshell86 / 0_reuse_code.js
Created August 1, 2017 09:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@inanutshell86
inanutshell86 / kottans-2017.md
Created September 26, 2017 07:45
Kottans Front End 2017 — test assignment

Kottans Front End 2017 — test assignment

Hello and welcome to the next step of our selection process. The goal is to determine if we are a good match.

Flow

mini GitHub API client

First screen: owner (organization or user) name input and submit button.

## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/
---
- hosts: alpine_install
user: root
tasks:
# - name: create a complete empty file
# command: /usr/bin/touch /test/test.conf
- name: create a new file with lineinfile