Skip to content

Instantly share code, notes, and snippets.

package com.qinti.eptp.util;
/**
* Created by adildramdan on 5/6/15.
*/
/**
* This class will convert numeric values into an english representation
* <p>
* For units, see : http://www.jimloy.com/math/Milyar.htm
package com.qinti.eptp.web.rest.report;
import com.qinti.eptp.domain.user.EPerusahaan;
import com.qinti.eptp.domain.user.User;
import com.qinti.eptp.exception.ResourceNotFoundException;
import com.qinti.eptp.repository.buktipotong.BPA1Repository;
import com.qinti.eptp.repository.user.UserRepository;
import com.qinti.eptp.security.SecurityUtils;
import com.qinti.eptp.service.DirectoryService;
import com.qinti.eptp.service.report.*;
@adilkurniaramdan
adilkurniaramdan / CORSFilterConfig.java
Created June 4, 2015 03:46
CORSFilterConfig.java
package com.qinti.vi.config;
/**
* Created by adilramdan on 29/08/14.
*/
import org.springframework.context.annotation.Configuration;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
File OdbcConnection.java
import java.sql.Connection;
import java.sql.DriverManager;
/**
*
* @author adildramdan
*/
public class OdbcConnection {
class : DjpWs.class
public String ProsesXmlLengkap(String AlamatFileXML, String NPWP) {
String respon = null;
String pathKeystoreLocation = sCtx.getInitParameter("keystoreLocation");
String passwordKeystore = sCtx.getInitParameter("passwordKeystore");
logger.info("[ProsesXMLLengkap] Processing file [" + NPWP + "]");
try {
String AlamatWrapped = sCtx.getInitParameter("pathWrapped");
logger.debug("[ProsesXMLLengkap] Parent direcory wrapped XML " + AlamatWrapped);
@adilkurniaramdan
adilkurniaramdan / angular-google-map piece of code
Created December 16, 2014 15:14
angular-google-map piece of code
angular.extend $scope,
rad:150
circles: []
markers: []
clickedMarker:
id: 0
title: ""
map:
control: {}
center:
<wizard class="form-horizontal" id="timeline">
<step title="Welcome">
<label for="title">Title (required):</label>
<input type="text" name="title" id="title" class="form-control"
required placeholder="Your Timeline Title" ng-model="currEL.title" />
<ul ng-show="$$prevSibling.step.title.$dirty && $$prevSibling.step.title.$invalid" class="ng-error-list">
<li ng-show="$$prevSibling.step.title.$error.required">An eventline, definitely, needs a title. Don't you think?</li>
</ul>
<!-- TODO: maybe use errors like this for every step -->
<!-- <errors> -->
/*
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
//Desa.Java
@Entity
@Table(name="desa")
public class Desa {
@Id @Column(name="ID")
private int id;
@Id @Column(name="NAME")
private String name;
@OneToMany(fetch = FetchType.EAGER, mappedBy = "desa")
private Set<Clan> clans = new HashSet<Clan>();
package com.qbiel.service;
import java.io.File;
import java.util.Vector;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.ChannelSftp.LsEntry;
import com.jcraft.jsch.SftpException;
import com.qbiel.conn.SftpConn;
public class ServiceSftp {