Skip to content

Instantly share code, notes, and snippets.

Angular 10 開發環境說明

為了能讓大家能夠順利的建立起 Angular 10 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

  • Windows 7 以上版本 (更新到最新 Service Pack 版本)
  • Mac OS X 10.6 以上版本

[ 套件管理器 ( Mac OS X Only ) ]

@NestorHuang
NestorHuang / Signature.js
Created July 31, 2019 09:13
e首發票 Signature Javascript版本
var sha256 = function sha256(ascii) {
function rightRotate(value, amount) {
return (value>>>amount) | (value<<(32 - amount));
};
var mathPow = Math.pow;
var maxWord = mathPow(2, 32);
var lengthProperty = 'length'
var i, j; // Used as a counter across the whole file
var result = ''
@NestorHuang
NestorHuang / Signature.java
Last active July 31, 2019 09:11
e首發票Signature Java版 Ver2
import java.util.*;
import java.math.BigInteger;
import java.security.MessageDigest;
public class Main {
public static void main(String[] args) throws Exception {
String _timeStamp = "1496419339";
String _hashSalt = "909043347504457A92EA5565778A26C6";
System.out.println(getSHA256(_timeStamp+_hashSalt));
@NestorHuang
NestorHuang / AppendOrder.cs
Created September 15, 2017 03:24
e首發票C#呼叫新增訂單Sample Code
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
namespace POC.HttpClientSample
{
class Program
@NestorHuang
NestorHuang / backup.sql
Created May 18, 2017 02:27
SQL Backup Script
/*---------------------------------------------------- 
description: 備份所有資料庫
author: Nestor
date: 2014/03/25
testing code: 
-----------------------------------------------------
EXEC proc_Backup_All_DataBase 
-----------------------------------------------------*/
CREATE procedure [dbo].[proc_BACKUP_All_DataBase] 
@NestorHuang
NestorHuang / SHA256.java
Last active July 31, 2019 09:10
e首發票 Signature,Java版 Ver 1
import java.util.*;
import java.lang.*;
import java.io.*;
import java.security.*;
import java.nio.*;
public class Main
{
public static void main (String[] args) throws java.lang.Exception
{
@NestorHuang
NestorHuang / PayByEsunWebATM.html
Last active September 30, 2016 05:46
Post玉山WebATM付款
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<div>
<form action="http://web2.systemlead.com/SLService/Pay/EsunWebATM" method="post">
@NestorHuang
NestorHuang / yasu.js
Created August 5, 2016 09:29
耶穌保佑圖
// |~~~~~~~|
// | |
// | |
// | |
// | |
// | |
// |~.\\\_\~~~~~~~~~~~~~~xx~~~ ~~~~~~~~~~~~~~~~~~~~~/_//;~|
// | \ o \_ ,XXXXX), _..-~ o / |
// | ~~\ ~-. XXXXX`)))), _.--~~ .-~~~ |
// ~~~~~~~`\ ~\~~~XXX' _/ ';)) |~~~~~~..-~ _.-~ ~~~~~~~
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MenuDemo.Controls