Skip to content

Instantly share code, notes, and snippets.

View khannedy's full-sized avatar
👀
Orang Ganteng dan Intelek

Eko Kurniawan Khannedy khannedy

👀
Orang Ganteng dan Intelek
View GitHub Profile
@khannedy
khannedy / StartTime.java
Created September 5, 2011 13:11
Eksplorasi Fitur JTimeLabel pada Framework JWidget StripBandunk
jTimeLabel1.startTimer();
@khannedy
khannedy / License.txt
Created September 6, 2011 09:03
Apache License 2
Copyright 2011 StripBandunk
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@khannedy
khannedy / Code.java
Created September 20, 2011 02:12
Contoh Posting Code
Long size = repository.count();
Group group = new Group();
group.setName("Administrator");
controller.processCreate(group);
Assert.assertNotNull(group.getId());
Assert.assertNotNull(group.getCreatedDate());
Assert.assertNotNull(group.getLastModifiedDate());
@khannedy
khannedy / Form.java
Created September 22, 2011 13:18
JLayer Demo
PanelMahasiswa panelMahasiswa = new PanelMahasiswa();
LayerUI<PanelMahasiswa> layerUI = new MyLayer();
JLayer<PanelMahasiswa> jLayer = new JLayer<PanelMahasiswa>(panelMahasiswa, layerUI);
getContentPane().add(jLayer);
@khannedy
khannedy / CreateTable.sql
Created September 22, 2011 16:58
Membuat Pagination Sederhana di PHP dan Combo Box HTML
--
-- Table structure for table `employees`
--
CREATE TABLE IF NOT EXISTS `employees` (
`employee_id` int(6) NOT NULL DEFAULT '0',
`first_name` varchar(20) DEFAULT NULL,
`last_name` varchar(25) NOT NULL
) ENGINE=InnoDB;
@khannedy
khannedy / DisplayTable.php
Created September 23, 2011 01:52
Membuat Pagination Sederhana di PHP dan Combo Box HTML 2
<table border="1">
<thead>
<tr>
<th>Employee Id</th>
<th>First name</th>
<th>Last Name</th>
</tr>
</thead>
<tbody>
<?php
@khannedy
khannedy / InstallSinatra.sh
Created September 24, 2011 01:28
Membuat Website di Ruby Menggunakan Sinatra
gem install sinatra
@khannedy
khannedy / compile-finish.sh
Created September 24, 2011 03:54
Kompilasi JGlassPane
echo@echo-ubuntu:~/Desktop/JGlassPane$ mvn compile
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] JGlassPane
[INFO] JGlassPaneTest
[INFO] JGlassPane Framework
[INFO]
[INFO] ------------------------------------------------------------------------
@khannedy
khannedy / AddMessageComponent.java
Created September 24, 2011 05:21
Pesan Transparan JGlassPane
component = new MessageComponent();
glassPane.addGlassPaneComponent(component);
@khannedy
khannedy / BasicApp.java
Created September 26, 2011 06:53
Basic Configuration Apache Log4j
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.belajarlog4j;
import org.apache.log4j.BasicConfigurator;