I hereby claim:
- I am eguicciardi on github.
- I am eguicciardi (https://keybase.io/eguicciardi) on keybase.
- I have a public key ASBEpO2qYbSIL0RKpMc_jWlFT9KsTizAygzPz9PFW86LTwo
To claim this, I am signing this object:
| import = ["~/.config/alacritty/catppuccin/catppuccin-macchiato.toml"] | |
| live_config_reload = true | |
| working_directory = "Development" | |
| [env] | |
| TERM = "xterm-256color" | |
| [window] | |
| decorations = "Full" | |
| dynamic_padding = false |
| try { | |
| // If access.token is returned, save it on the collection variable "jwtToken" | |
| var jwtToken = pm.response.json()?.access?.token || false; | |
| if(jwtToken) { | |
| pm.collectionVariables.set("jwtToken", jwtToken); | |
| } | |
| } catch(error) {} |
I hereby claim:
To claim this, I am signing this object:
| /* Example args for get_posts() */ | |
| $query_args = array( | |
| 'posts_per_page' => -1, | |
| 'orderby' => 'title', | |
| 'order' => 'ASC', | |
| 'post_status' => 'publish', | |
| 'suppress_filters' => false | |
| ); |
| <?php | |
| function mymodule_setup_batch($start=1, $stop=100000) { | |
| $dataset = array(); // A very large dataset | |
| $chunks = array_chunk($dataset, 20); // Divide the dataset | |
| $operations = array(); | |
| $count_chunks = count($chunks); | |
| $i = 1; |
| <?php | |
| function password_reset(){ | |
| global $user; | |
| $hashthepass = 'password'; /* Your password value*/ | |
| require_once DRUPAL_ROOT . '/' . variable_get('password_inc', 'includes/password.inc'); | |
| $hashthepass = user_hash_password(trim($hashthepass)); | |
| if (!$hashthepass) { |
| <script type="text/javascript"> | |
| var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>"; | |
| </script> |
| drupal_add_js(array('myModule' => array('key' => 'value')), 'setting'); |
| Drupal.behaviors.makeMeSmelly = { | |
| attach: function (context, settings) { | |
| // Questo codice viene eseguito solo una volta | |
| context.once(function() { | |
| $('h1', this).addClass('.titolone'); | |
| } | |
| // Questo invece viene eseguito ad ogni richiesta | |
| $('h1').addClass('.titoloneone'); | |
| } |
| Drupal.behaviors.NomeModuloCustom = { | |
| attach: function (context, settings) { | |
| $('h1').addClass('.titolone'); | |
| } | |
| } |