Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am amorde on github.
  • I am amorde (https://keybase.io/amorde) on keybase.
  • I have a public key whose fingerprint is D598 9E89 4211 A2B8 0D94 D317 FE98 0392 C49F 2AA4

To claim this, I am signing this object:

@amorde
amorde / validator_spec.rb
Created November 4, 2017 01:41
CocoaPods/CocoaPods PR #7064
require File.expand_path('../../spec_helper', __FILE__)
require 'webmock'
module Pod
describe Validator do
before do
WebMock.enable!
WebMock.disable_net_connect!
end
@amorde
amorde / bug.php
Last active December 20, 2015 17:18
PHPExcel and python-excel program, bug test case for possible file corruption upon inserting large amount of rows using PHPExcel. File corruption is seen when using the python xlrd framework after having used PHPExcel to insert rows. To test, this run 'php bug.php' while bug.py and Test.xls are in the same folder. Test.xls file can be downloaded…
<?php
// Requires PHPExcel to be installed
include 'PHPExcel.php';
$excelFile = "Test.xls";
$reader = PHPExcel_IOFactory::createReaderForFile($excelFile);
$phpExcel = $reader->load($excelFile);
$worksheet = $phpExcel->getSheet();