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
var path = require('path'); | |
var _root = path.resolve(__dirname, '..'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var environmentUrls = require("./includes/environmentUrls.json"); | |
var cssincludes = require("./includes/cssincludes.json"); | |
var jsincludes = require("./includes/jsincludes.json"); | |
function root(args) { | |
args = Array.prototype.slice.call(arguments, 0); | |
return path.join.apply(path, [_root].concat(args)); |
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
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="CicloConnect.Frontend.Views.SettingsPage" | |
xmlns:mvvm="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" | |
xmlns:vm="clr-namespace:CicloConnect.Frontend.ViewModels;" | |
BindingContext="{Binding Source={x:Static vm:DesignTimeViewModels.SettingsDummyViewModel}} | |
Title="Settings"> |
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 partial class App : PrismApplication | |
{ | |
private static bool _designContext = true; | |
public App() : base(null){} | |
public App(IPlatformInitializer initializer) : base(initializer) { } | |
protected override void OnInitialized() | |
{ |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="CicloConnect.Frontend.Views.MainPage" | |
xmlns:mvvm="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" | |
mvvm:ViewModelLocator.AutowireViewModel="True" | |
Title="Main"> |
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 System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
using Newtonsoft.Json; | |
using ServiceStack; | |
using Xunit; | |
namespace Tests |
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 System.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; | |
namespace Tools.Infusionsoft.Hook | |
{ | |
[Route("api/[controller]")] | |
public class InfusionsoftController : Controller |
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 static class SlackWebhook | |
{ | |
[FunctionName("SlackWebhook")] | |
public static async Task<HttpResponseMessage> Run( | |
[HttpTrigger(WebHookType = "slack")] HttpRequestMessage req, | |
[Queue(Constants.TranslateRequestQueue, Connection = "AzureWebJobsStorage")] | |
ICollector<TranslateRequest> translateQueue, | |
[Queue(Constants.SearchRequestQueue, Connection = "AzureWebJobsStorage")] | |
ICollector<SearchRequest> searchQueue, | |
[Queue(Constants.SentimentRequestQueue, Connection = "AzureWebJobsStorage")] |
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
[FunctionName("Sentiment")] | |
[Disable] | |
public static async Task Run([QueueTrigger(Constants.SentimentRequestQueue, Connection = "AzureWebJobsStorage")]SentimentRequest request, | |
[Queue(Constants.SlackmessageRequestQueue, Connection = "AzureWebJobsStorage")]ICollector<SlackMessage> outputQueueItem, | |
TraceWriter log) | |
{ | |
//see https://github.com/StefanRiedmann/AzureFunctionsForSlack | |
} |
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
{ | |
"IsEncrypted": false, | |
"Values": { | |
"AzureWebJobsStorage": "azure storage connectionstring", | |
"AzureWebJobsDashboard": "", | |
"TRANSLATOR_CLIENT_SECRET": "microsoft translation service secret" | |
} | |
} |
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 Microsoft.EntityFrameworkCore; | |
namespace TestProject | |
{ | |
public class PersonContext : DbContext | |
{ | |
DbSet<Person> Persons { get; set; } | |
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
{ |
OlderNewer