Skip to content

Instantly share code, notes, and snippets.

chakravarthykalyan90

Block or report user

Report or block chakravarthykalyan90

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chakravarthykalyan90
chakravarthykalyan90 / media-query.css
Created Nov 19, 2018 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
View SortFilesByDate.php
<?php
$dir = "/var/www/html/location/";
chdir($dir);
array_multisort(array_map('filemtime', ($files = glob("*.*"))), SORT_ASC, $files);
foreach($files as $filename)
{
echo "<li>".substr($filename, 0, -4)."</li>";
rename($filename, '/var/www/html/location/archive/'.$filename);
}
@chakravarthykalyan90
chakravarthykalyan90 / M2JavascriptValidation
Last active Jul 11, 2018
Different ways of Javascript validation in Magento 2
View M2JavascriptValidation
<script type="text/javascript">
/* Method 1 */
require([
'jquery',
'mage/mage'
], function($){
var dataForm = $('#m2-form');
dataForm.mage('validation', {});
View Magento_1_DuplicateOrders.Sql
SELECT `quote_id`,
COUNT(`quote_id`) AS `duplicate_count`,
`increment_id` AS `first_increment_id`,
GROUP_CONCAT( `increment_id` SEPARATOR ' | ' ) AS `increment_ids`,
`created_at`,
`state`,
`status`,
`customer_email`,
`grand_total`
FROM `sales_flat_order`
You can’t perform that action at this time.