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 / prosemirror.js
Created August 31, 2019 12:00
Prosemirror iife compiled
var prosemirror=function(e){'use strict';var d=String.fromCharCode,p=Math.floor,s=Math.max,l=Math.min;function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(e){this.content=e}function r(e){var t=ye&&(e.ctrlKey||e.altKey||e.metaKey)||fe&&e.shiftKey&&e.key&&1==e.key.length,o=!t&&e.key||(e.shiftKey?he:ce)[e.keyCode]||e.key||"Unidentified";return"Esc"==o&&(o="Escape"),"Del"==o&&(o="Delete"),"Left"==o&&(o="ArrowLeft"),"Up"==o&&(o="ArrowUp"),"Right"==o&&(o="ArrowRight"),"Down"==o&&(o="ArrowDown"),o}n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,o){var r=o&&o!=e?this.remove(o):this,d=r.find(e),i=r.content.slice();return-1==d?i.push(o||e,t):(i[d+1]=t,o&&(i[d]=o)),new n(i)},remove:function(e){var t=this.find(e);if(-1==t)return thi
{"js":{"code":"/*!\n * vue-textarea-autosize v1.1.1 \n * (c) 2019 Saymon\n * Released under the MIT License.\n */\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.VueTextareaAutosize = factory());\n}(this, function () { 'use strict';\n\n //\n //\n //\n //\n //\n //\n //\n var script = {\n name: 'TextareaAutosize',\n props: {\n value: {\n type: [String, Number],\n default: ''\n },\n autosize: {\n type: Boolean,\n default: true\n },\n minHeight: {\n type: [Number],\n 'default': null\n },\n maxHeight: {\n type: [Number],\n 'default': null\n },\n\n /*\n * Force !important for style properties\n */\n important: {\n type: [Boolean, Array],\n default: false\n }\n },\n data: function dat
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
;(function() {
@muthu32
muthu32 / element-ui.css
Last active December 11, 2019 06:34
Element-ui Custom
/*
changes
------
* form bottom margin is reduced to 10px
* Dialog padding reduced to 10px
* Dialog header & footer background is updated to #eee.
*/
@charset "UTF-8";.el-pagination--small .arrow.disabled,.el-table .hidden-columns,.el-table td.is-hidden>*,.el-table th.is-hidden>*,.el-table--hidden {
visibility: hidden
}
@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
@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 / 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 / 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 / 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.
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