Skip to content

Instantly share code, notes, and snippets.

@csaq5507
csaq5507 / P7M.php
Last active January 28, 2021 12:08
Sometimes I'm getting fatturas that openssl cant convert because after the header are missing the BOM characters (). I don't know if this is a mistake on my side but nevertheless, if someone is facing the same issue this patch should accept this fatturas as well. This code is a patch of filippotoso/p7m-extractor.
<?php
namespace FilippoToso\P7MExtractor;
use FilippoToso\P7MExtractor\Exceptions\FileNotWritable;
use FilippoToso\P7MExtractor\Exceptions\CouldNotExtractFile;
use FilippoToso\P7MExtractor\Exceptions\P7MNotFound;
use Symfony\Component\Process\Process;
class P7M
@csaq5507
csaq5507 / react-native-sortable-list+0.0.24.patch
Last active January 4, 2021 16:22
React Native SortableList Patch for React Native > 0.60
diff --git a/node_modules/react-native-sortable-list/src/Row.js b/node_modules/react-native-sortable-list/src/Row.js
index 32718a8..b11caa1 100644
--- a/node_modules/react-native-sortable-list/src/Row.js
+++ b/node_modules/react-native-sortable-list/src/Row.js
@@ -142,10 +142,11 @@ export default class Row extends Component {
},
});
- componentWillReceiveProps(nextProps) {
- if (!this._active && !shallowEqual(this._location, nextProps.location)) {