Hardware:
- Raspberry Pi 4 (4GB RAM)
- Micro SD card 32GB
- 2x Integral USB 3.1 flash drives 128GB
OS:
- Raspbian Buster
| private BluetoothAdapter mBluetoothAdapter = null; | |
| private BluetoothDevice mmDevice = null; | |
| private BluetoothSocket mmSocket = null; | |
| private Stream mmOutputStream; | |
| private Stream mmInputStream; | |
| private void FindPrinter() | |
| { |
| /* | |
| jTable 2.4.0 | |
| http://www.jtable.org | |
| --------------------------------------------------------------------------- | |
| Copyright (C) 2011-2014 by Halil İbrahim Kalkan (http://www.halilibrahimkalkan.com) | |
| Permission is hereby granted, free of charge, to any person obtaining a copy |
| FROM mcr.microsoft.com/mssql/server:latest as base | |
| USER root | |
| LABEL MAINTAINER=DNMOFT | |
| EXPOSE 80 | |
| EXPOSE 1433 | |
| EXPOSE 443 | |
| ENV ACCEPT_EULA=Y | |
| ENV SA_PASSWORD=Code1234, | |
| #ENV MSSQL_PID=Enterprise | |
| ENV MSSQL_TCP_PORT=1433 |
| namespace MyDotNetCore.App | |
| { | |
| using Microsoft.AspNetCore.Identity.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore; | |
| public class ApplicationDbContext : IdentityDbContext | |
| { | |
| public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) | |
| : base(options) | |
| { | |
| } |
| public static void SetDefaultDataType(this ModelBuilder modelBuilder) | |
| { | |
| foreach (var entity in modelBuilder.Model.GetEntityTypes().Where(x => x.ClrType.GetCustomAttribute(typeof(TableAttribute)) != null)) | |
| { | |
| var entityClass = entity.ClrType; | |
| foreach (var property in entityClass.GetProperties().Where(p => p.PropertyType == typeof(string) | |
| && p.PropertyType.IsPublic && p.CanWrite | |
| && !Attribute.IsDefined(p, typeof(ColumnAttribute)) | |
| && !Attribute.IsDefined(p, typeof(NotMappedAttribute)))) |
| # This goes in your Microsoft.PowerShell_profile.ps1 (can find the path via $PROFILE in your prompt) | |
| Import-Module -Name posh-git,oh-my-posh,Terminal-Icons | |
| Set-PoshPrompt -Theme craver |
| title | subtitle | author | date | source | notoc |
|---|---|---|---|---|---|
Dotnet Core Cheat Sheet |
This cheat sheet is courtesy Ben Day |
Ben Day |
August 22, 2017 |
false |
This cheat sheet is courtesy Ben Day and is available here. This Markdown file is just for easy reference for programmers.
| public-cdn.bblmw.com | |
| makerworld.bblmw.com | |
| event.bblmw.com | |
| e.bambulab.com | |
| us.mqtt.bambulab.com | |
| api.bambulab.com |