You will need JQ to format the output.
| /* Iconic Firefox (https://gist.github.com/emvaized/a379d61ed8970e5711ca7278a39c1895/) */ | |
| /* Author (c) 2025 emvaized */ | |
| /* Based on https://gist.github.com/qaz69wsx/83a90423163b65a8344b2e60fc356a58 (no longer available) */ | |
| /* For better compatibility with dark mode, enable `svg.context-properties.content.enabled` in `about:config` */ | |
| :root{ | |
| --uc-popup-menu-icon-color: color-mix(in srgb, currentColor 75%, transparent); | |
| } | |
| .subviewbutton:not(.subviewbutton-iconic, [checked="true"], [targetURI])>.toolbarbutton-icon, | |
| .subviewbutton:not(.subviewbutton-iconic, [checked="true"], [targetURI])>.protections-popup-footer-icon{ |
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps.
| /** | |
| * @snippet Relatorio de vendas por ano e estado brasileiro @ WooCommerce Admin | |
| * @sourcecode https://gist.github.com/emanweb/3272d93d481e8c749edaa2cce2641b28 | |
| * @author Emanuel Costa | |
| * @testedwith WooCommerce 6.3.1 | |
| * @inspiredby https://businessbloomer.com/?p=72853 (Rodolfo Melogli) | |
| * @instructions Inclua esse código no functions.php to seu tema filho (child theme) | |
| */ | |
| // ----------------------- |
Mostra mensagens de debug ("depuração") no carrinho para usuários administradores referentes ao cálculo do frete, como erros de configuração do vendedor e mensagens de retorno da API.
add_filter( 'arti_me_show_messages_in_cart', '__return_true' );Força a atualização da lista de agências das transportadoras no painel do vendedor.
add_filter( 'arti_me_force_agency_list_update', '__return_true' );| curl -s http://pasta.phyrama.com:8083/cgi-bin/live.exe | grep -Eo '^<li>.*</li>' | sed s,\</\\?li\>,,g | shuf -n 1 |
In a nutshell, __toArray() would not be as useful when you have full control over the entire codebase.
But where __toArray() would be extremely useful is in interfacing with existing code that expects
arrays and wants those arrays to be a specific format. Using classes and type-hinted methods allow to
encapsulate the intelligence into the class, and using __toArray() makes for a nature use-case.
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var styleEl = document.getElementById('css-layout-hack'); | |
| if (styleEl) { | |
| styleEl.remove(); | |
| return; | |
| } | |
| styleEl = document.createElement('style'); | |
| styleEl.id = 'css-layout-hack'; |
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
| // SublimeLinter Settings - User | |
| { | |
| "paths": | |
| { | |
| "linux": ["~/.config/composer/vendor/bin"] | |
| } | |
| } |