Skip to content

Instantly share code, notes, and snippets.

View ImUser773's full-sized avatar

Champ Patyathawee Pongpayak ImUser773

View GitHub Profile
@ImUser773
ImUser773 / bitbucket-api-with-groovy.md
Created April 18, 2019 07:58
bitbucket-api-with-groovy.md
@ImUser773
ImUser773 / Docker.yaml
Last active October 25, 2018 10:26
How to install wkhtmltopdf on Debian GNU/Linux 9 (stretch)
# Install wkhtmltopdf on Debian GNU/Linux 9 (stretch)
RUN apt-get update
RUN apt-get install wget
RUN mkdir wkhtmltopdf
RUN cd wkhtmltopdf
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
RUN apt-get install -y libfreetype6
RUN apt-get -y install libjpeg62-turbo
RUN apt-get -y install libpng16-16
<android.support.design.widget.AppBarLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
<?php
define('HOST','');
define('USER','');
define('PASS','');
define('DB','');
$con = mysqli_connect(HOST,USER,PASS,DB);
if(!$con){
die("Connect failed" . mysqli_connect_error());
}
<android.support.design.widget.FloatingActionButton
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_add"
app:backgroundTint="@color/orange"
app:borderWidth="0dp"
app:elevation="6dp"
app:fabSize="normal" >
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_menu_add" />
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.iam_dav.googlemap.MainActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
list_order.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
public boolean onItemLongClick(final AdapterView<?> arg0, View arg1, final int arg2, long arg3) {
AlertDialog.Builder builder = new AlertDialog.Builder(menu.this);
builder.setTitle("ลบเมนูอาหาร");
builder.setMessage("คุณต้องการลบเมนูอาหารใช่หรือไม่?");
builder.setPositiveButton("ใช่", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
addArray.remove(addArray.get(arg2));
list_order.invalidateViews();;
RequestQueue requestQueue = Volley.newRequestQueue(menu.this);