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
{ | |
"name": ".NET Core Remote Attach", | |
"type": "coreclr", | |
"request": "attach", | |
"processId": "${command:pickRemoteProcess}", | |
"pipeTransport": | |
{ | |
"debuggerPath": "~/vsdbg/vsdbg", | |
"pipeCwd": "${workspaceFolder}", |
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; | |
namespace ListFunc | |
{ | |
class Program | |
{ | |
static void 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
// Let's consider two objects, declared elsewhere | |
var viewModel = ViewmModel; | |
var car = ViewModel.Car; | |
//now let's crate a shallow Binding | |
Binding shallowBinding = new Binding(); | |
shallowBinding.Source = ViewModel.Car; | |
shallowBinding.Path = new PropertyPath(nameof(car.Name)”); | |
shallowBinding.Mode = BindingMode.OneWay; |
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
List<float> floatList= intList.Select(r => r as float).ToList(); |
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
{ | |
"dependencies": { | |
"Microsoft.NETCore.App": "1.1.0" | |
}, | |
"frameworks": { | |
"netcoreapp1.1": { | |
"imports": [ | |
"netcoreapp1.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
#include <ArduinoJson.h> | |
#include <DallasTemperature.h> | |
#include <DHT.h> | |
//Let's say we have some DHT sensors | |
#define DHTPIN 2 | |
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 | |
DHT dht(DHTPIN, DHTTYPE); | |
//And let's say we've got DS18B20 |
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
#ifndef _SENSORPH_h | |
#define _SENSORPH_h | |
#define calibration_point_4 2560 //Write here your measured value in mV of pH 4 | |
#define calibration_point_7 2363 //Write here your measured value in mV of pH 7 | |
#define calibration_point_10 2168 //Write here your measured value in mV of pH 10 | |
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
// SensorEC.h | |
#ifndef _SENSOREC_h | |
#define _SENSOREC_h | |
#if defined(ARDUINO) && ARDUINO >= 100 | |
#include "arduino.h" | |
#else | |
#include "WProgram.h" | |
#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
<Window x:Class="MapDemo.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:MapDemo" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="720" Width="1280" MinWidth="1282" MinHeight="720" MaxWidth="1280" MaxHeight="720" | |
DataContext="{Binding RelativeSource={RelativeSource Self}}"> |