Skip to content

Instantly share code, notes, and snippets.

Евгений LopatkinEvgeniy

Block or report user

Report or block LopatkinEvgeniy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nodejs proxy
# Простой пример
server {
listen 80;
server_name localhost;
charset koi8-r;
location / {
root /var/www/nodejs/public;
index index.html;
try_files $uri $uri/ @backend;
View fetcher.js
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',
},
View .gitconfig
[user]
email = Lopatkin.E@raidixstorage.com
name = Lopatkin Evgeniy
[core]
editor = vim
[push]
default = simple
[alias]
hist = log --oneline --graph -7
st = status
@LopatkinEvgeniy
LopatkinEvgeniy / Enhance.js
Created Jan 13, 2016 — forked from sebmarkbage/Enhance.js
Higher-order Components
View Enhance.js
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
View handlebars precompile amd
// jshint node:true
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-handlebars');
grunt.initConfig({
handlebars: {
options: {
amd: true,
View project - edit project (example)
{
"folders":
[
{
"path": "/home/evgen/local",
"folder_exclude_patterns":
[
"bower_components",
"node_modules",
"public/templates"
View dirrectives
// jshint eqeqeq: false, -W041
You can’t perform that action at this time.