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
| $('form input:text').each(function(index, elem) { | |
| var eId = $(elem).attr('id'); | |
| var label = null; | |
| if (eId && (label = $(elem).parents('form').find('label[for='+eId.replace(':', '\\:')+']')).length === 1) { | |
| $(elem).attr('placeholder', $(label).html().replace(/<\/?[^>]+(>|$)/g, "")); |
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 | |
| $fp = fopen('/tmp/temp_monitor.csv', 'a'); | |
| $curl = curl_init('https://home.sensibo.com/api/v2/pods/jFFZuNq6/measurements?apiKey=MxeORFfanBUJnCbd3HLmssEYJF2WbO'); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| $curl_response = curl_exec($curl); | |
| if ($curl_response === false) { | |
| $info = curl_getinfo($curl); | |
| curl_close($curl); | |
| die('error occurred during curl exec. Additional info: ' . var_export($info)); | |
| } |
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
| #!/bin/bash | |
| STATE=$1 | |
| echo $STATE | |
| curl -X PUT -H "Content-Type: application/json" -d '{"enabled":'${STATE}'}' https://home.sensibo.com/api/v2/pods/DEVICE_ID/smartmode/?apiKey=API KEY |
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
| diff --git a/app/design/frontend/default/theme567/template/sendfriend/send.phtml b/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
| index 14432118..be6096dc 100644 | |
| --- a/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
| +++ b/app/design/frontend/default/theme567/template/sendfriend/send.phtml | |
| @@ -32,8 +32,13 @@ | |
| ?> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| - i=0; | |
| - var recipCount = 1; |
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 | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE_AFL.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.php |
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
| #!/bin/bash | |
| n98-magerun --scope-id=0 config:set web/unsecure/base_url {{base_url}} | |
| n98-magerun --scope-id=0 config:set web/secure/base_url {{base_url}} | |
| n98-magerun --scope-id=1 --scope="stores" config:set web/unsecure/base_url {{base_url}} | |
| n98-magerun --scope-id=1 --scope="stores" config:set web/secure/base_url {{base_url}} | |
| n98-magerun --scope-id=1 --scope="stores" config:set web/unsecure/base_skin_url {{base_url}}/skin | |
| n98-magerun --scope-id=1 --scope="stores" config:set web/secure/base_skin_url {{base_url}}/skin | |
| n98-magerun --scope-id=0 config:set web/unsecure/base_skin_url {{base_url}}/skin | |
| n98-magerun --scope-id=0 config:set web/secure/base_skin_url {{base_url}}/skin |
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
| protected $_paramsToTrack = array("offer_followup"); | |
| /** | |
| * Capture any listened for parameters, and inject them into the session | |
| * under a variable called : ProductOfferUrlParams | |
| * | |
| * You must clear this variable with a call to | |
| * | |
| * Mage::getSingleton('customer/session')->unsProductOfferUrlParams(); | |
| * |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Run with: vagrant up --provider=docker | |
| # to get a dns entry for the docker machines use DNSGUARD | |
| # docker run -d -v /var/run/docker.sock:/var/run/docker.sock --restart always --name dnsdockmain -p 172.17.42.1:53:53/udp tonistiigi/dnsdock -domain=".local.com" -nameserver="192.168.50.20:53" | |
| # | |
| # common usage: vagrant --name=magento up --provider=docker | |
| require 'getoptlong' |
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 | |
| /* | |
| * http://magento.stackexchange.com/questions/1354/how-to-find-all-bundle-products-that-contain-a-simple | |
| * | |
| */ | |
| require_once '../shell/abstract.php'; | |
| class Mage_Shell_findProducts extends Mage_Shell_Abstract { |
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 | |
| /** | |
| * Convert a quote to an order object | |
| * Note Bundle items selections do not show | |
| * | |
| * @author Lucas van Staden | |
| * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | |
| * | |
| */ |