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> | |
var arrayOfObjects = [{"college_name":"B S ABDUR RAHMAN UNIVERSITY","id":"61","college_location":"Chennai, Tamil Nadu","college_picture":"1420719572phpiYtWSt.jpeg","vote":"9","college_hashtag":""},{"college_name":"Bhavan's Vivekananda college","id":"56","college_location":"Hyderabad","college_picture":"Bhavans Vivekananda.jpg","vote":"18","college_hashtag":""},{"college_name":"BMS College of Engineering","id":"44","college_location":"Bangalore","college_picture":"bms.jpg","vote":"3","college_hashtag":""},{"college_name":"College of Engineering Guindy, Anna University","id":"49","college_location":"Chennai, Tamil Nadu","college_picture":"Anna-university.jpg","vote":"4","college_hashtag":""},{"college_name":"D G Vaishnav College","id":"54","college_location":"Chennai, Tamil Nadu","college_picture":"dg-vaishnav-college.jpg","vote":"0","college_hashtag":""},{"college_name":"J. B. Institute of Engineering and Technology","id":"55","college_location":"Hyderabad","college_picture":"images.jpg","vote":"5","c |
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
<link href="css/owl.carousel.css" media="screen" rel="stylesheet" type="text/css" /> | |
<link href="css/owl.theme.css" media="screen" rel="stylesheet" type="text/css" /> | |
<script src="js/jquery.min.js"></script> | |
<script src="js/owl.carousel.min.js"></script> | |
<style> | |
.vote { | |
cursor:pointer; | |
} | |
</style> |
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
# Set Slow Query Log | |
long_query_time = 1 | |
slow_query_log = 1 | |
slow_query_log_file = D:/wamp/logs/slowquery.log | |
log_queries_not_using_indexes = 1 | |
#Set General Log | |
general_log = on | |
general_log_file=D:/wamp/logs/general.log |
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 | |
$myXMLData = | |
"<?xml version='1.0' encoding='UTF-8'?> | |
<myxml> | |
<entry> | |
<string>actiontypedesc</string> | |
<string>Registration of google1231.com for 1 year</string> | |
</entry> | |
<entry> | |
<string>unutilisedsellingamount</string> |
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
//Delay execution Jquery | |
$('#search').keyup($.debounce(function() { | |
// Will only execute 300ms after the last keypress. | |
}, 300)); | |
//http://underscorejs.org/ | |
//using underscorejs | |
var d = _.throttle(ajax,200); | |
$(document).on('click','.overlay,.overlay-close',d); | |
function ajax(){ |
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 $blas = Mage::getSingleton('Modulename/viewinfo'); ?> | |
<?php echo $blas->getMsg(); ?> |
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
NotePad++ creates a backup file you might find at: | |
%AppData%/Notepad++/backup |
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
$sku = 'Your Product Sku'; | |
$id = Mage::getModel('catalog/product')->getIdBySku($sku); | |
if ($id){ | |
echo "SKU {$sku} exists"; | |
} | |
else{ | |
echo "SKU {$sku} does not exist"; | |
} |
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 | |
$encrypted_data = Mage::helper('core')->encrypt('my secret value'); | |
$plain_data = Mage::helper('core')->decrypt($encrypted_data); | |
?> |
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
Using Git | |
=============== | |
Global Settings | |
----------- | |
Related Setup: https://gist.github.com/hofmannsven/6814278 | |
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/ |
OlderNewer