This file contains 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
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Newtonsoft.Json; | |
namespace Utilities | |
{ | |
public static class RequestResponseCopyExtensions |
This file contains 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
public class Person : LiteDbModel | |
{ | |
public string Name { get; set; } | |
public double Age { get; set; } | |
public string City { get; set; } | |
} |
This file contains 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
namespace SignalRServer.Models | |
{ | |
public class Employee | |
{ | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public double Age { get; set; } | |
} | |
} |
This file contains 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 React from 'react'; | |
import {render} from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import {Provider} from "react-redux"; | |
import store, {history} from "./store"; | |
import {ConnectedRouter} from "react-router-redux"; | |
const target = document.querySelector('#root'); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="theme-color" content="#000000"> | |
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | |
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> | |
<title>React App</title> | |
</head> |
This file contains 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 React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
ReactDOM.render(<App />, document.getElementById('root')); | |
registerServiceWorker(); |
This file contains 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 React, {Component} from 'react'; | |
import {Link, Route, withRouter} from "react-router-dom"; | |
import About from "./Components/About"; | |
import EmployeeDetails from "./Components/EmployeeDetails"; | |
import AddEmployee from "./Components/AddEmployee"; | |
import EditEmployee from "./Components/EditEmployee"; | |
import Dashboard from "./Components/Dashboard"; | |
class App extends Component { | |
render() { |
This file contains 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 React from "react"; | |
import {connect} from "react-redux"; | |
import {bindActionCreators} from "redux"; | |
import {loadEmployeesAsync} from "../reducers/employees"; | |
import {Link} from "react-router-dom"; | |
class Dashboard extends React.Component { | |
async componentWillMount(){ | |
//loading data only first time |
This file contains 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 com.typesafe.config.Config | |
import zio.* | |
import zio.config.ConfigDescriptor.* | |
import zio.config.ConfigSource.* | |
import zio.config.* | |
import zio.config.magnolia.Descriptor | |
import zio.config.typesafe.TypesafeConfigSource | |
import zio.cli.Args | |
import java.time.ZonedDateTime | |
import java.time.LocalDate |
This file contains 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
object TestApp extends zio.ZIOAppDefault { | |
override def run = { | |
val filePath = "main.csv" | |
val program = for { | |
// read a csv file | |
lines <- ZStream | |
.fromFileName(filePath, 1024) | |
.via(ZPipeline.utfDecode) | |
.via(ZPipeline.splitLines) |
OlderNewer