Skip to content

Instantly share code, notes, and snippets.

View youanden's full-sized avatar
🐢
Creepin

Georgiy Slobodenyuk youanden

🐢
Creepin
  • Onality Inc
  • Aventura, FL
View GitHub Profile
@erd0s
erd0s / rowspan.js
Last active February 24, 2023 16:04
Turn an HTML table with rowspans into a csv with rowspan data duplicated
var rows = document.querySelectorAll("table div table > tbody tr");
var records = [];
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
var cells = row.querySelectorAll("td");
cells.forEach((o, j) => {
// Put in the forward rows data
if (o.rowSpan > 1) {
@dng-dev
dng-dev / fastcgi_finish_request.patch
Created July 26, 2016 19:47
implementation for fastcgi_finish_request in Magento
diff --git a/app/code/core/Mage/Core/Controller/Varien/Front.php b/app/code/core/Mage/Core/Controller/Varien/Front.php
index 75d0e17..890ba9d 100755
--- a/app/code/core/Mage/Core/Controller/Varien/Front.php
+++ b/app/code/core/Mage/Core/Controller/Varien/Front.php
@@ -182,6 +182,12 @@ class Mage_Core_Controller_Varien_Front extends Varien_Object
Mage::dispatchEvent('controller_front_send_response_before', array('front'=>$this));
Varien_Profiler::start('mage::app::dispatch::send_response');
$this->getResponse()->sendResponse();
+ //This function flushes all response data to the client and finishes the request.
+ // This allows for time consuming tasks to be performed without leaving the connection
@gubi
gubi / available_font-awesome_icons.php
Last active January 7, 2024 11:58
Get all icons from a font-awesome.css file and list in json mode
<?php
/**
* Available Font Awesome icons
*
* Get all icons from a font-awesome.css file and list in json mode
*
* @author Alessandro Gubitosi <gubi.ale@iod.io>
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3
*/