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 | |
require_once("./app/Mage.php"); | |
Mage::app(); | |
$collection = Mage::getResourceModel('newsletter/subscriber_collection')->load(); | |
foreach($collection->getItems() as $subscriber) { | |
echo $subscriber->getSubscriberEmail(); | |
} | |
?> |
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
Magento Delete All Products & Categories from database |
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 | |
error_reporting(E_ALL | E_STRICT); | |
$mageFilename = 'app/Mage.php'; | |
if (!file_exists($mageFilename)) { | |
if (is_dir('downloader')) { | |
header("Location: downloader"); | |
} else { | |
echo $mageFilename." was not found"; | |
} |
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
Magento: Get Observers To Work In An External 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
var fullList = []; | |
$(".list-wrapper").each(function() { | |
var tempStr = ""; | |
tempStr = '"' + $(this).find(".company-list-name a").text() + '"'; | |
tempStr += ',"' + $(this).find(".profile-update").text() + '"'; | |
tempStr += ',"' + $(this).find(".company-focus").text() + '"'; | |
fullList.push(tempStr); | |
}); | |
var output = fullList.join('\n'); | |
var uri = 'data:application/csv;charset=UTF-8,' + encodeURIComponent(output); |
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
python -m SimpleHTTPServer 8000 |
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
{ | |
"bold_folder_labels": false, | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", |
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
//########################### | |
//jquery fn scroll: | |
jQuery.fn.skroll = function() {$('body').animate({'scrollTop': this.offset().top}, 'slow', 'swing');}; | |
//# USE: $('.class').skroll(); | |
//########################### |
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
This method for last version of Bootstrap - Version 2.3.1 | |
Click this link to customize bootstrap: http://twitter.github.com/bootstrap/customize.html | |
You will find such as this list and change the number as you like. | |
16 Grid system with Gutter | |
@gridColumns: 16 | |
@gridColumnWidth: 45px | |
@gridGutterWidth: 15px |