Skip to content

Instantly share code, notes, and snippets.

View rido-min's full-sized avatar
💭
coding

Rido rido-min

💭
coding
View GitHub Profile
@rido-min
rido-min / taco_ignore
Created November 6, 2015 00:00
Default VS TACO .gitignore
# .gitignore
[Pp]lugins/android.json
[Pp]lugins/windows.json
[Pp]lugins/wp8.json
[Pp]lugins/remote_ios.json
[Pp]latforms/
@rido-min
rido-min / reset-wsl.sh
Created September 11, 2017 06:20 — forked from ishu3101/reset-wsl.sh
Resetting your Windows Subsystem for Linux (WSL) Environment
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
msbuild /t:Restore;Rebuild /p:AppxBundlePlatforms="X86" /p:AppxBundle=Never /p:UapAppxPackageBuildMode=CI /p:Configuration=Release /p:Platform="x86" /p:AppxPackageSigningEnabled=false
class Program
{
async static Task GetFirstAudioDevice()
{
DeviceInformationCollection deviceInfoCollection = await DeviceInformation.FindAllAsync(DeviceClass.Location);
Console.WriteLine("The number of Location device:" + deviceInfoCollection.Count);
for (int i = 0; i < deviceInfoCollection.Count; i++)
{
DeviceInformation deviceInfo = await DeviceInformation.CreateFromIdAsync(deviceInfoCollection[i].Id, null, deviceInfoCollection[i].Kind);
@rido-min
rido-min / GetFrameworkPackages.ps1
Created November 18, 2018 07:22
GetFrameworkPackages
Get-AppxPackage | where {$_.IsFramework -eq "True"} | ft Name, Architecture, IsBundle, SignatureKind, Status
@rido-min
rido-min / rm-dotnetSDK.ps1
Created November 19, 2018 04:11
Uninstall all dotnet SDKs
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match "Microsoft .NET Core SDK"
}
Write-Host $app.Name
Write-Host $app.IdentifyingNumber
pushd $env:SYSTEMROOT\System32
$app.identifyingnumber |% { Write-Host $_; Start-Process msiexec -wait -ArgumentList "/x $_ /quiet" }
@rido-min
rido-min / ActivateAppx.ps1
Created November 21, 2018 01:20
ActivateAppx
function Start-Locally {
param(
[Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)]
[string] $ID <# package.appxmanifest//Identity@name #>
)
$package = Get-AppxPackage $ID
$manifest = Get-appxpackagemanifest $package
$applicationUserModelId = $package.PackageFamilyName + "!" + $manifest.package.applications.application.id
Write-Host "ActivateApplication: " $applicationUserModelId
add-type -TypeDefinition $code

Reactive MVVM on the .NET Platform

nb: I'm not happy with this title, feel free to change it.

abstract

Tune in for Jeff and Geoff to learn about reactive programming. A paradigm that allows you to express the idea around a feature in one readable place, abstract mutable state away from your user interfaces and improve the testability of your application.

runsheet

{
"runtimeOptions": {
"tfm": "netcoreapp3.0",
"framework": {
"name": "Microsoft.WindowsDesktop.App",
"version": "3.0.0-preview3-27504-2"
},
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
@rido-min
rido-min / dnh.cmd
Last active September 12, 2019 23:52
docker run -it -v %CD%:/app node:latest /bin/bash