This file contains hidden or 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.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Security.Cryptography; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains hidden or 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
void Dummy() | |
{ | |
// so that we have at least one object file | |
} |
This file contains hidden or 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.Collections.Generic; | |
using System.Text; | |
namespace StackMachineTreeConstruction | |
{ | |
public class Class1 | |
{ | |
enum TokenType | |
{ |
This file contains hidden or 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.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
public class BindablePasswordBox : ContentControl | |
{ | |
private static void OnPasswordPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) | |
{ | |
var bindablePasswordBox = (BindablePasswordBox)d; | |
bindablePasswordBox.OnPasswordPropertyChanged((string)e.OldValue, (string)e.NewValue); |
This file contains hidden or 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
// This program only mapps the Latin-1 and Latin-1 Supplement code range but can be extended to support anything | |
function mkInterval(a) { | |
return [a[0], a[1], a[1] - a[0]] | |
} | |
function adj(a, b) { | |
return (a[0] + 1 == b[0]) | |
&& (a[1] + 1 == b[1]) | |
&& (a[2] == b[2]) |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"flag" | |
"fmt" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"log" |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"go/ast" | |
"go/build" | |
"go/parser" | |
"go/token" | |
"io/ioutil" |
This file contains hidden or 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
"/MDd", | |
"/Zi", | |
"/FS", | |
"/W4", // warning level 4 | |
"/we4013", // undefined; assuming extern returning int | |
"/we4020", // different types for formal and actual parameter | |
"/we4024", // too many actual parameters | |
"/we4047", // differs in levels of indirection | |
"/we4244", // 'conversion' conversion from 'type1' to 'type2', possible loss of data | |
// "/we4456", // declaration of '...' hides previous local declaration (issue with glew.c) |
This file contains hidden or 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
static class CSV | |
{ | |
public struct Record | |
{ | |
public readonly string[] Row; | |
public string this[int index] => Row[index]; | |
public Record(string[] row) | |
{ |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace EventSourcingExample | |
{ | |
struct Event | |
{ |
OlderNewer