Skip to content

Instantly share code, notes, and snippets.

View paladique's full-sized avatar

Jasmine Greenaway paladique

View GitHub Profile
paladique /
Created July 14, 2020 20:13
Remove ad interests
paladique /
Last active May 19, 2021 03:10
Introduction to Chatbots

Introduction to Chatbots


  • Bots are apps that perform specific tasks
  • Chatbots are bots that respond to voice or text
  • The Microsoft Bot Framework allows you to build a bot from beginning to end
  • Natural Language Processing (NLP) is a Machine Learning process that allows humans and computers to understand each other
  • The LUIS platform helps you build your bots in a natural language that your users will understand
paladique / CreateDocument.cs
Last active April 27, 2018 15:58
CosmosDB Blog Code Snippets
public static async void CreateDocument<T>(T item, string collectionName) where T : Item
await client.CreateDocumentAsync((GetCollectionUri(collectionName)), item);
paladique /
Last active April 2, 2018 20:00
Getting started with Angular and .NET Core Web API
//First you need to retrieve html source of the given url
//Get Url Title
private string UrlTitle(string url)
string source = HtmlSrc(url);
string title = Regex.Match(source, @"\<title\b[^>]*\>\s*(?<Title>[\s\S]*?)\</title\>", RegexOptions.IgnoreCase).Groups["Title"].Value;
return title;
paladique / S3BucketObjCreate.cs
Created September 29, 2016 15:30
Add a new object to an S3 Bucket
public class SomeClass
// Change the AWSProfileName to the profile you want to use in the App.config file.
// See for more details.
// You must also sign up for an Amazon S3 account for this to work
// See for details on creating an Amazon S3 account
// Change the bucketName and keyName fields to values that match your bucketname and keyname
string bucketName = "bucketname";
string keyName = "testpage";
paladique / bulkcopy.cs
Last active September 24, 2016 00:45
For when you need to take a bunch of things and insert them into a table
public bool BulkCopy(object[] things, int id)
var dt = new DataTable("MyTable");
dt.Columns.Add("mythings", typeof(string));
dt.Columns.Add("ID", typeof(Int32));
foreach (var item in things)
var row = dt.NewRow();
row[0] = item;
row[1] = id;