Skip to content

Instantly share code, notes, and snippets.

View paladique's full-sized avatar

Jasmine Greenaway paladique

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

Introduction to Chatbots

Summary

  • 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
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
paladique / resources.md
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
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 http://docs.aws.amazon.com/AWSSdkDocsNET/latest/DeveloperGuide/net-dg-config-creds.html for more details.
// You must also sign up for an Amazon S3 account for this to work
// See http://aws.amazon.com/s3/ 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
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;