Skip to content

Instantly share code, notes, and snippets.

View qt91's full-sized avatar
🎯
Focusing

Thinh Nguyen qt91

🎯
Focusing
View GitHub Profile
@qt91
qt91 / js-log.js
Last active February 25, 2019 04:09
js-log
/**
* Khi log 1 object nếu object có quá nhiều cấp sẽ hiển thị không đủ thông tin [Array]...
* Sử dung cách convert sang String sẽ giúp xem được hết thông tin
*/
console.log(JSON.stringify(results, null, 4));
this.dataTable = $this.dtOptions = $this.DTOptionsBuilder.newOptions()
.withOption('ajax', {
url :'order/datatables',
type:'GET',
data:function(data){
if(angular.isDate($this.date.start)){
data.date_start = $this.$filter('date')($this.date.start, "yyyy-MM-dd 00:00:00");
}
if(angular.isDate($this.date.end)){
data.date_end = $this.$filter('date')($this.date.end, "yyyy-MM-dd 23:59:99");
- Edit app permissions in the Android Manifest
@qt91
qt91 / CI.htaccess
Created September 9, 2014 12:03
File htaccess remove "index.php" in Codeigniter
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]