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
#!/bin/sh | |
# https://bbs.archlinux.org/viewtopic.php?id=150620 | |
# xinit homm2.xinitrc -- :1 | |
startx -- -depth 16 homm2.xinitrc :1 |
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.Collections.Generic; | |
public static class ObjectHelper | |
{ | |
public static IEnumerable<T> AsEnumerable<T>(this T self) | |
{ | |
yield return self; | |
} | |
} |
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.Concurrent; | |
using System.Threading.Tasks; | |
public interface ILogger | |
{ | |
void Log(string message); | |
} | |
class AsyncLogger : ILogger, IDisposable |
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
<?php | |
/// Start of a PayPal fee calculator that I'll probably never finish. :-[ | |
/* | |
Given: | |
total(cost, fee) := cost + fee(cost) | |
fee(cost) := F + P*cost | |
F := $0.30 | |
P := 2.9% |
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 Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace UnitTests | |
{ | |
/// <summary> | |
/// Fluent interface for expected exceptions. | |
/// </summary> | |
/// <example> | |
/// Expect.Exception(() => DoSomethingBad()) |
NewerOlder