XOPS API Built on NestJS. It use as backend service for XOPS Environment. XOPS is application that built for recording manhours of work. So you can write and log all activity while you work.
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
/** | |
* | |
[ | |
{ | |
"name": "VP", | |
"permissions": ["view_all_projects", "edit_all_projects"] | |
}, | |
{ | |
"name": "Manager", | |
"permissions": ["view_team_projects", "edit_team_projects"] |
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
... | |
EurekaModule.forRoot({ | |
disable: false, | |
disableDiscovery: false, | |
eureka: { | |
host: process.env.EUREKA_HOST || 'localhost', | |
port: Number(process.env.EUREKA_PORT) || 8761, | |
registryFetchInterval: Number(process.env.EUREKA_INTERVAL) || 1000, | |
servicePath: '/eureka/apps', | |
maxRetries: 3, |
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 { Injectable } from '@nestjs/common'; | |
import { EventEmitter2 } from '@nestjs/event-emitter'; | |
import { | |
$Enums, | |
StopReason, | |
Teams, | |
TransactionActiveJob, | |
TransactionStopJob, | |
} from '@prisma/client'; | |
import { plainToClass } from 'class-transformer'; |
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
-- Mochammad Dimas Editya | |
-- https://youtube.com/codersindonesia | |
-- | |
-- Bukan orang GMF | |
-- Change ENUM Type in PostgreSQL | |
-- | |
-- 1. Change enum name into another. So no one will use it | |
ALTER TYPE public."BudgetEnum" RENAME TO budgetenum; | |
-- 2. Create new enum type as you wish |
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
// Part 1 | |
let kota:string; | |
let tahun:number; | |
let isActive: boolean; | |
kota = 'bandung'; | |
tahun = 2024; | |
isActive = true; | |
// Part 2 |
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
package com.gmf.tms.utils; | |
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.modelmapper.ModelMapper; | |
import org.modelmapper.convention.MatchingStrategies; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import java.util.Collection; | |
import java.util.List; |
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 { BullModule } from '@nestjs/bull'; | |
import { Module } from '@nestjs/common'; | |
import { ConfigModule, ConfigService } from '@nestjs/config'; | |
import { APP_FILTER, APP_INTERCEPTOR } from '@nestjs/core'; | |
import { AppController } from './app.controller'; | |
import { RedisConfig } from './config/redis.config'; | |
import { ElasticsearchLoggerInterceptor } from './core/interceptor/elasticlog.interceptor'; | |
import { ElasticService } from './core/services/elastic.service'; | |
import { CrmModule } from './modules/crm/crm.module'; | |
import { JobBookmarkModule } from './modules/job-bookmark/job-bookmark.module'; |
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
% TUGAS PRAKTIKUM KONVERSI ENERGI | |
% STUDI ALIRAN DAYA PADA SISTEM 3 BUS | |
% METODE GAUSS-SEIDEL | |
% ------------------------------------- | |
% TEKNIK ELEKTRO | |
% UNIVERSITAS MUHAMMADIYAH TANGERANG | |
% ------------------------------------- | |
% MOCHAMMAD DIMAS EDITIYA - 2220201067 | |
% ARYA HAFIZH ALFARIZI - 2120201003 | |
% TEGAR JUNI KADIYANTO - 2120201023 |
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 { Injectable } from '@nestjs/common'; | |
import ffmpeg from 'fluent-ffmpeg'; | |
@Injectable() | |
export class VideoSplitService { | |
splitVideo(inputPath: string, outputPath: string): void { | |
ffmpeg(inputPath, { | |
timeout: 4320000, | |
}) | |
.addOption([ |
NewerOlder