This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jshint eqeqeq: false, -W041 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Простой пример | |
server { | |
listen 80; | |
server_name localhost; | |
charset koi8-r; | |
location / { | |
root /var/www/nodejs/public; | |
index index.html; | |
try_files $uri $uri/ @backend; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"folders": | |
[ | |
{ | |
"path": "/home/evgen/local", | |
"folder_exclude_patterns": | |
[ | |
"bower_components", | |
"node_modules", | |
"public/templates" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jshint node:true | |
module.exports = function (grunt) { | |
'use strict'; | |
grunt.loadNpmTasks('grunt-contrib-handlebars'); | |
grunt.initConfig({ | |
handlebars: { | |
options: { | |
amd: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Lopatkin Evgeniy | |
[core] | |
editor = vim | |
[push] | |
default = simple | |
[alias] | |
hist = log --oneline --graph -7 | |
st = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fetch from 'isomorphic-fetch'; | |
export default function fetcher(url, options = {}) { | |
return new Promise((resolve) => { | |
fetch(url, Object.assign({}, { | |
credentials: 'same-origin', | |
headers: { | |
Accept: 'application/json', | |
'Content-Type': 'application/json', | |
}, |