Skip to content

Instantly share code, notes, and snippets.

View dkcreatto's full-sized avatar

Dhaval Shah dkcreatto

  • Mindmantra Digital
  • Ahmedabad, India
View GitHub Profile
@searbe
searbe / parse_xlsx.php
Created August 7, 2012 09:48
Parse simple XLSX in PHP with SimpleXML and ZipArchive
<?php
/**
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!)
* but the usual tools were hitting the memory limit pretty quick. I found that
* manually parsing the XML worked pretty well. Note that this, most likely,
* won't work if cells contain anything more than text or a number (so formulas,
* graphs, etc ..., I don't know what'd happen).
*/
@dkcreatto
dkcreatto / BBM_CSV_2_XML.php
Created February 25, 2012 19:27
Convertes Blackberry Messenger CSV files to XML, which can be imported to excel or any other software which supports it.
<?php
/*
*BBM to XML version 1.0
*
* This script will take CSV file generated by
* Blackberry Messenger and convert it to well
* formatted xml document which can be imported
* into any spreadsheet program such as MS Excel,
* OpenOffice Calc etc.
*
@Rarst
Rarst / r-debug.php
Last active June 12, 2025 01:56
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/