Skip to content

Instantly share code, notes, and snippets.

View muthu32's full-sized avatar

Muthu Kumar muthu32

  • Selvam Softech
  • TamilNadu
View GitHub Profile
@muthu32
muthu32 / allCountries.js
Created December 26, 2022 12:25
all Countries with dial code
export const allCountries = [
[
'Afghanistan (‫افغانستان‬‎)',
'af',
'93'
],
[
'Albania (Shqipëri)',
'al',
'355'
@muthu32
muthu32 / cryptojs_base64_encrypt_decrypt.js
Created September 5, 2022 07:40 — forked from joecliff/cryptojs_base64_encrypt_decrypt.js
An example of base64 usage in cryptojs
var CryptoJS = require("crypto-js");//replace thie with script tag in browser env
//encrypt
var rawStr = "hello world!";
var wordArray = CryptoJS.enc.Utf8.parse(rawStr);
var base64 = CryptoJS.enc.Base64.stringify(wordArray);
console.log('encrypted:', base64);
//decrypt
var parsedWordArray = CryptoJS.enc.Base64.parse(base64);
@muthu32
muthu32 / pasteunixpath.ahk
Created August 3, 2021 05:14
windows Path to Unix Path
F1:: ; ShortCut
ClipSaved := ClipboardAll ; Save the entire clipboard to a variable of your choice.
StringReplace, Clipboard, Clipboard,\,/, All ; Replace \ with / in clipboard
clipboard := clipboard ; //chanage clipboard content
Send, ^v ; Input Ctrl+V is passed
clipboard := ClipSaved ; Restore the original clipboard.
ClipSaved := "" ; Free the memory in case the clipboard was very large.
return
@muthu32
muthu32 / jQuery_swap_elements
Last active June 7, 2021 07:25 — forked from derek-dchu/jQuery_swap_elements
Swap two dom elements using jQuery
function swapNodes(a, b) {
var aparent = a.parentNode;
var asibling = a.nextSibling === b ? a : a.nextSibling;
b.parentNode.insertBefore(a, b);
aparent.insertBefore(b, asibling);
}
/** USING JQUERY ***/
function swaptwoID(a,b) {
var nextID = $('#'+a).next().prop('id');
nextID= nextID==b?a:nextID;
https://greasyfork.org/en/scripts/by-site/feedly.com | User scripts for feedly.com
https://www.bing.com/images/search?q=csv&qs=n&form=QBIR&sp=-1&pq=csv&sc=8-3&cvid=8632C9AAFA2F40858B468BF74A3DED54&first=1&scenario=ImageHoverTitle | csv - Bing images
https://www.google.com/search?q=csv&tbm=isch | csv - Google Search
https://www.easyicon.net/iconsearch/csv | Csv icons - 21 free vector icons - Easyicon
https://www.flaticon.com/search?word=csv&search-type=icons&license=selection&order_by=4&grid=small | Search results for Csv - Flaticon
https://icons8.com/icons/set/csv | Csv Icons - Free Download, PNG and SVG
https://www.iconfont.cn/search/index?searchType=icon&q=csv | Iconfont-阿里巴巴矢量图标库
https://www.iconshock.com/csv-icons/ | Csv Icons - Iconshock
https://www.easyicon.net/language.en/iconsearch/iconset:ledicons/?s=addtime_DESC | Ledicons icons - 512 free vector icons - Easyicon
https://www.google.com/search?q=ledicons | ledicons - Google Search
@muthu32
muthu32 / image.txt
Last active March 2, 2021 05:13
Ecommerce guide lines
Flipkart
Slider Image should be 150x150px. For adjustment Width 150px is made constant.
For Gallery Image Height is made constant with 280px
(For gallery image 230x230px. For adjustment Height is made constant.)
For Product Image 416x416px. For adjustment Width 416px is made constant.
For thumb strip 128x128px. For adjustment, if horizontal slider, then height is made constnat. If vertical height, then width is made constant.
For gallery, maximum of 1660x1660px. For adjustment, width is made constant.
@muthu32
muthu32 / image compare.php
Created December 31, 2020 06:07
image compare
<?php
/**
* Image Comparing Function (C)2011 Robert Lerner, All Rights Reserved
* $image1 STRING/RESOURCE Filepath and name to PNG or passed image resource handle
* $image2 STRING/RESOURCE Filepath and name to PNG or passed image resource handle
* $RTolerance INTEGER (0-/+255) Red Integer Color Deviation before channel flag thrown
* $GTolerance INTEGER (0-/+255) Green Integer Color Deviation before channel flag thrown
* $BTolerance INTEGER (0-/+255) Blue Integer Color Deviation before channel flag thrown
* $WarningTolerance INTEGER (0-100) Percentage of channel differences before warning returned
* $ErrorTolerance INTEGER (0-100) Percentage of channel difference before error returned
@muthu32
muthu32 / vue.globa.js
Created March 5, 2020 09:35
3.0.0-alpha.7
var Vue=function(e){"use strict";function n(e,n){const t=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)t[o[e]]=!0;return n?e=>!!t[e.toLowerCase()]:e=>!!t[e]}const t={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",1024:"DYNAMIC_SLOTS",512:"NEED_PATCH",[-1]:"HOISTED",[-2]:"BAIL"},o=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl"),r=2;const s=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){if(k(e)){const n={};for(let t=0;t<e.length;t++){const o=i(e[t]);if(o)for(const e in o)n[e]=o[e]}return n}if($(e))return e}function l(e){let n="";if(C(e))n=e;else if(k(e))for(let t=0;t<e.length;t++)n+=l(e[t])+" ";else if($(e))for(const t in e)e[t]&&(n+=t+" ");return n.trim()}const c=n("html,body,base,head,link,meta,style,title,address,
@muthu32
muthu32 / btpopper.css
Created December 11, 2019 11:46
Popper.css
/* 8,9 */
.btpopper {
border: 1px solid #8baef5;
}
.btpopper .popper__arrow::after {
content: " ";
}
.btpopper .popper__arrow,.btpopper .popper__arrow::after {
border-width: 0 .5rem .5rem .5rem;
@muthu32
muthu32 / popper.js
Created December 11, 2019 00:36
Popper safari 5.1 supported
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.13.0
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell