Skip to content

Instantly share code, notes, and snippets.

@albielin
albielin / fixed-width-table.js
Created March 26, 2019 07:17 — forked from bdrupieski/fixed-width-table.js
extract output from DataGrip into evenly spaced fixed width columns so it's readable when you paste it into Slack
if (!String.prototype.repeat) {
// polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat
String.prototype.repeat = function(count) {
'use strict';
if (this == null) {
throw new TypeError('can\'t convert ' + this + ' to object');
}
var str = '' + this;
count = +count;
if (count != count) {

Keybase proof

I hereby claim:

  • I am albielin on github.
  • I am albielin (https://keybase.io/albielin) on keybase.
  • I have a public key ASDfgh9YB9zH260F1UC4sh9__AukU946f1vGdbxYnBwM4go

To claim this, I am signing this object:

@albielin
albielin / macHostsLocation
Created August 27, 2014 17:36
mac etc/hosts location
sudo emacs /private/etc/hosts
@albielin
albielin / 0_reuse_code.js
Created July 3, 2014 18:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console