This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
body, html { | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*++ BUILD Version: 0073 Increment this if a change has global effects | |
Copyright (c) Microsoft Corporation. All rights reserved. | |
Module Name: | |
winnt.h | |
Abstract: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
class AppComponent extends React.Component { | |
state = { | |
numChildren: 0 | |
} | |
render () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class Base64Url | |
{ | |
public static string Encode(byte[] arg) | |
{ | |
if (arg == null) | |
{ | |
throw new ArgumentNullException("arg"); | |
} | |
var s = Convert.ToBase64String(arg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://stackoverflow.com/questions/11572636/set-value-to-fontdialog-in-wpf/11572921#11572921 | |
// http://blogs.msdn.com/b/text/archive/2006/11/01/sample-font-chooser.aspx | |
// 微软官方博客的字体选择器例子 | |
//WPF | |
System.Windows.Forms.FontDialog fontDialog = new System.Windows.Forms.FontDialog(); | |
if (fontDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) | |
{ | |
FontFamilyConverter ffc = new FontFamilyConverter(); | |
this.textAnnotation.FontSize = fontDialog.Font.Size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MIT License - Copyright (c) 2016 Can Güney Aksakalli | |
// https://aksakalli.github.io/2014/02/24/simple-http-server-with-csparp.html | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net.Sockets; | |
using System.Net; | |
using System.IO; |