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
| <div> | |
| {(() => | |
| { | |
| if (true) { | |
| return <AwesomeComponent /> | |
| } | |
| } | |
| )()} | |
| </div> |
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
| public class Handshake : IClientDatagram | |
| { | |
| public Handshake() | |
| { | |
| this.Header = new ClientHeader(); | |
| } | |
| public IClientHeader Header { get; set; } | |
| public byte AppVersion { get; private 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
| "browserify-shim": { | |
| "jquery": "$" | |
| }, | |
| "browserify": { | |
| "transform": [ | |
| "browserify-shim" | |
| ] | |
| }, |
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
| public async Task GetKeyValuePairs() | |
| { | |
| // Define our stored procedure and Sql database connection string. | |
| string connectionString = @"Data Source=SQL11Work\Dev;Initial Catalog=AdventureWorks2012;Integrated Security=True;Connect Timeout=15;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"; | |
| // Create an entity mapper that is mapped to our stored procedure. | |
| IEntityMapper mapper = EntityMapperFactory.CreateEntityMapperForProcedure("[dbo].[GetCityStates]"); | |
| mapper.MapToEntity<KeyValuePairResult<string, string>>() | |
| .DefineProperty(kvp => kvp.Key == "City") | |
| .DefineProperty(kvp => kvp.Value == "Name"); |
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
| /// <binding /> | |
| /* | |
| This file in the main entry point for defining Gulp tasks and using Gulp plugins. | |
| Click here to learn more. http://go.microsoft.com/fwlink/?LinkId=518007 | |
| */ | |
| var gulp = require('gulp') | |
| rimraf = require('rimraf'), | |
| concat = require('gulp-concat'), | |
| cssmin = require('gulp-cssmin'), |
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 BlogWeb.Models; | |
| @model IEnumerable<Blog> | |
| <div class="row"> | |
| @foreach (var blog in this.Model) | |
| { | |
| <div class="col s12 m6 l4"> | |
| <div class="card blue-grey darken-1"> | |
| <div class="card-content white-text"> | |
| <span class="card-title truncate">@blog.Title</span> |
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
| { | |
| "userSecretsId": "BlogWeb-Core-dc716f4c-b4b8-4893-9254-ec06e191fd0f", | |
| "dependencies": { | |
| "Dapper": "1.50.0-rc3", | |
| "FastMember": "1.1.0-beta1", | |
| "System.Data.SqlClient": "4.1.0", | |
| "System.Data.SQLite": "1.0.102", | |
| "System.Diagnostics.Contracts": "4.0.1", | |
| "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", |
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
| CREATE TABLE [dbo].[Device] | |
| ( | |
| [Id] INT IDENTITY(1, 1), | |
| [Name] VARCHAR(25) NOT NULL | |
| ) |
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 GottaDo.Apps.Mobile.Controls; | |
| using Xamarin.Forms; | |
| using Xamarin.Forms.Platform.iOS; | |
| [assembly: ExportRenderer(typeof(RoundedButton), typeof(RoundedButtonRenderer))] | |
| namespace GottaDo.Apps.Mobile.Renderers | |
| { | |
| public class RoundedButtonRenderer : ButtonRenderer | |
| { |