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
// https://stackoverflow.com/questions/23429600/how-do-i-make-a-dot-graph-representing-a-binary-tree-more-symmetric | |
digraph G | |
{ | |
nodesep=0.4; //was 0.8 | |
ranksep=0.5; | |
label="((10 - 25) + (40 * 50))" | |
{ node[style=invis, label=""]; cx_root; } |
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
[bpm@Mac] c:~/playground/JoyBits>dotnet run | |
00000042 | |
0000000000000042 | |
0000000000000000 [oopsie] | |
0000000021000000 (as BE) [This is fine] | |
0000002100000000 (as LE) [Swapped back] | |
[bpm@Mac] c:~/playground/JoyBits>ssh [email protected] ./JoyBits | |
00000042 | |
0000000000000042 | |
0000000000000000 [oopsie] |
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
namespace App.Shared.Dto; | |
public class RecordingDto | |
{ | |
public long RecordingId { get; set; } | |
public bool HasTemplate { get; set; } | |
public bool IsEnabled { get; set; } |
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
builder | |
.WebHost | |
.ConfigureKestrel((context, options) => | |
{ | |
string keyPem = "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----"; | |
string certPem = "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----"; | |
options.ListenAnyIP(8080, listenOptions => | |
{ |
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
" remove any unwanted vi behavior as soon as possible | |
" must be first because actually has a great number of side effects | |
" | |
" is probably redundant, but I'm paranoid | |
set nocompatible | |
if !exists("g:source_base") | |
let g:source_base = "~bpm/.vim" | |
endif |
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.Runtime.Versioning; | |
using SharpMetal.ObjectiveCCore; | |
namespace SharpMetal.Examples.Common | |
{ | |
[SupportedOSPlatform("macos")] | |
public class NSApplication | |
{ | |
public IntPtr NativePtr; |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net8.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
</Project> |
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 MimeKit; | |
using MailKit; | |
using MailKit.Search; | |
using MailKit.Security; | |
using MailKit.Net.Imap; | |
namespace MailKitDownloadImap; | |
class Program | |
{ |
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
Main XAML: | |
<TableView Intent="Data" HasUnevenRows="true"> | |
<TableRoot> | |
<TableSection | |
Title="Images" | |
x:Name="ImagesTableSection"> | |
</TableSection> |
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/bash | |
set -e | |
GNU_GETOPT=getopt | |
# TODO: icky | |
if [ -d "/usr/local/Cellar/gnu-getopt/2.39/bin" ]; then | |
GNU_GETOPT="/usr/local/Cellar/gnu-getopt/2.39/bin/getopt" | |
fi |
NewerOlder