Skip to content

Instantly share code, notes, and snippets.

View alindgren's full-sized avatar
💭
I may be slow to respond.

Alex Lindgren alindgren

💭
I may be slow to respond.
View GitHub Profile
@alindgren
alindgren / BotController.cs
Created March 9, 2017 06:27
Bot Framework example 1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 06:32
Bot Framework example 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 17:57
Bot Framework example 3
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 17:58
Bot Framework example 4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers
@alindgren
alindgren / BotController.cs
Created March 9, 2017 18:01
Bot Framework example 5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Microsoft.Bot.Connector;
using System.Threading.Tasks;
namespace BotDemo.Controllers

Keybase proof

I hereby claim:

  • I am alindgren on github.
  • I am alexlindgren (https://keybase.io/alexlindgren) on keybase.
  • I have a public key ASCMYchBaTK5BH0ThZ1oyXJKXS7NAKQg3eDu-1INPjqVFQo

To claim this, I am signing this object:

@alindgren
alindgren / deploy.cmd
Created December 18, 2017 02:22
Azure AppService deployment node-based build script
@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
:: ----------------------
:: KUDU Deployment Script
:: Version: 1.0.15
:: ----------------------
:: Prerequisites
:: -------------
let AWS = require('aws-sdk');
let sqs = new AWS.SQS();
let Airtable = require('airtable');
let base = new Airtable({apiKey: 'keyql7soeJgu7cdsP'}).base('appJdKhgVuGZUv0va');
exports.handler = (event, context, callback) => {
sqs.receiveMessage({
QueueUrl: 'https://sqs.us-west-2.amazonaws.com/852229429830/FundraiseDonations',
AttributeNames: ['All'],