This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="modal" id="confirmDialog" tabindex="-1" role="dialog" aria-labelledby="confirmDialog"> | |
<div class="modal-dialog modal-dialog-centered" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h6 class="modal-title">Confirm Dialog</h6> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2018 Pamarin.com | |
*/ | |
package com.pamarin.util; | |
import com.lowagie.text.Document; | |
import com.lowagie.text.DocumentException; | |
import com.lowagie.text.PageSize; | |
import com.lowagie.text.Rectangle; | |
import com.lowagie.text.pdf.PdfContentByte; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author jittagornp <http://jittagornp.me> | |
* create : 2017/10/09 | |
* | |
* ให้เชื่อมต่อไปที่ url ปลายทางทั้งหมด N urls แบบ Asynchronous HTTP GET โดยใช้ Image Object มาช่วย | |
* ถ้า url ปลายทางไหน ไม่สามารถเชื่อมต่อได้ภายใน 1 วินาที ให้หยุดการเชื่อมต่อนั้น | |
* กรณีที่เชื่อมต่อแล้ว ไม่ว่าจะสำเร็จหรือไม่สำเร็จครบ N urls ให้ redirect ไปที่ TARGET_URL | |
*/ | |
(function(urls, redirectUrl) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mappings": { | |
"_default_": { | |
"_all": { | |
"enabled": true, | |
"norms": { | |
"enabled": false | |
} | |
}, | |
"dynamic_templates": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author jittagornp <http://jittagornp.me> | |
* create : 2016/11/29 | |
*/ | |
var app = angular.module('app', [ | |
'ui.bootstrap', | |
'ipCookie', | |
'ui.router', | |
'ngAnimate', | |
'ui-notification', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
@author jittagornp | |
create 28/12/2015 | |
--> | |
<div class="container"></div> | |
<style> | |
.container{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pamarin.api.util; | |
import java.awt.image.BufferedImage; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Map; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author jittagornp | |
* create 16/11/2015 | |
* | |
* require jQuery - https://code.jquery.com/jquery-1.11.3.min.js | |
* require numeral - https://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js | |
*/ | |
(function (document, $, numeral, SELECTOR) { | |
$(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pamarin.rest.api.exception; | |
import com.pamarin.api.exception.ApiAuthorizationException; | |
import com.pamarin.api.exception.AuthorizationException; | |
import com.pamarin.api.exception.AuthenticationException; | |
import com.pamarin.api.exception.entity.AlreadyExistTripException; | |
import com.pamarin.api.exception.entity.InvalidFieldException; | |
import com.pamarin.api.exception.entity.CommentNotFoundException; | |
import com.pamarin.api.exception.entity.TripNotFoundException; | |
import com.pamarin.api.exception.entity.TripPostNotFoundException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.pamarin.api.store; | |
import com.pamarin.api.util.BufferedImageUtils; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.Date; | |
import javax.imageio.ImageIO; | |
import net.coobird.thumbnailator.Thumbnails; | |
import net.coobird.thumbnailator.geometry.Positions; |
NewerOlder