This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" download>Download MP3 file to your device</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function findStringAndRemoveRow() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var data = sheet.getRange("A:A"); //Add the range you want to search, here it searches the whole column A | |
| for (var i = 1; i < data.getLastRow(); i++) { | |
| if(data.getCell(i,1).getValue().indexOf("text")!=-1){ //replace text with whatever string you are looking for | |
| sheet.deleteRow(i); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var docWidth = document.documentElement.offsetWidth; | |
| [].forEach.call( | |
| document.querySelectorAll('*'), | |
| function(el) { | |
| if (el.offsetWidth > docWidth) { | |
| console.log(el); | |
| } | |
| } | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Replace FILEname with the pem filename you are setting chmod400 for. | |
| #Note that this implies that the pem file is in the active directory root | |
| icacls.exe .\FILENAME.pem /reset | |
| icacls.exe .\FILENAME.pem /grant:r "$($env:username):(r)" | |
| icacls.exe .\FILENAME.pem /inheritance:r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Get $product object from Cart object | |
| $cart = WC()->cart->get_cart(); | |
| foreach( $cart as $cart_item ){ | |
| $product = wc_get_product( $cart_item['product_id'] ); | |
| // Now you have access to (see above)... |