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 / Quasar.css
Last active May 3, 2019 02:04
Quasar Bar
.bg-blue {
background: #2196f3!important
}
.no-transition {
transition: none!important
}
.q-loading-bar {
position: fixed;
<?php
namespace db;
class mysqli
{
private $conn;
private $temp;
private $data;
protected static $_instance;
function __construct(
$database = "wo",
@muthu32
muthu32 / My Class Loader.php
Last active May 1, 2019 07:38
class_loader.php
function Loader($className,$includePath)
{
$fileName = '';
$separator = '\\';
if (false !== ($lastNsPos = strripos($className, $separator))) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace($separator, DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
}
@muthu32
muthu32 / html2img.html
Created April 12, 2019 09:30
html to image
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>
display/box/float/clear test
</title>
<style type="text/css">
/* last modified: 1 Dec 98 */
html {
@muthu32
muthu32 / index.html
Last active March 21, 2019 08:16
bar chart & Pie chart using chart.js
<!--- https://blockbuilder.org/muthu32/6bd29d851a506f06b9f21b5ac9c814c9 ---->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js" ></script>
<script>
function svgBarChartEntry()
{
get_heat_staytime_list();
}
@muthu32
muthu32 / ext core mit.js
Created March 8, 2019 05:26
ext core mit
/*!
* Ext Core Library 3.0
* http://extjs.com/
* Copyright(c) 2006-2009, Ext JS, LLC.
*
* MIT Licensed - http://extjs.com/license/mit.txt
*/
// for old browsers
window.undefined = window.undefined;
.wrap
{
height: 100%;
width: 100%;
position: fixed;
padding-top: 104px;
left: 0;
z-index: 99;
top:-100%;
}
document.getElementById("header").style.top = 0;
var prevScrollpos = window.pageYOffset;
window.onscroll = function() {
document.getElementById("header").style.position = 'fixed';
var currentScrollPos = window.pageYOffset;
var htop = parseInt(document.getElementById("header").style.top);
var menuHeight = $('header').outerHeight()+5;
if (prevScrollpos > currentScrollPos) {
htop = htop +3;
//Download remote file
function getUrlFile($url, $path)
{
$newfilename = $path;
$file = fopen($url, "rb");
if ($file) {
$newfile = fopen($newfilename, "wb");
if ($newfile)
while (!feof($file)) {
fwrite($newfile, fread($file, 1024 * 8), 1024 * 8);
@muthu32
muthu32 / levenshtein.sql
Created February 27, 2018 04:18 — forked from endihunter/levenshtein.sql
MySQL Levenshtein distance algorithm
-- ---------------------------------------------------------------------------
-- Levenshtein distance
-- from the Artful Common Queries page
-- http://www.artfulsoftware.com/infotree/qrytip.php?id=552
-- ---------------------------------------------------------------------------
-- The Levenshtein distance between two strings is the minimum number of
-- operations needed to transform one string into the other, where an operation
-- may be insertion, deletion or substitution of one character.