Skip to content

Instantly share code, notes, and snippets.

View endurance's full-sized avatar
🎯
Focusing

Endurance Idehen endurance

🎯
Focusing
  • Austin, Texas
View GitHub Profile
version: '3.3'
services:
db:
image: library/postgres:11.1-alpine
# Docker for Mac does not support tmpfs mounts. If on linux, uncomment this out for a great performance boost
# volumes:
# - type: tmpfs
# target: /var/lib/postgresql/data
# DockerDisk should be mapped to a ram disk, but osx filesystem event API is horribad right now. When
version: '3.3'
services:
db:
image: library/postgres:11.1-alpine
# Docker for Mac does not support tmpfs mounts. If on linux, uncomment this out for a great performance boost
# volumes:
# - type: tmpfs
# target: /var/lib/postgresql/data
# DockerDisk should be mapped to a ram disk
import { Args, Field, ID, Mutation, ObjectType, Resolver } from '@nestjs/graphql';
import { BasinJobService } from '../../general/services/job/basin-job.service';
@ObjectType()
class DeleteBasinForJobInput {
@Field(_ => ID)
public jobId: string;
@Field(_ => [String])
public basinNames: string[];
}
import { Args, Field, ID, Mutation, ObjectType, Resolver } from '@nestjs/graphql';
import { BasinJobService } from '../../general/services/job/basin-job.service';
@ObjectType()
class DeleteBasinForJobInput {
@Field(_ => ID)
public jobId: string;
@Field(_ => [String])
public basinNames: string[];
}
import { setupTestDatabase, TestPackage } from '../../../../db/testing/setupTestDatabase';
import { JobService } from './job.service';
import { FixtureResolver } from '../../../../db/testing/fixture.loader';
import { SERVICE_DB } from '../../../../db/tokens';
import { CreateJobInput } from '../../../job-list-view/inputs/create-job.input';
import { v4 } from 'uuid';
import { UpdateJobInput } from '../../../job-list-view/inputs/update-job.input';
describe('Test Jobs', () => {
import { Connection, EntitySubscriberInterface, getMetadataArgsStorage, Repository, UpdateEvent } from 'typeorm';
import { Injectable } from '@nestjs/common';
import { InjectConnection, InjectRepository } from '@nestjs/typeorm';
import { updatedDiff } from 'deep-object-diff';
import { AuditTrailEntity } from '../entities/AuditTrailEntity';
import { AuditTrailValueEntity } from '../entities/AuditTrailValueEntity';
import { AuditHistoryToAuditTrailEntity } from '../entities/AuditHistoryToAuditTrailEntity';
import { AuditHistoryEntity } from '../entities/AuditHistoryEntity';
@Injectable()
@endurance
endurance / TwelveDaysOfChristmas.cs
Last active December 22, 2015 05:54
Boon Group Twelve Days of Christmas
using System;
using System.Threading.Tasks;
namespace TweleveDaysOfChristmas
{
internal class Program
{
public static string[] SpokenNumber =
{
"First", "Second", "Third", "Fourth", "Fifth", "Sixth", "Seventh",
public class ClientCodeWithNinject
{
var exportFileService = Services.GetExportFileService();
}
public static class Services
{
public static ExportFileService GetExportFileService()
{
var kernel = new StandardKernel();
@endurance
endurance / ClientCode.cs
Last active September 15, 2015 21:48
ClientCode2.cs
public class ClientCode
{
var _exportFileTypeRepo = new ExportFileTypeRepository();
var _exportFileRepo = new ExportFileRepository();
var _imageStoreRepo = new ImageStoreRepository();
var exportFileService = new ExportFileService()
{
_exportFileTypeRepository = _exportFileTypeRepo;