Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@darkthread
darkthread / main.cs
Created June 21, 2017 06:25
FromCsv issue on unmatched { or [
using System.Linq;
using ServiceStack;
using ServiceStack.Text;
using System.Collections.Generic;
using ServiceStack.Text.Common;
public class POCO {
public string Prop1 { get; set; }
public string Prop2 { get; set; }
public string Prop3 { get; set; }
@darkthread
darkthread / gist:ae3f31823fc975b1b90f13fbb073b893
Last active August 25, 2018 01:31 — forked from CristinaSolana/gist:1885435
讓Fork與源頭保持同步

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@darkthread
darkthread / false-sharing-demo.html
Created October 14, 2018 14:06
False Sharing 發生原因
<html>
<head>
<style>
body {
width: 720px;
height: 480px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@darkthread
darkthread / ms-learn-lang-switch.js
Created July 7, 2023 13:01
MS Learn 文件快速中英切換
// ==UserScript==
// @name 本草綱目中英快速切換
// @namespace https://blog.darkthread.net
// @version 0.1
// @description MS Learn 文件中英文切換
// @author You
// @match https://learn.microsoft.com/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=microsoft.com
// @grant none
// ==/UserScript==