Skip to content

Instantly share code, notes, and snippets.

@dimMaryanto93
dimMaryanto93 / BatchProcessing.java
Last active August 11, 2016 04:34
Membuat table Mahasiswa di database MariaDB/MySQL
package belajar.jdbc;
import belajar.jdbc.model.Jurusan;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
@dimMaryanto93
dimMaryanto93 / VariabelDate.java
Last active July 30, 2016 16:35
Java - Variable dan Scope
import java.time.LocalDate;
import java.util.Date;
public class VariableDate{
public static void main(String[] args) {
LocalDate localDate = LocalDate.now();
System.out.println("java.time.LocalDate : "+localDate);
Date date = new Date();
System.out.println("java.util.Date : "+date);
}
@dimMaryanto93
dimMaryanto93 / BelajarList.java
Created August 5, 2016 04:00
Elements collection di Java
public class BelajarList{
public static void main(String[] args){
java.util.List<String> daftarEmails = new java.util.ArrayList<String>();
daftarEmails.add("[email protected]");
System.out.println("Email pertama: "+daftarEmails.get(0));
daftarEmails.set(0, "[email protected]");
System.out.println("Email setelah diset: "+daftarEmails.get(0));
@dimMaryanto93
dimMaryanto93 / .gitlab-ci.yml
Last active December 16, 2020 15:01
Belajar Java WEB dengan Servlet
stages:
- test
- build
variables:
MAVEN_CLI_OPTS: "--show-version"
cache:
paths:
- .m2/repository
package com.maryanto.dimas.bootcamp.example.query.hql.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.math.BigDecimal;
@Data
@AllArgsConstructor
@dimMaryanto93
dimMaryanto93 / AppAutowired.java
Last active September 16, 2016 12:37
Spring Framework IOC
package com.hotmail.dimmaryanto.software;
import com.hotmail.dimmaryanto.software.beans.RefBean;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
public static void main(String[] args) {
ApplicationContext springContext = new ClassPathXmlApplicationContext("/SpringConfig.xml");
@dimMaryanto93
dimMaryanto93 / HaloController.java
Last active October 11, 2016 23:22
Spring Web MVC
package com.hotmail.dimmaryanto.software.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HaloController {
@RequestMapping("/halo")
@dimMaryanto93
dimMaryanto93 / aritmath.js
Last active November 4, 2016 22:42
JavaScript fundamental
var bil1 = 10;
var bil2 = 20;
console.log("bil1 : " + bil1 + "; bil2 : " + bil2 + ";\n \n");
var result = null;
result = bil1 + bil2;
console.log("bil1 + bil2 : " + result);
result = bil1 * bil2;
@dimMaryanto93
dimMaryanto93 / jaspersoft-studio.ini
Created February 23, 2017 00:13
Jaspersoft - Slow in Ubuntu 16.10
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.GTK_version
2
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.300.v20150602-1417
-data
@noDefault
--launcher.defaultAction
openFile
-vm
@dimMaryanto93
dimMaryanto93 / xmind.ini
Last active July 28, 2018 11:37
xmind Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
# install or extract the xmind into /opt/xmind then just replace this configuration into but
# if your OS is :
# x64 replace to /opt/xmind/XMind_amd64/XMind.ini or
# x86 replace to /opt/xmind/XMind_i386/XMind.ini
-configuration
/opt/xmind/XMind_amd64/./configuration
-data
/opt/xmind/XMind_amd64/../workspace
-startup
/opt/xmind/XMind_amd64/../plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar