Skip to content

Instantly share code, notes, and snippets.

View ptyskju's full-sized avatar

Krzysztof Węgrzyn ptyskju

View GitHub Profile
@ptyskju
ptyskju / launch.json
Created February 29, 2024 19:13
launch.json vscode debug chrome xdebug
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9003,
"xdebugSettings": {
"max_data": -1,
@ptyskju
ptyskju / extendOLX.js
Created June 26, 2020 10:55
Kod js do przedłużania i odświeżania wielu ogłoszeń na raz w OLX
$('.extendLink').each(function () {
if($(this).hasClass("refreshme")){
$(this).click();
} else if ($(this).hasClass("extendme")) {
var href = $(this).attr('href');
$.get(href);
$(this).remove();
}
});