Skip to content

Instantly share code, notes, and snippets.

View Lorex's full-sized avatar

Lorex Lorex

View GitHub Profile
{
"resourceType": "Observation",
"id": "example",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "69464-6",
"display": "The CMS service level for this EMS encounter."
{
"resourceType": "Observation",
"id": "example",
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "75910-0",
"display": "Canadian triage and acuity scale [CTAS]"
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
const filePath ='./1.jpg';
const fd = new FormData();
fd.append('upload', fs.createReadStream(filePath));
axios.post('https://be39d823ea4c.ngrok.io/image/upload', fd, {
headers: fd.getHeaders()
{
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
// ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
// o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
// A set of basic code conventions designed to encourage quality and consistency
// across your Sails app's code base. These rules are checked against
// automatically any time you run `npm test`.
//
// > Note: If you're using mocha, you'll want to add an extra override file to your
// > `test/` folder so that eslint will tolerate mocha-specific globals like `before`
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
<template>
<div>
<div class="card-body">
<h5 class="card-title">這是用戶 {{ id }}</h5>
<p class="card-text">毫無反應,就是一張卡片</p>
<a href="#" class="btn btn-primary">有種戳我R!!</a>
</div>
</div>
</template>
@Lorex
Lorex / 姓名產生器.js
Created March 1, 2019 16:20
姓名產生器.js
function random_chinese_name() {
function random(a, l) {
var x = [];
x.push(a[Math.ceil(Math.random() * a.length)]);
while (l > 1) {
x.push(a[Math.ceil(Math.random() * a.length)]);
l--;
}
return x.join("");
}
@Lorex
Lorex / line_bot_py.py
Last active October 25, 2020 19:03
python line bot
from flask import Flask, request, abort
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions import (
InvalidSignatureError
)
from linebot.models import (
MessageEvent, TextMessage, TextSendMessage,
main: {
navbar: [{
index: 0,
name: 'magazine',
title: '生活誌',
child: [{
index: 0,
name: 'event',
title: '服務體驗',
child: [{
MerchantTradeNo:DECADEORDER21345d97d
MerchantTradeDate:2018/01/04 09:40:16
TotalAmount:3580
TradeDesc:Decade 商城
ItemName:Decade 商品
ReturnURL:http://60.249.179.125:1337/order/paid
ChoosePayment:ALL
PlatformID:
MerchantID:2000132
InvoiceMark:N