Skip to content

Instantly share code, notes, and snippets.

View igorshirinkin's full-sized avatar
☀️

Igor Shirinkin igorshirinkin

☀️
View GitHub Profile
@igorshirinkin
igorshirinkin / throbber.php
Last active October 15, 2021 09:51
Console throbber.php
$index = 0;
$inserted = 0;
foreach ($prod_rows as $prod_row) {
printf(
"\rInserting to Target DB... [%s] row %d",
"|/-\\"[$index % 4],
$index + 1
);
@igorshirinkin
igorshirinkin / README.md
Last active September 13, 2021 13:53
Markdown instruction
@igorshirinkin
igorshirinkin / get.js
Created April 21, 2021 10:52
Get GET parameter from URL
var params = window.location.search.replace('?','').split('&').reduce(
function(param,delim) {
var split = delim.split('=');
param[decodeURIComponent(split[0])] = decodeURIComponent(split[1]);
return param;
},{}
);
console.log(params['data']); // 'data' - name of the required GET parameter.