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 Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.Metadata.Builders; | |
namespace Experiment.Lib | |
{ | |
public sealed class BranchContext : DbContext | |
{ | |
public DbSet<Order> Orders { get; set; } | |
// Uncommenting this causes a different migration to be generated. |
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.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public static class Program | |
{ | |
public static async Task Main(string[] args) | |
{ |
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.Linq; | |
using System.Text; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var game = GameGenerator.NewGame(); |
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
@Echo off | |
REM Locates the (dynamic) IP Address of a Raspberry Pi on a network | |
REM Note that with Git Bash, it's possible to invoke batch scripts | |
REM This lets you do something like this: | |
REM $ ssh your-login@$(./find-pi.bat) | |
Set "PiMac=b8-27-eb" | |
Set "Range=172.16.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
from itertools import permutations | |
import math | |
X = 'X' | |
O = 'O' | |
_ = ' ' | |
def inter_value_differences(values): |