Skip to content

Instantly share code, notes, and snippets.

View Dilshan97's full-sized avatar
🚀
focusing

Dilshan Ramesh Dilshan97

🚀
focusing
View GitHub Profile
@Dilshan97
Dilshan97 / image-grid.md
Created August 28, 2019 06:04 — forked from trusktr/image-grid.md
Image grid in Markdown
screen shot 2017-08-07 at 12 18 15 pm blah screen shot 2017-08-07 at 12 18 15 pm screen shot 2017-08-07 at 12 18 15 pm
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@Dilshan97
Dilshan97 / index.html
Last active June 30, 2019 11:22
Print a specific div in html
<script>
function printDiv(divName){
var printContents = document.getElementById(divName).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</script>
<h1> do not print this </h1>
@Dilshan97
Dilshan97 / index.html
Created June 4, 2019 07:49
JavaScript Background Color Changer
<!DOCTYPE html>
<html>
<body>
<button name="green" onclick="changeBgColor('green')">Success</button>
<button name="pink" onclick="changeBgColor('pink')">Info</button>
<button name="orange" onclick="changeBgColor('orange')">orange</button>
<button name="red" onclick="changeBgColor('red')">Danger</button>
<script>
@Dilshan97
Dilshan97 / Dilshan.md
Last active June 4, 2019 05:25
About me

Dilshan Ramesh

Full Stack Developer

@Dilshan97
Dilshan97 / blog.md
Last active June 4, 2019 03:52
My technical Blog

enter image description here

<?php
$connect = mysqli_connect("localhost","root","","report");
$query = "SELECT * FROM account";
$result = mysqli_query($connect,$query);
$row_data = array();
while ($row =mysqli_fetch_assoc($result)){
//$row_data = array('year' => $row['year'], 'profit' => $row['profit'], 'purchase' => $row['purchase'], 'sale' => $row['sale']);