I hereby claim:
- I am paladique on github.
- I am paladique (https://keybase.io/paladique) on keybase.
- I have a public key whose fingerprint is 855D D453 84C0 0147 6074 BFA7 D627 ED36 6457 A4E1
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
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; |
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"; | |
//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 static async void CreateDocument<T>(T item, string collectionName) where T : Item | |
{ | |
await client.CreateDocumentAsync((GetCollectionUri(collectionName)), item); | |
} |
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.