Skip to content

Instantly share code, notes, and snippets.

I still haven't automated myself.

Bastian devbas

I still haven't automated myself.
View GitHub Profile
devbas / poc.sql
Last active Dec 6, 2019
Horizontal Partitioning on SQL Server with existing data.
View poc.sql
-- 1. Create a sample database and tables
CREATE TABLE EmployeeReports
ReportID int IDENTITY (1,1) NOT NULL,
ReportName varchar (100),
ReportNumber varchar (20),
ReportDescription varchar (max),
ReportDate bigint

Keybase proof

I hereby claim:

  • I am devbas on github.
  • I am geneugelijk ( on keybase.
  • I have a public key whose fingerprint is 64D4 24E6 8B5B D3E6 70DB 5F82 EC0E BB2F 9FEE FB94

To claim this, I am signing this object:

devbas / gist.js
Last active Aug 29, 2015
Custom action for required attribute in HTML5 Forms
View gist.js
document.addEventListener("DOMContentLoaded", function() {
var elements = document.getElementsByTagName("INPUT");
for (var i = 0; i < elements.length; i++) {
elements[i].oninvalid = function(e) {
var start = new Date().getTime();
for(var i = 0; i < e.path.length; i++) {
if(e.path[i]['classList']) {
var parentClass = jQuery.inArray('postbox-container', e.path[i]['classList']);
if(parentClass != -1) {
if(e.path[i]['classList'][parentClass]) {