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
FROM alpine:3.13 | |
# for laravel lumen run smoothly | |
RUN apk --no-cache add \ | |
php7 \ | |
php7-dev \ | |
php7-pear \ | |
php7-fpm \ | |
php7-pdo \ |
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
/** | |
* | |
* filename: server.js | |
* | |
* | |
* Ini yang akan di eksekusi oleh server | |
* Running step: | |
* 1. ng build --build-optimizer | |
* 2. Check folder dist (setting path dist ada di angular.json) | |
* 3. running server node server.js |
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 enum ActivityLogsType { | |
// This was use as index in logs database | |
INDEX = 'activity-logs', | |
HISTORICAL = 'historical-activity-logs', | |
// This was use as name of instance from interceptor | |
REQUEST = 'request', | |
INFO = 'activity:information', | |
ERROR = 'activity:error', |
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([ |
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 { 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
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
// 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
-- 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 |
OlderNewer