Skip to content

Instantly share code, notes, and snippets.

💻
Coding... coding.. coding.... and coding..!

Hendi Santika hendisantika

💻
Coding... coding.. coding.... and coding..!
Block or report user

Report or block hendisantika

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ContactController.java
//Method Only
@SuppressWarnings("rawtypes")
@RequestMapping(value = "/cityGridView", method = RequestMethod.GET)
public @ResponseBody
Object[] showLineChart(Map<String, Object> map, HttpServletRequest request,
HttpServletResponse response) {
List<MapTable> list = contactService.fin();
Object[] rows = new Object[list.size()];
int i = 0;
@hendisantika
hendisantika / PHPExcel_Basics.md
Created Dec 1, 2015 — forked from r-sal/PHPExcel_Basics.md
PHPExcel Notes and code snippets
View PHPExcel_Basics.md

Basics

Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

View MenuAccordion.java
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import javax.swing.JCheckBox;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.event.MouseAdapter;
@hendisantika
hendisantika / shinobiUI.JAVA
Created May 12, 2013
Shinobi CRUD with JAVA and SQLite
View shinobiUI.JAVA
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hendi.shinobi.ui;
import java.sql.SQLException;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
@hendisantika
hendisantika / DBConnection.java
Created May 12, 2013
Shinobi CRUD with JAVA and SQLite
View DBConnection.java
package hendi.shinobi.ui;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
* @author Agus Sumarna
*/
public class DBConnection {
@hendisantika
hendisantika / DBConnection.java
Created May 12, 2013
Shinobi CRUD with JAVA and SQLite
View DBConnection.java
package hendi.shinobi.ui;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
* @author Agus Sumarna
*/
public class DBConnection {
@hendisantika
hendisantika / DBConnection.java
Created May 12, 2013
Shinobi CRUD with JAVA and SQLite
View DBConnection.java
package hendi.shinobi.ui;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
/**
* @author Agus Sumarna
*/
public class DBConnection {
@hendisantika
hendisantika / gist:8ad18a4aee26003eaaa6ee986fd8ffa4
Created Feb 16, 2017 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1
View gist:8ad18a4aee26003eaaa6ee986fd8ffa4

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@hendisantika
hendisantika / rm_mysql.md
Created Apr 5, 2017 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX
View rm_mysql.md

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql
    
View soap-curl-shell
# request.xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wst="http://sensedia.com/repository/wstoolkit">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>system</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">manager</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">DWk64SMfJ6RxHAKgPRGtPA==</wsse:Nonce>
<wsu:Created>2013-04-17T18:36:54.013Z</wsu:Created>
</wsse:UsernameToken>
You can’t perform that action at this time.