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
$("[name='sales_items[qty][]'],[name='sales_items[price][]'],[name='sales_items[discount][]']").unbind("keyup").bind("keyup", function(){ | |
var qty = $(this).parent().parent().find("[name='sales_items[qty][]']").autoNumericGet({aSep: '.', aDec: ',',aPad:true,vMax:100000000000000000}) ; | |
var price = $(this).parent().parent().find("[name='sales_items[price][]']").autoNumericGet({aSep: '.', aDec: ',',aPad:true,vMax:100000000000000000}) ; | |
var disc = $(this).parent().parent().find("[name='sales_items[discount][]']").autoNumericGet({aSep: '.', aDec: ',',aPad:true,vMax:100000000000000000}) ; | |
var total = qty*price | |
var minus = (disc/100)*total ; | |
total = total-minus ; | |
$(this).parent().parent().find("[name='sales_items[total][]']").autoNumericSet(total,{aSep: '.', aDec: ',',aPad:true,vMax:100000000000000000}); | |
}) ; |
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
+----+--------------------+-------+--------+--------------------------------------------------+---------------------------------+---------+------------------------------+--------+-----------------------------------------------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+--------------------+-------+--------+--------------------------------------------------+---------------------------------+---------+------------------------------+--------+-----------------------------------------------------+ | |
| 1 | PRIMARY | NULL | NULL | NULL | NULL | NULL | NULL | NULL | Impossible WHERE noticed after reading const tables | | |
| 3 | DEPENDENT SUBQUERY | rh | ALL | PRIMARY |
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
<?php | |
/** | |
* @author Wildan Maulana, OpenThink Labs | |
* Script sederhana untuk memeriksa apakah server Anda siap digunakan untuk disetup sebagai | |
* IdP bagi layanan Google Apps | |
*/ | |
if(!function_exists('openssl_get_privatekey')) { | |
echo("<div style='color:red;border:1px solid red;'>Maaf, Instalasi PHP Anda tidak dikompilasi dengan dukungan OpenSSL</div><br/>"); | |
} else { | |
echo("<div style='color:blue;border:1px solid blue;'>Ok, Sepertinya PHP Anda sudah dikompilasi dengan dukungan OpenSSL</div><br/>"); |
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
/** | |
* SmartCrop.cpp | |
* | |
* http://opencv.openthinklabs.com/2016/03/mencari-countour-terbesar-crop-kemudian-simpan-sebagai-gambar-yang-baru.html | |
*/ | |
#include <iostream> | |
#include "opencv2/opencv.hpp" | |
using namespace cv; |
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
/** | |
* SmartCrop2.cpp | |
* | |
* http://opencv.openthinklabs.com/2016/03/smartcrop2.html | |
*/ | |
#include <iostream> | |
#include "opencv2/opencv.hpp" | |
using namespace cv; |
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
/**Filename : QRCode.java | |
* @see http://java.openthinklabs.com/2016/06/membaca-qrcode-dengan-zxing.html | |
*/ | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.util.HashMap; | |
import java.util.Map; | |
import javax.imageio.ImageIO; | |
import java.awt.image.BufferedImage; |
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 | |
/usr/bin/java -Xmx64m -Xms16m -Delasticsearch '-Des.path.home="/usr/share/elasticsearch"' '-Des.default.path.conf="/usr/share/elasticsearch/config"' '-Des.default.config=/usr/share/elasticsearch/config/elasticsearch.yml' -cp '":/usr/share/java/lucene-join-4.10.4.jar:/usr/share/java/jna.jar:/usr/share/java/lucene-spatial-4.10.4.jar:/usr/share/java/lucene-benchmark-4.10.4.jar:/usr/share/java/lucene-analyzers-smartcn-4.10.4.jar:/usr/share/java/lucene-queries-4.10.4.jar:/usr/share/java/lucene-demo-4.10.4.jar:/usr/share/java/log4j-1.2-1.2.17.jar:/usr/share/java/lucene-replicator-4.10.4.jar:/usr/share/java/lucene-analyzers-morfologik-4.10.4.jar:/usr/share/java/lucene-test-framework-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-grouping-4.10.4.jar:/usr/share/java/lucene-analyzers-icu-4.10.4.jar:/usr/share/java/lucene-analyzers-kuromoji-4.10.4.jar:/usr/share/java/lucene-analyzers-phonetic-4.10.4.jar:/usr/share/java/spatial4j-0.4.1.jar:/usr/share/java/lucene-memory-4. |
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/sh | |
. /usr/share/elasticsearch/bin/classpath.in.sh | |
CDPATH="" | |
SCRIPT="$0" | |
# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path. | |
while [ -h "$SCRIPT" ] ; do | |
ls=`ls -ld "$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
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: banksoal | |
-- ------------------------------------------------------ | |
-- Server version 5.5.40-0ubuntu0.14.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
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
jQuery(function(){ | |
$("#jam_ke").select2({ | |
placeholder: "Pilih Jam Pelajaran", | |
allowClear: false | |
}); | |
$("#jam_ke").select2('focus'); | |
$('#mulai').mask('99:99'); | |
$('#selesai').mask('99:99'); | |
$('#mulai').timepicker({ timeFormat: 'HH:mm' }); |
OlderNewer