This file contains 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 | |
namespace App\Providers; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\UrlGenerator; | |
use Illuminate\Support\ServiceProvider; | |
/** | |
* Class ApplyUrlSchemeStrategyProvider |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am punkstar on github. | |
* I am punkstar (https://keybase.io/punkstar) on keybase. | |
* I have a public key whose fingerprint is 5177 3EF6 59A8 B993 8C5A C1EB 18BE BCE3 B9C3 C239 | |
To claim this, I am signing this object: |
This file contains 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/skin/frontend/base/default/sagepaysuite/js/sagePaySuite_Checkout.js b/skin/frontend/base/default/sagepaysuite/js/sagePaySuite_Checkout.js | |
index 98913d3..f4d3484 100755 | |
--- a/skin/frontend/base/default/sagepaysuite/js/sagePaySuite_Checkout.js | |
+++ b/skin/frontend/base/default/sagepaysuite/js/sagePaySuite_Checkout.js | |
@@ -380,6 +380,17 @@ reviewSave: function(transport){ | |
window._sagepayprocessingorder = false; | |
} | |
+ /** | |
+ * If for some reason the Event.observe(window, 'load') didn't fire, then make sure |
This file contains 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
# We build everything in a staging directory, so we don't take the site down during a deployment. | |
rm -rf %path%/../staging/ && mkdir %path%/../staging/ | |
# Perform the actual jekyll build, constants are for encoding issues (I think, can't remember) | |
source ~/.bashrc && cd %path% && LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 jekyll | |
# Build the sass files, so we don't need to keep the css in our repo | |
source ~/.bashrc && cd %path%/../staging/ && LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 && sass --update . | |
# Copy our .htaccess across |
This file contains 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/code/core/Mage/Sales/Model/Order/Invoice/Total/Tax.php b/app/code/core/Mage/Sales/Model/Order/Invoice/Total/Tax.php | |
index 25bbcc7..38587f4 100644 | |
--- a/app/code/core/Mage/Sales/Model/Order/Invoice/Total/Tax.php | |
+++ b/app/code/core/Mage/Sales/Model/Order/Invoice/Total/Tax.php | |
@@ -47,7 +47,8 @@ class Mage_Sales_Model_Order_Invoice_Total_Tax extends Mage_Sales_Model_Order_In | |
$orderItem = $item->getOrderItem(); | |
$orderItemQty = $orderItem->getQtyOrdered(); | |
- if ($orderItem->getTaxAmount() && $orderItemQty) { | |
+ // Need to check if we've got tax or hidden_tax applied to the item so that we calculate the row subtotal correctly |
This file contains 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
assetic: | |
use_controller: true | |
ruby: 'bash' | |
sass: '/Users/nrj/.rvm/bin/sass' | |
filters: | |
scss: | |
sass: | |
bin: '/Users/nrj/.rvm/bin/sass' |
This file contains 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
<?xml version="1.0" encoding="utf-8" ?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<atom:link href="http://www.magentocommerce.com/notifications_feed" rel="self" type="application/rss+xml" /> | |
<title>MagentoCommerce</title> | |
<link>http://www.magentocommerc.com/</link> | |
<description>MagentoCommerce</description> | |
<copyright>Copyright (c) 2009 Varien</copyright> | |
<webMaster>support@varien.com (Magento support)</webMaster> | |
<language>en</language> |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
... | |
<adminhtml> | |
... | |
<events> | |
<controller_action_predispatch> | |
<observers> | |
<meanbee_notification> | |
<type>singleton</type> |
This file contains 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 | |
class Meanbee_Notify_Model_Feed extends Mage_AdminNotification_Model_Feed { | |
public function getFeedUrl() { | |
$url = | |
Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://' | |
. 'www.meanbee.com/path/to/your/file.rss'; | |
} | |
public function observe() { | |
$model = Mage::getModel('notify/feed'); |
This file contains 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
#include <stdio.h> | |
int func (int a, int b) { | |
static int c = 1; | |
return a + b * (c *= -1); | |
} | |
int main () { | |
int a = 2, b = 3; | |
int c = func(a, b); |
NewerOlder