This file contains hidden or 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
openapi: 3.0.0 | |
servers: | |
- url: 'https://pudo.com.np/web/' | |
info: | |
title: Web Adaptor Service | |
description: >- | |
Provides endpoints to integrate PUDO in web page | |
version: '1.0' | |
paths: | |
'/locations': |
##Enum implementation ###Implementation 1
enum Day
{
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY;
}
###Implementation 1
This file contains hidden or 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 java.io.File; | |
public class CleanWASTrash { | |
private static String ROOT_PATH = "C:\\Users\\devkoa1\\Desktop\\test"; | |
public static void main(String... strings) { | |
try { | |
System.out.println("-----------------------------Clean WAS started -------------------------------------"); | |
// deleteDirectory(new File(ROOT_PATH + "\\config\\temp\\")); |
This file contains hidden or 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
#include "colors.inc" | |
#include "stones.inc" | |
#include "textures.inc" | |
#include "shapes.inc" | |
#include "glass.inc" | |
#include "metals.inc" | |
#include "woods.inc" | |
global_settings { ambient_light White } | |
global_settings{max_trace_level 10} |
This file contains hidden or 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 application; | |
import java.io.File; | |
import javax.xml.bind.JAXBContext; | |
import javax.xml.bind.JAXBException; | |
import javax.xml.bind.Marshaller; | |
import javax.xml.bind.Unmarshaller; | |
import domain.Address; |
This file contains hidden or 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 enum Error { | |
DATABASE(0, "A database error has occured."), | |
DUPLICATE_USER(1, "This user already exists."); | |
private final int code; | |
private final String description; | |
private Error(int code, String description) { | |
this.code = code; | |
this.description = description; |
This file contains hidden or 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
@Around("execution(* cs544.spring.bank.service.*.*(..))") | |
public Object invoke(ProceedingJoinPoint call ) throws Throwable { | |
StopWatch sw = new StopWatch(); | |
sw.start(call.getSignature().getName()); | |
Object retVal = call.proceed(); | |
sw.stop(); | |
long totaltime = sw.getLastTaskTimeMillis(); | |
System.out.println("Time taken :" +totaltime); | |
return retVal; | |
} |
This file contains hidden or 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
CREATE TABLE `cdr` ( | |
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`calldate` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', | |
`clid` VARCHAR(80) NOT NULL DEFAULT '', | |
`src` VARCHAR(80) NOT NULL DEFAULT '', | |
`dst` VARCHAR(80) NOT NULL DEFAULT '', | |
`dcontext` VARCHAR(80) NOT NULL DEFAULT '', | |
`lastapp` VARCHAR(200) NOT NULL DEFAULT '', | |
`lastdata` VARCHAR(200) NOT NULL DEFAULT '', | |
`duration` FLOAT UNSIGNED NULL DEFAULT NULL, |
This file contains hidden or 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
[general] | |
static=yes | |
writeprotect=No | |
autofallthrough=No | |
clearglobalvars=No | |
priorityjumping=No | |
;------------------------------------------------------ | |
[Default] | |
include=>python |