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
... |
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
Impas - AQ na stoliku, małe na ręce, zagrywamy z ręki. | |
Ekspas - w dziadku kolor bez, na ręce bez koloru, ale są atu. Chcemy zgarnąć asa od przeciwnika. Gdy on zrzuca to my też. A gdy on asem to my atutem. Wychodzi dziadek. | |
Trzecia ręka bije i płacze | |
Lang albo blank (vist w singla) | |
X bez atu - bez wskazania koloru. | |
Nie pasuje się do "X bez atu" zazwyczaj. | |
Gdy popiera w kolorze to uzgadniamy pozostałe. vs Najpierw pokaż inne kolory a potem powtórz uzgadniany. |
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
moonshine - bimber |
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; | |
public static class ObjectExtensions | |
{ | |
public static TResult With<TInput, TResult>(this TInput o, Func<TInput, TResult> evaluator) | |
where TResult : class | |
where TInput : class | |
{ | |
if (o == null) return null; | |
return evaluator(o); |
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
List.map | |
List.filter | |
type Position = | |
struct | |
val X : int | |
val Y : int | |
new(x, y) = { X = x; Y = y} | |
end | |
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
set tabstop=4 shiftwidth=4 expandtab |
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
private IEnumerable<string> GetAlphabetVariations() | |
{ | |
char[] alphabet = "abcdefghijklmnopqrstuvwxyz".ToCharArray(); | |
foreach (var first in alphabet) | |
{ | |
foreach (var second in alphabet) | |
{ | |
yield return "" + first + second; | |
} |
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 struct Option<T> : IEquatable<Option<T>> | |
{ | |
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")] | |
public static readonly Option<T> None = new Option<T>(); | |
private readonly T _value; | |
private readonly bool _hasValue; | |
public T Value | |
{ | |
get |
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 Either<TSuccess, TFailure> | |
{ | |
private readonly TSuccess _success; | |
private readonly TFailure _failure; | |
private readonly bool _isSuccessful; | |
public bool Succeeded | |
{ | |
get | |
{ |
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
from functools import reduce | |
http://www.artima.com/weblogs/viewpost.jsp?thread=98196 | |
list("python") | |
https://docs.python.org/3/howto/functional.html | |
line_list = [' line 1\n', 'line 2 \n'] |
OlderNewer