Skip to content

Instantly share code, notes, and snippets.

View nathanpjones's full-sized avatar

Nathan Jones nathanpjones

View GitHub Profile
@jimschubert
jimschubert / Markdown-JavaScript.markdown.js
Last active April 1, 2025 17:51
DataGrip (IntelliJ) output SQL results to Markdown
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) {
@LeonardoCardoso
LeonardoCardoso / gitzip.sh
Last active December 22, 2024 21:31
Zip folder ignoring files listed on .gitignore
#...
function gitzip() {
git archive -o [email protected] HEAD
}
#... gitzip ZIPPED_FILE_NAME