Skip to content

Instantly share code, notes, and snippets.

View anugrahbsoe's full-sized avatar

Anugrah Bagus S anugrahbsoe

View GitHub Profile
FlappyBird (0.1) suroboyo; urgency=low
* Initial release.
-- Anugrah Bagus S <anugrahbsoe@cek.pm> Sun, 09 March 2014 20:40:42 +0300
Source: FlappyBird
Section: Games
Priority: optional
Maintainer: Anugrah Bagus Susilo <newbieilmu@gmail.com>
Standards-Version: 3.9.1
Build-Depends: cdbs, debhelper (>= 7.3.5)
Package: FlappyBird
Architecture: i386
Depends: maleo ,gnome-common
index.html /usr/share/FlappyBird
normalize.css /usr/share/FlappyBird
style.css /usr/share/FlappyBird
js.js /usr/share/FlappyBird
jquery.min.js /usr/share/FlappyBird
bird.png /usr/share/pixmaps
FlappyBird.desktop /usr/share/applications
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
@anugrahbsoe
anugrahbsoe / Autonomer
Created June 1, 2014 15:08
Autonumber
//pasang saat form di load
autoNomer("Aturan_Tidak", "T", JFrame.EXIT_ON_CLOSE); //("nama tabel database","string depan",frame)
//method
public String autoNomer(String tabel,String strAwal,Integer pnj){
String auto="";
try{
java.sql.Statement stat=connect.createStatement();
ResultSet rs=stat.executeQuery("select * from "+tabel);
@anugrahbsoe
anugrahbsoe / resizeablescrollpanetexarea
Created December 15, 2014 11:37
membuat textarea dan scrollpane resizable
//membuat textarea dan scrollpane resizable
scrollPane = new JScrollPane();
scrollPane.setAutoscrolls(true);
scrollPane.setBounds(120, 330, 524, 72);
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
contentPane.add(scrollPane);
txtSolusi = new JTextArea();
@anugrahbsoe
anugrahbsoe / FrmArahan
Created December 19, 2014 06:21
Menampilkan arahan di posisi E
//===============Cari method tampilTabel(); kemudian ganti kodennya jadi ini
public void tampilTabel() {
if(lblId.getText().contains("E")){
try {
hapusIsiTabel();
Connection con = (Connection) Koneksi.getKoneksi();
Statement state = (Statement) con.createStatement();
String query = "select distinct Target.IdKerusakan,Kerusakan.NmKerusakan from Target,Kerusakan where Kerusakan.IdKerusakan = Target.IdKerusakan and Target.IdGejala='"+lblId.getText()+"'";
ResultSet rs = (ResultSet) state.executeQuery(query);
@anugrahbsoe
anugrahbsoe / KonfigurasiServerSide
Created December 20, 2014 04:23
Konfigurasi Server/Host Database Mysql
- Trik setting akses host mysql server
//akses mysql menggunakan user (u) dan password (p)
mysql -u root -p
//masuk ke mysql
Enter password:
mysql> use mysql;
//berikan akses penuh untuk user menggunakan IP - IP kita adalah 180.251.179.200/ip dari salamweb
mysql> GRANT ALL ON *.* to root@'180.251.179.200' IDENTIFIED BY 'root';
//flush hak akes
mysql> FLUSH PRIVILEGES;