Skip to content

Instantly share code, notes, and snippets.

View doggy8088's full-sized avatar
🙂
Giving is a reward in itself

Will 保哥 doggy8088

🙂
Giving is a reward in itself
View GitHub Profile
@doggy8088
doggy8088 / Global.asax.cs
Last active June 2, 2023 00:45
ReferenceLoopHandling for ASP.NET Web API
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace WebApiSample
@doggy8088
doggy8088 / Serialize_Deserialize_Test.cs
Created June 13, 2013 11:40
當試圖序列化系統內建的型別之後,若試圖反序列化為 object 型別一定會引發錯誤,請問在 Main() 方法不修改的情況下,如何讓這段程式正常運作?
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
public enum Order
{
Ascending,
Descending
}
@doggy8088
doggy8088 / Program.cs
Created October 20, 2015 14:14
使用動態型別取得特定實體的內容
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
@doggy8088
doggy8088 / Angular 2 開發實戰:新手入門篇 實作環境說明.md
Last active May 21, 2022 13:35
Angular 2 開發實戰:新手入門篇實作環境說明

Angular 2 開發實戰:新手入門篇 實作環境說明

實作環境說明

為了能讓大家能在課堂上順利地進行實作,請先將需要的軟體全部安裝好,以下是安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

@doggy8088
doggy8088 / web.config
Created January 17, 2017 15:39
將 Angular 2 含有路由機制的 SPA 網頁應用程式部署到 IIS 網站伺服器
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SPA" stopProcessing="true">
<match url=".*" />
<action type="Rewrite" url="/" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
@doggy8088
doggy8088 / VS2015: Views\Shared\Error.cshtml
Created April 19, 2017 16:52
Visual Studio 2017 中 ASP.NET MVC 5 專案範本的 \Views\Shared\Error.cshtml 內容錯誤
@model System.Web.Mvc.HandleErrorInfo
@{
ViewBag.Title = "錯誤";
}
<h1 class="text-danger">錯誤。</h1>
<h2 class="text-danger">處理您的要求時發生錯誤。</h2>
@doggy8088
doggy8088 / Angular 17 Dev Setup.md
Last active April 22, 2024 23:59
Angular 17 開發環境說明

Angular 17 開發環境說明

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

Angular LOGO

[ 作業系統 ]

  • Windows 10 以上版本
  • Mac OS X 10.6 以上版本
@doggy8088
doggy8088 / .gitconfig
Last active September 1, 2017 17:44
常用的 Git Alias 定義
[alias]
st = status
sts = status -s
co = checkout
ci = commit
br = branch -a
re = remote
di = diff
dump = cat-file -p
type = cat-file -t