Skip to content

Instantly share code, notes, and snippets.

View teguhteja's full-sized avatar

IB Teguh TM teguhteja

View GitHub Profile
@teguhteja
teguhteja / _ide_helper.php
Last active September 12, 2015 14:50 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.1 (LTS) on 2015-06-11.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {

Keybase proof

I hereby claim:

  • I am teguhteja on github.
  • I am teguhteja (https://keybase.io/teguhteja) on keybase.
  • I have a public key ASCspCtQSXpYrdxcAkVSIj-VG3ID_uwgHdoqIielKQg2DAo

To claim this, I am signing this object:

@teguhteja
teguhteja / EmailSendingServlet.java
Last active February 1, 2020 07:31
Email Sending Servlet
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package email;
import java.io.IOException;
import javax.servlet.ServletContext;
@teguhteja
teguhteja / send_email.jsp
Created February 1, 2020 07:29
Form Send Email in jsp with AJAX JQuery
<%--
Document : send_email
Created on : Jan 31, 2020, 3:34:58 PM
Author : teguhteja
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
@teguhteja
teguhteja / EmailUtility.java
Created February 1, 2020 07:34
Servlet for sending enail
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package email;
/**
*
* @author teguhteja
@teguhteja
teguhteja / launch4j.run
Created February 3, 2020 06:05
Configurasi launch4j for dontwrapped
<?xml version="1.0" encoding="UTF-8"?>
<!--Launch4j executor script generated by Launch4jInt module. Do not modify, modifications will be overwritten anyway.-->
<project basedir="." default="all" name="Launch4jExecutor">
<property location="/home/teguhteja/Downloads/launch4j" name="launch4j.dir"/>
<property location="/home/teguhteja/NetBeansProjects/GUILaunch4j01/nbproject/launch4jconfig.xml" name="launch4j.config"/>
<echo>Configuring Launch4j and generating executable for GUILaunch4j01 project:</echo>
<target name="all">
<taskdef classname="net.sf.launch4j.ant.Launch4jTask" classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar" name="launch4j"/>
<launch4j>
<config dontWrapJar="false" headerType="gui" jar="<your jar files>"
@teguhteja
teguhteja / DemoShape.java
Created February 4, 2020 05:47
Simple draw shape 2D using Java Swing Netbeans
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package gui5shape.demo;
import java.awt.Color;
import java.awt.Graphics;
@teguhteja
teguhteja / NewPanel.java
Created February 6, 2020 06:53
overridden paintComponent(Graphics g) or paint(Graphics g)
/**
*
* @author teguhteja
*/
import java.awt.*;
import javax.swing.*;
// Extend JPanel to override its paintComponent() method:
class NewPanel extends JPanel {
@teguhteja
teguhteja / SimpleCopyApplication.java
Last active March 23, 2020 11:24
Example GUI For Test Swing Application
package com.ttm.testswingmaven;
import static javax.swing.SwingUtilities.invokeAndWait;
import static org.assertj.swing.aut.util.swing.ButtonUtil.addActionToButton;
import static org.assertj.swing.aut.util.swing.ButtonUtil.newButton;
import static org.assertj.swing.aut.util.swing.LabelUtil.newLabel;
import static org.assertj.swing.aut.util.swing.TextFieldUtil.newTextField;
import java.lang.reflect.InvocationTargetException;
@teguhteja
teguhteja / SimpleCopyApplicationTest.java
Last active March 23, 2020 11:23
Test of SimpleCopyApplication
package com.ttm.testswingmaven;
import org.assertj.swing.aut.getting_started.SimpleCopyApplication;
import org.assertj.swing.edt.FailOnThreadViolationRepaintManager;
import org.assertj.swing.edt.GuiActionRunner;
import org.assertj.swing.fixture.FrameFixture;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;