This file contains hidden or 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
interface IBaseDef { | |
key: PropertyKey; | |
value: string | number; | |
} | |
type ToPropertyPrefix<N extends string = ''> = N extends '' ? '' : `${N}_`; | |
type ToProperty< | |
Property extends string, | |
N extends string = '', |
This file contains hidden or 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
yum install -y centos-release-scl | |
yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ | |
source /opt/rh/devtoolset-8/enable | |
gcc -v | |
vi .bashrc |
This file contains hidden or 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"> | |
<title>App</title> | |
<meta name="viewport" content="width=device-width"> | |
<base href="/" /> | |
<style> | |
.water-waves { |
This file contains hidden or 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 useDataApi = (initialUrl, initialData) => { | |
const [url, setUrl] = useState(initialUrl); | |
const [state, dispatch] = useReducer(dataFetchReducer, { | |
isLoading: false, | |
isError: false, | |
data: initialData, | |
}); | |
useEffect(() => { |
This file contains hidden or 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 { createSoapClient, createSoapHeader } from '../lib/amadeus' | |
import { writeJson, requestXml, requestJson } from '../util/apiJson' | |
import OrderService from '../service/order' | |
import { getPayAmount } from '../service/flights/getPayAmount' | |
import Str from '../db/redis/str' | |
exports.PNRAddMultiElements = async function (req, res) { | |
const data = req.body | |
const searchInput = buildQuery(data) | |
const validate = validateAge(data) |
This file contains hidden or 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
void function(){ | |
var Base64 = { | |
// private property | |
_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
// public method for encoding | |
encode : function (input) { | |
var output = ""; | |
var chr1, chr2, chr3, enc1, enc2, enc3, enc4; | |
var i = 0; |
This file contains hidden or 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
public async drawActivityPoster() { | |
const {windowWidth} = wx.getSystemInfoSync() | |
const width = windowWidth * 80 / 100 | |
const ctx = wx.createCanvasContext('poster') | |
this.drawText({ | |
text: '我的店铺', | |
ctx :ctx, | |
x: 0, | |
y: 100, | |
fontSize: 14, |
This file contains hidden or 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
[{"numberOfPax":{"segmentControlDetails":{"quantity":"1","numberOfUnits":"1"}},"passengersID":[{"travellerDetails":{"measurementValue":"1"}}],"fareInfoGroup":{"emptySegment":null,"pricingIndicators":{"priceTariffType":"I","productDateTimeDetails":{"departureDate":"180818"},"companyDetails":{"otherCompany":"EY"}},"fareAmount":{"monetaryDetails":{"typeQualifier":"B","amount":"3140","currency":"AED"},"otherMonetaryDetails":[{"typeQualifier":"E","amount":"1123.00","currency":"CAD"},{"typeQualifier":"712","amount":"1537.03","currency":"CAD"}]},"textData":[{"freeTextQualification":{"textSubjectQualifier":"4","informationType":"15"},"freeText":"18AUG18AUH EY NYC Q2.50Q40.84 811.38NUC854.72END ROE3.672750"},{"freeTextQualification":{"textSubjectQualifier":"1","informationType":"1P3"},"freeText":"PENALTY APPLIES"},{"freeTextQualification":{"textSubjectQualifier":"1","informationType":"10"},"freeText":"NON ENDO/ REF -BG:EY"},{"freeTextQualification":{"textSubjectQualifier":"1","informationType":"1A49"},"freeText":"- DA |
This file contains hidden or 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
.content-box { | |
width:200px; | |
height: 200px; | |
box-sizing: content-box; | |
padding: 10px; | |
border: 10px solid #f46; | |
margin: 10px; | |
} | |
This file contains hidden or 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
{ | |
"messageActionDetails": { | |
"messageFunctionDetails": { | |
"messageFunction": "183", | |
"additionalMessageFunction": "M1" | |
} | |
}, | |
"itineraryDetails": { | |
"originDestinationDetails": { | |
"origin": "YVR", |
NewerOlder