Skip to content

Instantly share code, notes, and snippets.

View kroegen's full-sized avatar

Yevhenii Krotenko kroegen

View GitHub Profile
import React from 'react';
import { Component } from 'react';
import ReactDOM from 'react-dom';
import { combineReducers, createStore } from 'redux';
const todo = (state, action) => {
switch (action.type) {
case 'ADD_TODO':
return {
id: action.id,
function (text) {
return text.split('\n\n').map(rawFilm =>{
const data = rawFilm.split('\n').map(field => field.split(': '));
console.log(data)
return {
Title: data[1],
Year: data[3],
Format: data[5],
Stars: data[7]
}
server {
listen 80;
server_name cvgenerator;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:5050;
}
}