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
const maxHeight = $(".bootstrap-select .dropdown-menu.inner").parent().css("max-height") | |
$(".bootstrap-select .dropdown-menu.inner").css("min-height", maxHeight) |
Loading
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
const searchEsResult = await es.search({ | |
index: 'helloworld', | |
body: { | |
from: 0, | |
size: 10, | |
min_score: 1.5, // 0~2 | |
query: { | |
function_score: { | |
query: { | |
bool: { |
Loading
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
var express = require('express'); | |
var router = express.Router(); | |
router.get("/test1/:address/:country", function (req, res, next) { | |
const name = req.query.name; | |
const number = req.query.number; | |
const address = req.params.address; | |
const country = req.params.country; | |
res.render("test1", { |
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
router.get("/test1", function (req, res, next) { | |
res.render("test1", { | |
user: { | |
name: "kewang", | |
}, | |
}); | |
}); |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> | |
<script> | |
$(function () { | |
$("input[name=drone]").on("change", 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
Private Sub GridView_add_Load(sender As Object, e As EventArgs) Handles GridView_add.Load | |
For i = 0 To GridView_add.Rows.Count - 1 | |
Dim animalAmount As TextBox = GridView_add.Rows(i).FindControl("TextBox_animalAmount") | |
Dim animalUnit As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_animalUnit") | |
Dim hidStoCoeff As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_stoCoeff") '腸胃甲烷係數 | |
Dim hidStoCoeffN As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_stoCoeffN") '腸胃甲烷係數次方 | |
Dim hidFecesCoeff As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_fecesCoeff") '糞尿甲烷係數 | |
Dim hidFecesCoeffN As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_fecesCoeffN") '糞尿甲烷係數次方 | |
Dim hidN2oCoeff As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_n2oCoeff") '糞尿氧化亞氮係數 | |
Dim hidN2oCoeffN As HiddenField = GridView_add.Rows(i).FindControl("HiddenField_n2oCoeffN") '糞尿氧化亞氮係數次方 |
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 bin_emissions(ByVal gasID As Integer) As Data.DataTable | |
Dim liEmissions As List(Of Pollute.GHG.Info.Gas.Emissions) = sysLogic.GetEmissionsList(gasID) | |
Dim dt As New Data.DataTable | |
dt.Columns.Add("years") | |
dt.Columns.Add("cow") | |
dt.Columns.Add("otherCow") | |
dt.Columns.Add("buffalo") | |
dt.Columns.Add("goat") | |
dt.Columns.Add("pig") | |
dt.Columns.Add("whiteBroiler") |
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
dim yearfirst as integer = 10000 | |
dim yearlast as integer = -1 | |
'先把首年跟最後一年取出來 | |
for each activity in liactivity | |
if activity.year > yearlast then | |
yearlast = activity.year | |
end | |
if activity.year < yearfirst then |
NewerOlder