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
<!DOCTYPE html> | |
<html lang='en'> | |
<head> | |
<!-- Latest compiled and minified CSS --> | |
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' integrity='sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u' crossorigin='anonymous'> | |
<!-- Optional theme --> | |
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css' integrity='sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp' crossorigin='anonymous'> | |
<!-- jquery of google CDN --> | |
<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> |
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
/** | |
* The checker to check string can or can't change to number. | |
* | |
* @author kamontat | |
* @version 1.0 | |
* @since Mon 06/Mar/2017 - 7:39 PM | |
*/ | |
public class Checker { | |
/** | |
* check input string must contains digit and <b>dot</b> ONLY. |
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.view.gui.lib; | |
import java.awt.*; | |
/** | |
* utilities with dimension and screen display. | |
* | |
* @author kamontat | |
* @version 1.3 | |
* @since 1/30/2017 AD - 1:47 PM |
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
#!/bin/bash | |
# go to current directory | |
cd "$(dirname "$0")" |
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
import java.util.*; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* timer/stopwatch object that for measure elapsed time running in java. | |
* <p> | |
* Contains | |
* <ol> | |
* <li>parse timer api: {@link #MStoS(long)} or {@link #NStoS(long)}</li> | |
* <li>Error message: {@link #getError()} or {@link #getErrors()}</li> |
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
#!/bin/bash | |
INPUT=false | |
ACTION="" | |
CODE="" | |
while getopts 'iD:E:h' flag; do | |
case "${flag}" in | |
i) INPUT=true ;; | |
D) ACTION="D" && CODE="$OPTARG" ;; |
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
#!/bin/bash | |
# make sure that you give permission to this file | |
# run chmod 755 atom-plugin.sh | |
# or chmod +x atom-plugin.sh | |
# ----------------------------------------- | |
# command setting | |
if ! command -v apm >/dev/null 2>&1 && ! command -v apm-beta >/dev/null 2>&1; then | |
echo "you don't have commandline interface, install it!" |
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
// file name unnecessary to match with annotation name | |
// Target must matching (if not you will cannot get from annotations) | |
@Target(AnnotationTarget.VALUE_PARAMETER) | |
annotation class JsonKey(val key: String) |
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
object GHObjectBuilder { | |
// build function | |
fun <T : Any> build(tClass: KClass<T>, json: JsonObject): T? { | |
// check primary constructor | |
if (tClass.primaryConstructor == null) return null | |
// create parameter mapping | |
val map: HashMap<KParameter, Any?> = HashMap<KParameter, Any?>() | |
// for each paramete in constructor | |
tClass.primaryConstructor!!.parameters.forEach { | |
param -> |
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
filter.lfs.required=true | |
filter.lfs.clean=git-lfs clean -- %f | |
filter.lfs.smudge=git-lfs smudge -- %f | |
filter.lfs.process=git-lfs filter-process | |
user.name=kamontat | |
user.email=kamontat_c@hotmail.com | |
core.excludesfile=/Users/kamontat/.gitignore_global | |
core.autocrlf=input | |
difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE" | |
difftool.sourcetree.path= |
OlderNewer