Skip to content

Instantly share code, notes, and snippets.

@darkthread
darkthread / false-sharing-demo.html
Created October 14, 2018 14:06
False Sharing 發生原因
View false-sharing-demo.html
<html>
<head>
<style>
body {
width: 720px;
height: 480px;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@darkthread
darkthread / main.cs
Created June 21, 2017 06:25
FromCsv issue on unmatched { or [
View main.cs
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與源頭保持同步
View gist:ae3f31823fc975b1b90f13fbb073b893

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