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 | |
/** | |
* Magento Enterprise Edition | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Magento Enterprise Edition License | |
* that is bundled with this package in the file LICENSE_EE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://www.magentocommerce.com/license/enterprise-edition |
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
TRUNCATE TABLE sales_flat_order; | |
TRUNCATE TABLE sales_order_tax; | |
TRUNCATE TABLE downloadable_link_purchased; | |
DELETE FROM eav_entity_store WHERE entity_type_id IN (SELECT entity_type_id FROM eav_entity_type WHERE entity_type_code IN ('order', 'invoice', 'creditmemo', 'shipment')); |
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
var init = { | |
accordion: function(){ | |
// Grab next (not null) element | |
function next(elem) { | |
do { | |
elem = elem.nextSibling; | |
} while (elem && elem.nodeType != 1); | |
return elem; |
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
# Deploying a Sinatra app to Heroku | |
## Database | |
The location of the database Heroku provides can be found in the environment | |
variable DATABASE_URL. Check the configure-block of toodeloo.rb for an example | |
on how to use this. | |
## Server | |
Heroku is serving your apps with thin, with means you have all your thin goodness available, | |
such as EventMachine. |
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
<script type="text/javascript"> | |
(function() { | |
var t = document.createElement("script"); | |
t.type = "text/javascript"; | |
t.src = "//platform.twitter.com/widgets.js"; | |
t.async = true; | |
document.getElementsByTagName('head')[0].appendChild(t); | |
})(); | |
</script> | |
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a> |
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
<script type="text/javascript"> | |
console.log("Now this is debugging in style!"); | |
</script> |
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
<script type="text/javascript"> | |
var foo = 10; | |
var bar = 16; | |
var total = foo + bar; | |
console.log(total); | |
</script> |
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
<script type="text/javascript"> | |
var foo = 10; | |
var bar = 16; | |
var total = foo + bar; | |
console.log(total); | |
console.debug(total); | |
console.info(total); | |
console.warn(total); | |
console.error(total); | |
</script> |
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
<script type="text/javascript"> | |
var foo = 10; | |
var bar = 16; | |
var total = foo + bar; | |
console.log("If I add %d to %d I get %d", foo, bar, total); | |
console.debug("If I add %d to %d I get %d", foo, bar, total); | |
console.info("If I add %d to %d I get %d", foo, bar, total); | |
console.warn("If I add %d to %d I get %d", foo, bar, total); | |
console.error("If I add %d to %d I get %d", foo, bar, total); | |
</script> |
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
window.loadFirebugConsole(); |
OlderNewer