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
/*! | |
* Socket.IO v4.5.3 | |
* (c) 2014-2022 Guillermo Rauch | |
* Released under the MIT License. | |
*/ | |
(function(global, factory) { | |
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | |
typeof define === 'function' && define.amd ? define(factory) : | |
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.acyOfficialWebsiteUseIO = factory()); | |
})(this, (function() { |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"parser": "@typescript-eslint/parser", | |
"extends": [ | |
"plugin:@typescript-eslint/recommended", | |
"plugin:react/recommended", | |
"plugin:prettier/recommended", |
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
let pFetch = fetch | |
if(!fetch){ | |
pFetch = require('node-fetch') | |
} | |
const url = 'http://numbersapi.com' | |
//const url = 'https://api.tvmaze.com/search/shows?q=batman' |
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
var paintLifeCircleOnMap = function(geojsonFilePath, errorCB) { | |
if (!EmbedMap) { | |
errorCB("地圖程式未正確載入!"); | |
return; | |
} | |
if (geojsonFilePath) { | |
try { | |
EmbedMap.clearDrawing(); | |
EmbedMap.addVector({ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- (webapp)/META-INF/context.xml --> | |
<!-- use hikari connectionPool to init multiple dataSource --> | |
<!-- dependencies: HikariCP-3.1.0.jar, mssql-jdbc-6.4.0.jre8.jar, ojdbc6.jar they both implements JDBC 4.0--> | |
<Context> | |
<Resource | |
name="jdbc/hikariOracle" | |
auth="Container" |
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
PatternLayoutConvension = %d{MM-dd HH:mm:ss} %-5p [%C{1}]: %m %n | |
PathToYourLogFile = ..../..../....../ | |
# Root logger option | |
log4j.rootLogger= INFO, console, file | |
# seperated PatternLayout ConvensionPattern | |
log4j.logger.heaveyDebugger = INFO, heaveyDebugger |
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
/* | |
a node.js api end point , query 2 times via mongoose, first query by orderId that get OrderInfo, which incllude a vendorId, | |
then use vendorId to query VendorInfo, finally send OrderInfo and VendorInfo to client | |
*/ | |
const Order = require('./Order'); | |
const VendorModel = require('../Vendor'); |
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
@Override | |
public void doPost(HttpServletRequest request, HttpServletResponse response) | |
throws IOException { | |
OutputStream os = null; | |
try { | |
URL url = new URL(urlStr); | |
URLConnection urlConnection = url.opervlet.nConnection(); |
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
// SWT裡不知道哪裡來 invoke了這裡,但這就像填空題, 你只要確保這個method out.flush出去的是正確的 byte array 後面的步驟就應該也是對的 | |
public boolean createpdf(String filename) { | |
PostMethod post = null; | |
boolean result; | |
OutputStream os = null; | |
try { | |
/* |
NewerOlder