Skip to content

Instantly share code, notes, and snippets.

View featuriz's full-sized avatar
🪄
Let me see it

Sudhakar Krishnan featuriz

🪄
Let me see it
View GitHub Profile
@mitsuharu
mitsuharu / react-native-sqlite-storage+6.0.1.patch
Last active August 3, 2022 01:04
patch file for react-native-sqlite-storage 6.0.1 with patch-package
diff --git a/node_modules/react-native-sqlite-storage/react-native.config.js b/node_modules/react-native-sqlite-storage/react-native.config.js
index dc150a9..7dcf0ef 100644
--- a/node_modules/react-native-sqlite-storage/react-native.config.js
+++ b/node_modules/react-native-sqlite-storage/react-native.config.js
@@ -1,9 +1,7 @@
module.exports = {
dependency: {
platforms: {
- ios: {
- project: './platforms/ios/SQLite.xcodeproj'
@jez500
jez500 / d8-views-exp-form-alter.php
Last active October 12, 2023 12:20
Drupal 8 - Hook form alter views exposed form
<?php
/**
* Implements hook_form_alter().
*/
function MYMODULE_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
$view_names = array('my_view_name');
$view = $form_state->getStorage('view');
if ($form_id == 'views_exposed_form' && in_array($view['view']->id(), $view_names)) {
// Do some shilzzle.