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
const gulp = require('gulp'); | |
const sass = require('gulp-sass'); | |
const clean = require('gulp-clean'); | |
const concat = require('gulp-concat'); | |
const rename = require('gulp-rename'); | |
const uglify = require('gulp-uglify'); | |
const htmlmin = require('gulp-htmlmin'); | |
const cleanCss = require('gulp-clean-css'); | |
const htmlPartial = require('gulp-html-partial'); |
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, { useState } from 'react'; | |
import { | |
TableBody, | |
TableHead, | |
Table as MuiTable, | |
TableRow, | |
TableCell, | |
TablePagination, TableSortLabel, | |
} from '@material-ui/core'; | |
import * as R from 'ramda'; |
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
use actix_web::error::BlockingError; | |
use actix_web::{web, Error as AWError, HttpResponse, Scope}; | |
use diesel::pg::PgConnection; | |
use diesel::prelude::*; | |
use diesel::result::{DatabaseErrorKind, Error as DieselError}; | |
use futures::Future; | |
use crate::models::{NewUser, User}; | |
use crate::ConnectionPool; |
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
<?php | |
namespace App\Infrastructure\Repository; | |
use App\Component\Shared\BaseRepositoryInterface; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Doctrine\ORM\QueryBuilder; | |
/** | |
* Class BaseRepository | |
* @package App\Infrastructure\Repository |
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
export interface IField<T> { | |
key: string & keyof T; | |
type: 'number' | 'string' | 'object'; | |
optional?: boolean; | |
} | |
export type Schema<T> = IField<T>[]; | |
function isObj(data: unknown): data is object { | |
return typeof data === 'object' && !!data; |
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, { unmountComponentAtNode } from 'react-dom'; | |
import { act } from '@testing-library/react'; | |
import { TableCell, TableRow } from '@material-ui/core'; | |
import BaseTable, { sortBy } from './index'; | |
import { Order } from './TableHeaderCell'; | |
const createData = () => [ | |
{ key: 2, value: 'b' }, | |
{ key: 1, value: 'a' }, |
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 './env'; | |
import 'reflect-metadata'; | |
import { launch, Page } from 'puppeteer'; | |
import { Connection } from 'typeorm'; | |
import * as AWS from 'aws-sdk'; | |
import { SendEmailRequest } from 'aws-sdk/clients/ses'; | |
import { establishDbConnection } from './services'; | |
import { Alert, AlertType } from './entities'; | |
AWS.config.update({ |