- [RFR] - Code refactoring
- [WIP] - Work in progress
- [FIX] - Bug fix
- [FTR] - New feature
- [SCR] - Security issue fix
- [CLP] - Changes that do not alter functionality, but improve code style and readability.
- [CRO] - Content Rate Optimization
- [TST] - Add test suite for slider component
This file contains 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
version: '2' | |
services: | |
influxdb: | |
environment: | |
INFLUXDB_DB: project_dev | |
INFLUXDB_ADMIN_USER: admin | |
INFLUXDB_ADMIN_PASSWORD: admin | |
INFLUXDB_HTTP_AUTH_ENABLED: "true" | |
image: influxdb:latest | |
ports: |
This file contains 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
dotnet tool install --global dotnet-sonarscanner |
This file contains 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
declare @TableName sysname = 'Table' | |
declare @Result varchar(max) = 'public class ' + @TableName + ' | |
{' | |
select @Result = @Result + ' | |
public ' + ColumnType + NullableSign + ' ' + ColumnName + ' { get; set; } | |
' | |
from | |
( | |
select |
This file contains 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
' Q B a s i c G o r i l l a s | |
' | |
' Copyright (C) IBM Corporation 1991 | |
' | |
' Your mission is to hit your opponent with the exploding banana |
This file contains 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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
//A simple C# class to post messages to a Slack channel | |
//Note: This class uses the Newtonsoft Json.NET serializer available via NuGet | |
public class SlackClient | |
{ |
This file contains 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 void ConfigureServices(IServiceCollection services) | |
{ | |
var database = "appmetricsdemo"; | |
var uri = new Uri("http://127.0.0.1:8086"); | |
services.AddMetrics(options => | |
{ | |
options.WithGlobalTags((globalTags, info) => | |
{ | |
globalTags.Add("app", info.EntryAssemblyName); |
This file contains 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
private static void Main() | |
{ | |
Console.Clear(); | |
Console.WriteLine("Raspberry Bot Started - Checking your builds"); | |
Console.WriteLine("Connecting to RabbitMQ"); | |
var objRabbit = new RabbitMQ.RabbitMq("AppVeyor"); | |
objRabbit.Connect(); | |
Console.WriteLine("Connected successfully with RabbitMQ!"); |
This file contains 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 RabbitMq | |
{ | |
private ConnectionFactory _factory; | |
private IConnection _connection; | |
private IModel _channel; | |
private EventingBasicConsumer _consumer; | |
public string QueueName { get; set; } | |
public RabbitMq(string queuename) | |
{ |
This file contains 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 MessageBroker | |
{ | |
private ConnectionFactory _factory; | |
private IConnection _connection; | |
private IModel _channel; | |
public string QueueName { get; set; } | |
public void Connect() | |
{ |
NewerOlder