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 | |
echo"Frist PHP on Github"; | |
?> |
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 math | |
import time | |
import datetime | |
def tm(yy,mm,dd): | |
s = str(dd) + "/" + str(mm) + "/" + str(yy) | |
return time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple()) | |
y = 2017 | |
m = 2 |
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
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
<key>NSExceptionDomains</key> | |
<dict> | |
<key>metrosystems.co.th</key> | |
<dict> | |
<key>NSExceptionAllowsInsecureHTTPLoads</key> | |
<true/> |
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
<VirtualHost *:80> | |
Alias /icard "C:/xampp/htdocs/icard/public" | |
# Rewrite all requests in /icard to server index.php | |
<Location /icard> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ /icard/index.php [L] |
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
# | |
# This is the Apache server configuration file providing SSL support. | |
# It contains the configuration directives to instruct the server how to | |
# serve pages over an https connection. For detailed information about these | |
# directives see <URL:http://httpd.apache.org/docs/2.4/mod/mod_ssl.html> | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure | |
# consult the online docs. You have been warned. | |
# |
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 | |
namespace Library; | |
class Util{ | |
/** | |
* Generate an asset path for the application. | |
* | |
* @param string $path |
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
"autoload": { | |
"psr-4": { | |
"App\\": "app/", | |
"Library\\": "app/Library" | |
} | |
}, |
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
'disks' => [ | |
'ftp' => [ | |
'driver' => 'ftp', | |
'host' => 'xxxx', | |
'port' => 21, | |
'username' => 'xxxx', | |
'password' => 'xxxx', | |
'passive' => false, | |
'utf8' => true |
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.ajax({ | |
url: API_URL, | |
data: {header : headerTitle, data : bodyJson}, | |
method: 'POST', | |
cache:false, | |
xhrFields:{ | |
responseType: 'blob', | |
withCredentials: true | |
}, | |
success: function(result){ |
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
function exportXLSX(blob){ | |
if (typeof window.navigator.msSaveBlob === 'function') { | |
window.navigator.msSaveBlob(blob, "export-" + new Date().getTime() + ".xlsx"); | |
} else { | |
var link = document.createElement('a'); | |
link.href = window.URL.createObjectURL(blob); | |
link.download = "export-" + new Date().getTime() + ".xlsx"; | |
document.body.appendChild(link); | |
link.click(); | |
} |
OlderNewer