- https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data
- https://github.com/eligrey/FileSaver.js/
- Why threre is no way to download file using ajax request?
- Using jquery ajax to download a binary file
- https://stackoverflow.com/questions/16086162/handle-file-download-from-ajax-post
- https://stackoverflow.com/questions/38975718/how-to-download-excel-xls-file-from-api-in-postman
- http://www.freeformatter.com/mime-types-list.html
- Downloading a file from spring controllers
- https://github.com/hellokoding/uploadingfiles-springboot
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
--- | |
+++ | |
@@ -1,69 +1,68 @@ | |
-define( | |
-'v_pub_billform', | |
+define( | |
+<#if defComponentId ??>'${_component_id}',</#if> | |
['jquery', 'knockout','formula', | |
-'/iwebap/pages/20080EBR/billform.controller.js', | |
+'${ctx}${getNodePath("${ctx}","${default_node_path}","${extend_node_path!''}","${hyext_node_path!''}","billform.controller.js")}/billform.controller.js', |
Github markdown, syntax highlight of code blocks in the table cell (http://stackoverflow.com/a/29981184/4685522)
import Foo from './foo';
|
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
/** | |
* Unflatten NC ref data | |
* | |
* https://gist.github.com/xxd3vin/2dc682f6996ac962bbfbfd7977ef6c1a | |
* | |
* input: | |
* | |
* ```json | |
* [ | |
* { |
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
//res = {}; | |
var item, area, project, chuchai, | |
areaname, projectname, | |
ret = {}; | |
for ( i in res.data ) { | |
item = res.data[i]; | |
areaname = item.areaname; | |
projectname = item.projectname; | |
if (!ret[areaname]) ret[areaname] = {}; // 创建深圳节点 |
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
{ | |
"apps": [{ | |
"name": "ssc30-admin-app", | |
"cwd": "/var/www/ssc_web", | |
"script": "app_admin.js", | |
"log_date_format": "YYYY-MM-DD HH:mm Z", | |
"error_file": "./log/app_admin_err.log", | |
"out_file": "./log/app_admin_out.log", | |
"env": { | |
"PORT": "3001" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 2016 by d3vin | |
* https://gist.github.com/xxd3vin/ed525567e20dd5e6fc5f44e40143caaf | |
* | |
* Convert UUID (hex string) to 128 bits | |
* - msb: most significant 64 bits | |
* - lsb: least significant 64 bits | |
* | |
* Source code borrow from: https://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/id/NodeId.java | |
* |