Skip to content

Instantly share code, notes, and snippets.

@BrianRosamilia
BrianRosamilia / gist:a7dd905a5dd2517f9c8e
Created September 5, 2014 02:42
Removing Facebook Posts
Array.prototype.slice.call(document.getElementsByClassName('userContentWrapper')).forEach(function(itm) {
if (itm.innerHTML.search(/nfl|football/i) != -1) {
itm.parentNode.removeChild(itm)
}
})
@BrianRosamilia
BrianRosamilia / MariaDB C# Boilerplate
Last active August 29, 2015 14:01
C#/MariaDB code that lets you easily pick an isolation level and read only flag to maximize throughput of queries that can be read only with dirty reads allowed
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using Dapper;
namespace Gist
{