This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- C:\Users\[username]\AppData\Local\nvim\init.lua | |
--[[ | |
===================================================================== | |
==================== READ THIS BEFORE CONTINUING ==================== | |
===================================================================== | |
Kickstart.nvim is *not* a distribution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d --name mysql-employees -p 3306:3306 -e MYSQL_ROOT_PASSWORD=college -v data:/var/lib/mysql genschsa/mysql-employees |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": [ | |
"config:base" | |
], | |
"packageRules": [ | |
{ | |
"updateTypes": [ | |
"minor", | |
"patch", | |
"pin", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// they say that laziness is the mother of all inventions | |
// lerna is currently not supporting multiple packages add (as mentioned here https://github.com/lerna/lerna/issues/1608) | |
// run this script and copy its output | |
'dotenv express cors ...put more of your packages here..' | |
.split(' ') | |
.map(e => `lerna add ${e} --scope=my-package --no-bootstrap`) | |
.join('\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on table2CSV (https://github.com/rubo77/table2CSV) and https://gist.github.com/adilapapaya/9787842 | |
// paste in console. | |
(function () { | |
jQuery.fn.table2CSV = function (options) { | |
var options = jQuery.extend({ | |
separator: ',', | |
header: [], | |
headerSelector: 'th', | |
columnSelector: 'td', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @bucketSize = 100; | |
select | |
a.bucketCeil, | |
CONCAT(a.bucketCeil, ' - ', a.bucketCeil) as bucket, | |
count(*) as count | |
from ( | |
select | |
floor(d.value/@bucketSize)*@bucketSize as bucketFloor, | |
floor(d.value/@bucketSize)*@bucketSize + @bucketSize as bucketCeil |