Skip to content

Instantly share code, notes, and snippets.

View DNTech's full-sized avatar

DANISH NAYEEM DNTech

View GitHub Profile
@DNTech
DNTech / script.php
Created April 5, 2021 16:38
Replace mysql to mysqli within a directory hierarchy
<?php
$folders = [
'*.php',
'*/*.php',
'*/*/*.php'
];
foreach ($folders as $f){
$res = shell_exec("ls $f");
$files = explode("\n", $res);
echo("\n");
@DNTech
DNTech / PrintTable.js
Created August 2, 2018 00:00
Print a table using JavaScript Custom Function
function printData( id )
{
var divToPrint=document.getElementById(id);
newWin= window.open("");
newWin.document.write(divToPrint.outerHTML);
newWin.print();
newWin.close();
}
@DNTech
DNTech / AXES IN COLUMN CHART.js
Last active April 19, 2024 08:30
Google Charts - Customizing Axes ( hAxis and vAxis ) | Code Based Learning by RichNet
<!-- AXES IN COLUMN CHART -->
<html>
<head>
<link href="/css/w3.css" rel="stylesheet" />
<link href="/css/print.min.css" rel="stylesheet" />
<script>
//Declaring Global Variables
var GV, CHT, DT, OPT;
function drawChart(){
GV = google.visualization;
<!-- AXES IN COLUMN CHART -->
<html>
<head>
<link href="/css/w3.css" rel="stylesheet" />
<link href="/css/print.min.css" rel="stylesheet" />
<script>
//Declaring Global Variables
var GV, CHT, DT, OPT;
function drawChart(){
GV = google.visualization;
<!--EXPLORER IN COLUMN CHART EXAMPLE-->
<html>
<head>
<link href="/css/w3.css" rel="stylesheet" />
<link href="/css/print.min.css" rel="stylesheet" />
<script>
//Declaring Global Variables
var GV, CHT, DT, OPT;
function drawChart(){
GV = google.visualization;
@DNTech
DNTech / ANNOTATION OBJECT.json
Last active July 29, 2018 00:27
Annotations In Column Charts (Code Based Learning By RichNet) Google Charts
'annotations" : {
//Annotations to be placed outside the bars (boolean)
"alwaysOutside" : true / false,
//Boxes Surrounding the annotations
"boxStyle" : {
//Color of the box outline
"stroke" : "#COLORCODE",
//Thickness of the box outline
"strokWidth" : NUMBER,
//x-radius of the corner curvature
@DNTech
DNTech / Basic Column Chart with Annotation.html
Last active July 28, 2018 04:05
Google Charts - basic Column Chart with Annotation ( Code Based Learning by RichNet at code.richnet.in )
<html>
<head>
<link href="/css/w3.css" rel="stylesheet" />
<link href="/css/print.min.css" rel="stylesheet" />
<script>
//Declaring Global Variables
var GV, CHT, DT, OPT;
function drawChart(){
GV = google.visualization;
//Create DataTable Object
@DNTech
DNTech / BASIC COLUMN CHART.html
Last active July 28, 2018 03:12
Create Basic Column with manual Data (Google Charts - Code Based Learning by RichNet)
<html>
<head>
<link href="/css/w3.css" rel="stylesheet" />
<link href="/css/print.min.css" rel="stylesheet" />
<script>
//Declaring Global Variables
var GV, CHT, DT, OPT;
function drawChart(){
<html>
<head>
<title>CSS ASSIGNMENT 8</title>
</head>
<body>
<div id="cssDiv"></div>
<center>
<div class="login_div">
<img src="images/user.png" class="image-user" />
@DNTech
DNTech / index.html
Created May 6, 2018 09:04
Css Selectors Test
<html>
<head>
<meta charset="UTF-8">
<title>Selectors Exercise</title>
<link rel="stylesheet" type="text/css" href="selectors.css">
</head>
<body>
<h1>Selectors Exercise</h1>
<p>PARAGRAPH NOT INSIDE A DIV</p>