Hi! If you're here that means you got an overview of the cloud and want to learn more! 🎉
Here for a hackathon? Check out these Microsoft resources
Check out the GitHub Student Developer Pack
Hi! If you're here that means you got an overview of the cloud and want to learn more! 🎉
Here for a hackathon? Check out these Microsoft resources
Check out the GitHub Student Developer Pack
I appreciate the quality memes and that's mostly what I use it for, but I visited here and was freaked out that this much information was being collected about me. I especially didn't appreciate that I have to click on these one by one to delete em'. PS: There's a browser extension that already does this
This script does the clicking and subsequent deleting.
public static async void CreateDocument<T>(T item, string collectionName) where T : Item | |
{ | |
await client.CreateDocumentAsync((GetCollectionUri(collectionName)), item); | |
} |
//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; | |
} |
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"; | |
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; |