Skip to content

Instantly share code, notes, and snippets.

View devbas's full-sized avatar
💭
I still haven't automated myself.

Bastian devbas

💭
I still haven't automated myself.
View GitHub Profile
@devbas
devbas / poc.sql
Last active December 6, 2019 13:54
Horizontal Partitioning on SQL Server with existing data.
-- 1. Create a sample database and tables
CREATE DATABASE TestDB;
USE TestDB
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 (https://keybase.io/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
devbas / gist.js
Last active August 29, 2015 14:21
Custom action for required attribute in HTML5 Forms
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]) {