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
public class HelloWorld{ | |
public static void main(String[] xxx){ | |
System.out.println("Hello World") | |
} | |
} |
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
public void methodYangHarusDivalidasi(Object param1, Object param2) { | |
// validasi param | |
if(param1 == null){ | |
throw new IllegalArgumentException("tidak boleh null"); | |
// throw otomatis mengakhiri method | |
} | |
if(!param1.getClass().isAssignableFrom(BigDecimal.class)){ | |
// tidak usah diproses |
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
# Eclipse | |
.settings | |
.metadata | |
.project | |
.classpath | |
Servers | |
bin | |
target | |
# SpringSource Tool Suite |
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
springVersion = "3.0.5.RELEASE" | |
springSecurityVersion = "3.0.5.RELEASE" | |
slf4jVersion = "1.6.1" | |
logbackVersion = "0.9.27" | |
jodaTimeVersion = "1.6.2" | |
sourceCompatibility = 1.6 | |
subprojects { | |
apply plugin: 'java' | |
apply plugin: 'eclipse' |
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
git filter-branch -f --index-filter 'git rm -r --cached --ignore-unmatch target .settings .project .classpath .springBeans \*/target\* \*/.settings\* \*/.springBeans \*/.project \*/.classpath ' HEAD |
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
ffmpeg -r 1 -t 1 -vframes 1 -i input-file.mp4 output-file.png |
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 JRUBY_HOME=/opt/jruby | |
export PATH=$PATH:$JRUBY_HOME/bin |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd | |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> | |
<context:property-placeholder location=" | |
classpath*:jdbc.properties, |
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
@Controller | |
public class LoketController { | |
@RequestMapping("/loket/json") | |
@ResponseBody | |
public Map<String, Object> loketJson(){ | |
Loket l = new Loket(); | |
l.setId(100); | |
l.setKode("L-001"); | |
l.setNama("Loket 001"); |
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
rsync -avzPH /opt/downloads/backups /media/DATA2/ |
OlderNewer