Skip to content

Instantly share code, notes, and snippets.

View edward-hsu-1994's full-sized avatar
💭
I may be slow to respond.

Edward Hsu edward-hsu-1994

💭
I may be slow to respond.
View GitHub Profile
@edward-hsu-1994
edward-hsu-1994 / Zoura-Order.md
Last active September 8, 2021 15:10
Zoura筆記

訂單(Order)

使用訂單可以簡化交易預定流程,搭配多個不同的訂單操作(Order Action)可以建立複雜的交易結構,便於管理。

訂單的組成

  1. 訂單本體(Order): 與客戶合約,可以影響同一個發票擁有者帳號的多個Subscription或Order Line Items,而這些項目可以由多個客戶擁有。
  2. 訂單的操作(Order Action): Create Subscription、Addition Product、Renewal,每張訂單可有多個操作並且個別操作可對一個Subscription操作
  3. 訂單數量變化(Order Delta Metrics): 異動量
  4. 基於訂單的項目(Order Line Items): 一次性費用之類的
@edward-hsu-1994
edward-hsu-1994 / Program.cs
Last active October 27, 2020 12:03
Thread搭配Queue實現多Worker任務分發
/**
* Author: XuPeiYao
* License: MIT
* Summary: Thread搭配Queue實現多Worker任務分發
*/
using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq;
using System.Threading;
[
{
"Id": 1,
"type": 1,
"title": "Registry",
"description": "Docker image registry",
"administrator_only": false,
"image": "registry:latest",
"repository": {
"url": "",
@edward-hsu-1994
edward-hsu-1994 / PDF.cs
Last active July 29, 2019 07:26
PDF套版
using iTextSharp.text;
using iTextSharp.text.pdf;
using System;
using System.Collections;
using System.IO;
namespace PDFForm {
class Program {
static void Main(string[] args) {
version: '3'
services:
# 主要PostgreSQL伺服器
pg1:
image: 'crunchydata/crunchy-postgres:centos7-11.4-2.4.1'
environment:
- PG_DATABASE=postgres
- PG_PRIMARY_PORT=5432
- PG_MODE=primary
- PG_USER=postgres
public static string Test2(string str) {
if (str.Length == 0) return str;
return str[str.Length - 1] + Test2(str.Substring(0, str.Length - 1));
}
public static string Test3(string str) {
if (str.Length < 4) return str;
return Test3(str.Substring(0, str.Length - 3)) + "," + str.Substring(str.Length - 3);
}
using System;
namespace ConsoleApp2 {
class Program {
static void Main(string[] args) {
int p = Rev(1000000003);
int p2 = FacZeroCount(50);
}
var m = /\[t\:[^\]]+\]/g;
var temp= [];
var origin_temp = document.querySelectorAll("*");
for(var i = 0 ; i < origin_temp.length ; i++ ){temp.push(origin_temp[i]);}
temp = temp.filter(x=>x.children.length == 0).filter(x=>m.test(x.innerHTML));
console.log(temp);

在Linode架設站台與安裝docker環境與簡單的網頁控制介面(2019/1/19)

一、前往 Linode 官網,點選右上方的Log in

Imgur

二、輸入帳號密碼

Imgur

<!DOCTYPE html>
<!-- saved from url=(0093)file:///D:/Projects/MagicModules/MagicModules.StaticResource/Static/ErrorPages/404/index.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>維護中</title>
<style>
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)