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
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
public class MultiStream : Stream | |
{ | |
IList<Stream> _streamList = new List<Stream>(); | |
long position = 0; | |
public override bool CanRead |
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
using System; | |
using System.Drawing; | |
using System.Drawing.Drawing2D; | |
using System.Drawing.Imaging; | |
using System.IO; | |
namespace Barbar.IsoTexture | |
{ | |
class Program { | |
static int Main(string[] args) { |
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 class ProxyXmlWriter : XmlWriter | |
{ | |
private XmlWriter _writer; | |
public ProxyXmlWriter(XmlWriter writer) | |
{ | |
_writer = writer; | |
} | |
protected override void Dispose(bool disposing) |
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
var oFrame = document.createElement("iframe"); | |
oFrame.src = "https://barbar-conan.blogspot.com/2019/10/test.html"; | |
oFrame.onload = function() { | |
oFrame.contentWindow.postMessage({ msg: 'hi'}, 'https://gist.github.com'); | |
} | |
document.childNodes[0].childNodes[1].appendChild(oFrame); |
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.Text; | |
var @object = JObject.Parse(File.ReadAllText(@"C:\temp\swagger.json")); | |
var stream = new MemoryStream(); | |
using var writer = new CustomizedJsonWriter(new StreamWriter(stream)); | |
writer.QuoteName = false; | |
writer.Indentation = 4; |